aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-10-01 05:17:42 +0000
committerMike Crute <mike@crute.us>2017-10-01 05:17:42 +0000
commit44570223ea9c72ef8c89ea76632df1ecb69b5fab (patch)
treed78b153d05d13fc660c73c473fa46a6ca06b5c87
parent2c7ca04d4568655f5e39902a05697529aa02dd38 (diff)
downloadpydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.tar.bz2
pydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.tar.xz
pydora-44570223ea9c72ef8c89ea76632df1ecb69b5fab.zip
Handle 3.4 release, add release docs
-rwxr-xr-xrelease.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/release.sh b/release.sh
index 02a90f1..623a161 100755
--- a/release.sh
+++ b/release.sh
@@ -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
4mkdir .release 12mkdir .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 21echo "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
24echo "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 27echo "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
32echo "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/*