diff options
author | Mike Crute <mike@crute.us> | 2017-10-01 05:17:42 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2017-10-01 05:17:42 +0000 |
commit | 44570223ea9c72ef8c89ea76632df1ecb69b5fab (patch) | |
tree | d78b153d05d13fc660c73c473fa46a6ca06b5c87 | |
parent | 2c7ca04d4568655f5e39902a05697529aa02dd38 (diff) | |
download | pydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.tar.bz2 pydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.tar.xz pydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.zip |
Handle 3.4 release, add release docs
-rwxr-xr-x | release.sh | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -1,4 +1,12 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # | ||
3 | # As of 1.11.0 we can't ship the same wheels for python 2 and 3 because python | ||
4 | # 3.4+ use a pure python crypto implementation and those before use a native | ||
5 | # extension for crypto. Because wheels encode setup.py dependencies statically | ||
6 | # and there isn't yet a well supported (across setuptools and pip) way to | ||
7 | # declare python-specific dependencies statically we're stuck with this | ||
8 | # aberration. | ||
9 | # | ||
2 | 10 | ||
3 | [ -e .release ] && rm -rf .release | 11 | [ -e .release ] && rm -rf .release |
4 | mkdir .release | 12 | mkdir .release |
@@ -10,12 +18,19 @@ python3 -m venv .release/py3 | |||
10 | # Bootstrap Python 2 Environment | 18 | # Bootstrap Python 2 Environment |
11 | .release/py3/bin/virtualenv -p python2 .release/py2 | 19 | .release/py3/bin/virtualenv -p python2 .release/py2 |
12 | 20 | ||
13 | # Build Python 3 Artifacts | 21 | echo "Building Python 3 Artifact" |
14 | .release/py3/bin/python setup.py bdist_wheel --python-tag py3 | 22 | .release/py3/bin/python setup.py validate bdist_wheel --python-tag py3 |
23 | |||
24 | echo "Building Source Dist Artifact" | ||
15 | .release/py3/bin/python setup.py sdist | 25 | .release/py3/bin/python setup.py sdist |
16 | 26 | ||
17 | # Build Python 2 Artifacts | 27 | echo "Building Python 3.4 Artifact" |
18 | .release/py2/bin/python setup.py bdist_wheel --python-tag py2 | 28 | # We must install the wheel with pip to avoid compiling native code |
29 | .release/py2/bin/pip install cryptography | ||
30 | .release/py2/bin/python setup.py bdist_wheel --python-tag py34 | ||
31 | |||
32 | echo "Building Python 2 Artifact" | ||
33 | .release/py2/bin/python setup.py validate bdist_wheel --python-tag py2 | ||
19 | 34 | ||
20 | # Upload it all | 35 | # Upload it all |
21 | .release/py3/bin/twine upload dist/* | 36 | .release/py3/bin/twine upload dist/* |