|
18 | 18 | from setuptools import setup, find_packages
|
19 | 19 | import re
|
20 | 20 |
|
21 |
| -DISTNAME = 'pymc3' |
| 21 | +DISTNAME = "pymc3" |
22 | 22 | DESCRIPTION = "Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Theano"
|
23 |
| -AUTHOR = 'PyMC Developers' |
24 |
| -AUTHOR_EMAIL = '[email protected]' |
| 23 | +AUTHOR = "PyMC Developers" |
| 24 | +AUTHOR_EMAIL = "[email protected]" |
25 | 25 | URL = "http://github.com/pymc-devs/pymc3"
|
26 | 26 | LICENSE = "Apache License, Version 2.0"
|
27 | 27 |
|
28 |
| -classifiers = ['Development Status :: 5 - Production/Stable', |
29 |
| - 'Programming Language :: Python', |
30 |
| - 'Programming Language :: Python :: 3', |
31 |
| - 'Programming Language :: Python :: 3.6', |
32 |
| - 'Programming Language :: Python :: 3.7', |
33 |
| - 'Programming Language :: Python :: 3.8', |
34 |
| - 'License :: OSI Approved :: Apache Software License', |
35 |
| - 'Intended Audience :: Science/Research', |
36 |
| - 'Topic :: Scientific/Engineering', |
37 |
| - 'Topic :: Scientific/Engineering :: Mathematics', |
38 |
| - 'Operating System :: OS Independent'] |
| 28 | +classifiers = [ |
| 29 | + "Development Status :: 5 - Production/Stable", |
| 30 | + "Programming Language :: Python", |
| 31 | + "Programming Language :: Python :: 3", |
| 32 | + "Programming Language :: Python :: 3.6", |
| 33 | + "Programming Language :: Python :: 3.7", |
| 34 | + "Programming Language :: Python :: 3.8", |
| 35 | + "License :: OSI Approved :: Apache Software License", |
| 36 | + "Intended Audience :: Science/Research", |
| 37 | + "Topic :: Scientific/Engineering", |
| 38 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 39 | + "Operating System :: OS Independent", |
| 40 | +] |
39 | 41 |
|
40 | 42 | PROJECT_ROOT = dirname(realpath(__file__))
|
41 | 43 |
|
42 | 44 | # Get the long description from the README file
|
43 |
| -with open(join(PROJECT_ROOT, 'README.rst'), encoding='utf-8') as buff: |
| 45 | +with open(join(PROJECT_ROOT, "README.rst"), encoding="utf-8") as buff: |
44 | 46 | LONG_DESCRIPTION = buff.read()
|
45 | 47 |
|
46 |
| -REQUIREMENTS_FILE = join(PROJECT_ROOT, 'requirements.txt') |
| 48 | +REQUIREMENTS_FILE = join(PROJECT_ROOT, "requirements.txt") |
47 | 49 |
|
48 | 50 | with open(REQUIREMENTS_FILE) as f:
|
49 | 51 | install_reqs = f.read().splitlines()
|
50 | 52 |
|
51 |
| -test_reqs = ['pytest', 'pytest-cov'] |
| 53 | +test_reqs = ["pytest", "pytest-cov"] |
| 54 | + |
52 | 55 |
|
53 | 56 | def get_version():
|
54 |
| - VERSIONFILE = join('pymc3', '__init__.py') |
55 |
| - lines = open(VERSIONFILE, 'rt').readlines() |
| 57 | + VERSIONFILE = join("pymc3", "__init__.py") |
| 58 | + lines = open(VERSIONFILE, "rt").readlines() |
56 | 59 | version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
57 | 60 | for line in lines:
|
58 | 61 | mo = re.search(version_regex, line, re.M)
|
59 | 62 | if mo:
|
60 | 63 | return mo.group(1)
|
61 |
| - raise RuntimeError('Unable to find version in %s.' % (VERSIONFILE,)) |
| 64 | + raise RuntimeError("Unable to find version in %s." % (VERSIONFILE,)) |
| 65 | + |
62 | 66 |
|
63 | 67 | if __name__ == "__main__":
|
64 |
| - setup(name=DISTNAME, |
65 |
| - version=get_version(), |
66 |
| - maintainer=AUTHOR, |
67 |
| - maintainer_email=AUTHOR_EMAIL, |
68 |
| - description=DESCRIPTION, |
69 |
| - license=LICENSE, |
70 |
| - url=URL, |
71 |
| - long_description=LONG_DESCRIPTION, |
72 |
| - long_description_content_type='text/x-rst', |
73 |
| - packages=find_packages(), |
74 |
| - package_data={'docs': ['*']}, |
75 |
| - include_package_data=True, |
76 |
| - classifiers=classifiers, |
77 |
| - python_requires=">=3.6", |
78 |
| - install_requires=install_reqs, |
79 |
| - tests_require=test_reqs, |
80 |
| - test_suite='nose.collector') |
| 68 | + setup( |
| 69 | + name=DISTNAME, |
| 70 | + version=get_version(), |
| 71 | + maintainer=AUTHOR, |
| 72 | + maintainer_email=AUTHOR_EMAIL, |
| 73 | + description=DESCRIPTION, |
| 74 | + license=LICENSE, |
| 75 | + url=URL, |
| 76 | + long_description=LONG_DESCRIPTION, |
| 77 | + long_description_content_type="text/x-rst", |
| 78 | + packages=find_packages(), |
| 79 | + # because of an upload-size limit by PyPI, we're temporarily removing docs from the tarball. |
| 80 | + # Also see MANIFEST.in |
| 81 | + # package_data={'docs': ['*']}, |
| 82 | + include_package_data=True, |
| 83 | + classifiers=classifiers, |
| 84 | + python_requires=">=3.6", |
| 85 | + install_requires=install_reqs, |
| 86 | + tests_require=test_reqs, |
| 87 | + test_suite="nose.collector", |
| 88 | + ) |
0 commit comments