diff options
author | Mike Crute <mike@crute.us> | 2019-04-02 03:29:01 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-04-02 03:29:01 +0000 |
commit | 3bacbbe001b4abb461b4920233fac9de07e903fd (patch) | |
tree | 5f2ce4e5fdbba64be38247d16c5c0c901b901059 | |
parent | 5768d9af20f3e6ac92107cafea81e0c25061c986 (diff) | |
download | pydora-3bacbbe001b4abb461b4920233fac9de07e903fd.tar.bz2 pydora-3bacbbe001b4abb461b4920233fac9de07e903fd.tar.xz pydora-3bacbbe001b4abb461b4920233fac9de07e903fd.zip |
Remove python2 from release script
-rwxr-xr-x | release.sh | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -1,12 +1,4 @@ | |||
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 | # | ||
10 | 2 | ||
11 | [ -e .release ] && rm -rf .release | 3 | [ -e .release ] && rm -rf .release |
12 | mkdir .release | 4 | mkdir .release |
@@ -15,23 +7,12 @@ mkdir .release | |||
15 | python3 -m venv .release/py3 | 7 | python3 -m venv .release/py3 |
16 | .release/py3/bin/pip install -U pip setuptools virtualenv twine | 8 | .release/py3/bin/pip install -U pip setuptools virtualenv twine |
17 | 9 | ||
18 | # Bootstrap Python 2 Environment | ||
19 | .release/py3/bin/virtualenv -p python2 .release/py2 | ||
20 | |||
21 | echo "Building Python 3 Artifact" | 10 | echo "Building Python 3 Artifact" |
22 | .release/py3/bin/python setup.py validate bdist_wheel --python-tag py3 | 11 | .release/py3/bin/python setup.py validate bdist_wheel --python-tag py3 |
23 | 12 | ||
24 | echo "Building Source Dist Artifact" | 13 | echo "Building Source Dist Artifact" |
25 | .release/py3/bin/python setup.py sdist | 14 | .release/py3/bin/python setup.py sdist |
26 | 15 | ||
27 | echo "Building Python 3.4 Artifact" | ||
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 | ||
34 | |||
35 | # Upload it all | 16 | # Upload it all |
36 | .release/py3/bin/twine upload dist/* | 17 | .release/py3/bin/twine upload dist/* |
37 | 18 | ||