Skip to content

Commit ed66bc4

Browse files
fix tarball generation as 3.9.1 release (#3970)
+ removes docs/* from the tarball to fix PyPI size limits (setup.py and MANIFEST.in) + updates the release notes with 3.9.0/3.9.1 sections + black applied to setup.py
1 parent 9b50ea9 commit ed66bc4

File tree

4 files changed

+56
-40
lines changed

4 files changed

+56
-40
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
recursive-include pymc3/examples/data *
22
recursive-include source *
3-
recursive-include docs *
3+
# because of an upload-size limit by PyPI, we're temporarily removing docs from the tarball:
4+
recursive-exclude docs *
45
include requirements.txt
56
include *.md *.rst
67
include scripts/*.sh

RELEASE-NOTES.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Release Notes
22

3-
## PyMC3 3.9 (On deck)
3+
## PyMC3 3.9.x (on deck)
4+
*waiting for contributions*
5+
6+
## PyMC3 3.9.1 (16 June 2020)
7+
The `v3.9.0` upload to PyPI didn't include a tarball, which is fixed in this release.
8+
Though we had to temporarily remove the `docs/*` folder from the tarball due to a size limit.
9+
10+
## PyMC3 3.9.0 (16 June 2020)
411

512
### New features
613
- Use [fastprogress](https://github.com/fastai/fastprogress) instead of tqdm [#3693](https://github.com/pymc-devs/pymc3/pull/3693).

pymc3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# pylint: disable=wildcard-import
16-
__version__ = "3.9.0"
16+
__version__ = "3.9.1"
1717

1818
import logging
1919
import multiprocessing as mp

setup.py

Lines changed: 45 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,63 +18,71 @@
1818
from setuptools import setup, find_packages
1919
import re
2020

21-
DISTNAME = 'pymc3'
21+
DISTNAME = "pymc3"
2222
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]"
2525
URL = "http://github.com/pymc-devs/pymc3"
2626
LICENSE = "Apache License, Version 2.0"
2727

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+
]
3941

4042
PROJECT_ROOT = dirname(realpath(__file__))
4143

4244
# 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:
4446
LONG_DESCRIPTION = buff.read()
4547

46-
REQUIREMENTS_FILE = join(PROJECT_ROOT, 'requirements.txt')
48+
REQUIREMENTS_FILE = join(PROJECT_ROOT, "requirements.txt")
4749

4850
with open(REQUIREMENTS_FILE) as f:
4951
install_reqs = f.read().splitlines()
5052

51-
test_reqs = ['pytest', 'pytest-cov']
53+
test_reqs = ["pytest", "pytest-cov"]
54+
5255

5356
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()
5659
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
5760
for line in lines:
5861
mo = re.search(version_regex, line, re.M)
5962
if mo:
6063
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+
6266

6367
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

Comments
 (0)