aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2017-05-09 01:22:52 +0300
committerSergey Shepelev <temotor@gmail.com>2018-03-17 01:27:16 +0300
commit586cccee9bf8e95e4d2938915be262035d2a79e5 (patch)
treee3b92b3d0c3f4a2450c2b2e4e57ed05584983f00
parent3fb522e771015ece8e51203dc88d2430ae4c5ab9 (diff)
downloadplatform_external_python_httplib2-586cccee9bf8e95e4d2938915be262035d2a79e5.tar.gz
platform_external_python_httplib2-586cccee9bf8e95e4d2938915be262035d2a79e5.tar.bz2
platform_external_python_httplib2-586cccee9bf8e95e4d2938915be262035d2a79e5.zip
latest release tools in virtualenv
Makes PKG-INFO Metadata-Version: 1.1 (was 1.0) which is required for proper trove classifiers, see https://github.com/httplib2/httplib2/issues/50
-rwxr-xr-xscript/release21
1 files changed, 14 insertions, 7 deletions
diff --git a/script/release b/script/release
index f8d9355..76d3dc5 100755
--- a/script/release
+++ b/script/release
@@ -29,14 +29,21 @@ main() {
confirm "Continue still? [yN] " || exit 1
fi
+ echo "Building package" >&2
+ find . -name '*.pyc' -o -name '*.pyo' -o -name '*.orig' -delete
+ rm -rf python{2,3}/.cache
+ rm -rf build dist
+ # TODO: sdist bdist_wheel
+ # but wheels don't roll well with our 2/3 split code base
+ local venv=./venv-release
+ if [[ ! -d "$venv" ]] ; then
+ virtualenv $venv
+ $venv/bin/pip install -U pip setuptools wheel twine
+ fi
+ $venv/bin/python setup.py sdist
+
if confirm "Upload to PyPi? [Yn] "; then
- find . -name '*.pyc' -o -name '*.pyo' -o -name '*.orig' -delete
- rm -rf python{2,3}/.cache
- rm -rf build dist
- # TODO: sdist bdist_wheel
- # but wheels don't roll well with our 2/3 split code base
- python setup.py sdist
- twine upload dist/* || exit 1
+ $venv/bin/twine upload dist/* || exit 1
fi
git push --tags