Permalink
Browse files

setup.py: consistency with Ceygen, read long desc from README

  • Loading branch information...
1 parent de2afda commit 27d5861d11d7325b485977cd07731a9580974ec9 @strohel committed May 29, 2013
Showing with 22 additions and 31 deletions.
  1. +1 −2 HACKING.rst
  2. +21 −29 setup.py
View
@@ -74,8 +74,7 @@ Before Tagging
#. Set version to **X.Y** in `support/python-pybayes.spec`
#. Ensure `ChangeLog.rst` mentions all important changes
#. (Optional) update **short description** in `setup.py` **AND** `support/python-pybayes.spec`
-#. (Optional) update **long description** in `setup.py` **AND** `README.rst` **AND**
- `support/python-pybayes.spec`
+#. (Optional) update **long description** `README.rst` **AND** `support/python-pybayes.spec`
Tagging
-------
View
@@ -13,27 +13,29 @@
dir = os.path.dirname(os.path.realpath(__file__))
version = determine_pybayes_version(dir=dir, fallback='0.3-post-nongit')
+with open(os.path.join(dir ,'README.rst')) as file:
+ long_description = file.read()
+
+setup(
+ packages=['pybayes', 'pybayes.stresses', 'pybayes.tests', 'pybayes.wrappers'],
+ package_data={'pybayes.stresses':['data/stress_kalman_data.mat']},
+ distclass=PyBayesDistribution,
-params = {
# meta-data; see http://docs.python.org/distutils/setupscript.html#additional-meta-data
- 'name':'PyBayes',
- 'version':version,
- 'author':'Matěj Laitl',
- 'author_email':'matej@laitl.cz',
- 'maintainer':'Matěj Laitl',
- 'maintainer_email':'matej@laitl.cz',
- 'url':'https://github.com/strohel/PyBayes',
- 'description':'Python library for recursive Bayesian estimation (Bayesian filtering)',
- 'long_description':'PyBayes is an object-oriented Python library for recursive Bayesian ' +
- 'estimation (Bayesian filtering) that is convenient to use. Already implemented are ' +
- 'Kalman filter, particle filter and marginalized particle filter, all built atop of ' +
- 'a light framework of probability density functions. PyBayes can optionally use Cython ' +
- 'for lage speed gains (Cython build can be several times faster in some situations).',
+ name='PyBayes',
+ version=version,
+ author='Matěj Laitl',
+ author_email='matej@laitl.cz',
+ maintainer='Matěj Laitl',
+ maintainer_email='matej@laitl.cz',
+ url='https://github.com/strohel/PyBayes',
+ description='Python library for recursive Bayesian estimation (Bayesian filtering)',
+ long_description=long_description,
# Note to myself: must manually upload on each release!
- 'download_url':'https://github.com/downloads/strohel/PyBayes/PyBayes-'+version+'.tar.gz',
- 'platforms':'cross-platform',
- 'license':'GNU GPL v2+',
- 'classifiers':[
+ download_url='https://github.com/downloads/strohel/PyBayes/PyBayes-'+version+'.tar.gz',
+ platforms='cross-platform',
+ license='GNU GPL v2+',
+ classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
@@ -46,14 +48,4 @@
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
-
- # Python (Cython) packages to build:
- 'packages':['pybayes', 'pybayes.stresses', 'pybayes.tests', 'pybayes.wrappers'],
- 'package_data':{'pybayes.stresses':['data/stress_kalman_data.mat']},
-
- # THE trick - custom distribution that handles Python/Cython build
- 'distclass':PyBayesDistribution
-}
-
-if __name__ == '__main__':
- setup(**params)
+)

0 comments on commit 27d5861

Please sign in to comment.