Skip to content

Commit

Permalink
Changed release script for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
vtraag committed Nov 17, 2017
1 parent 5d1a3d7 commit 8b4e4f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ echo Building $PACKAGE
if [ "$1" = "release" ]; then
echo "Making release, uploading to PyPi and Anaconda..."

# Check and test package
python setup.py check
python setup.py test

# Python 2
source ~/anaconda2/bin/activate root
~/anaconda2/bin/conda config --set anaconda_upload yes
Expand All @@ -24,7 +20,7 @@ if [ "$1" = "release" ]; then
python setup.py --no-pkg-config bdist_conda # Conda binary

# Upload using twine
twine uploader dist/$PACKAGE-* --sign
twine upload dist/$PACKAGE-* --sign

# docs will be built automatically by readthedocs.org

Expand All @@ -44,6 +40,9 @@ else
python setup.py bdist_egg # Binary
python setup.py --no-pkg-config bdist_conda # Conda binary

# Upload using twine
twine upload dist/$PACKAGE-* --sign -r pypitest

# List package
echo Created following packages
ls -1 dist/$PACKAGE-*
Expand Down

0 comments on commit 8b4e4f4

Please sign in to comment.