Skip to content

Commit

Permalink
release: use twine for PyPI upload
Browse files Browse the repository at this point in the history
  • Loading branch information
temoto committed Dec 11, 2016
1 parent c9b3608 commit b1d11e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bin/release
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash -e
#!/bin/bash
set -e
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
if [[ ! -d venv-release ]]; then
virtualenv venv-release
echo '*' >venv-release/.gitignore
venv-release/bin/pip install -U pip setuptools sphinx wheel
if [[ ! -d ./venv-release ]]; then
virtualenv ./venv-release
echo '*' >./venv-release/.gitignore
./venv-release/bin/pip install -U pip setuptools sphinx twine wheel
fi
. $PWD/venv-release/bin/activate
source $PWD/venv-release/bin/activate
pip install -e $PWD

version=
Expand Down Expand Up @@ -51,7 +52,8 @@ main() {

if confirm "Upload to PyPi? [Yn] "; then
rm -rf build dist
python setup.py sdist bdist_wheel register upload || exit 1
python setup.py sdist bdist_wheel || exit 1
twine upload dist/* || exit 1
fi

git push --verbose origin master gh-pages || exit 1
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[metadata]
description-file = README.rst

[wheel]
universal = True

0 comments on commit b1d11e3

Please sign in to comment.