aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-04-02 03:29:01 +0000
committerMike Crute <mike@crute.us>2019-04-02 03:29:01 +0000
commit3bacbbe001b4abb461b4920233fac9de07e903fd (patch)
tree5f2ce4e5fdbba64be38247d16c5c0c901b901059
parent5768d9af20f3e6ac92107cafea81e0c25061c986 (diff)
downloadpydora-3bacbbe001b4abb461b4920233fac9de07e903fd.tar.bz2
pydora-3bacbbe001b4abb461b4920233fac9de07e903fd.tar.xz
pydora-3bacbbe001b4abb461b4920233fac9de07e903fd.zip
Remove python2 from release script
-rwxr-xr-xrelease.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/release.sh b/release.sh
index 623a161..63588c5 100755
--- a/release.sh
+++ b/release.sh
@@ -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
12mkdir .release 4mkdir .release
@@ -15,23 +7,12 @@ mkdir .release
15python3 -m venv .release/py3 7python3 -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
21echo "Building Python 3 Artifact" 10echo "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
24echo "Building Source Dist Artifact" 13echo "Building Source Dist Artifact"
25.release/py3/bin/python setup.py sdist 14.release/py3/bin/python setup.py sdist
26 15
27echo "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
32echo "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