Browse Source

publish.sh pushes to real pypi

main
Jarrod Chesney 6 years ago
parent
commit
e8fb62168c
2 changed files with 9 additions and 20 deletions
  1. +8
    -19
      publish.sh
  2. +1
    -1
      wstools/version.py

+ 8
- 19
publish.sh View File

@@ -31,24 +31,13 @@ echo "Setting version to $VER"
# Update the package version
sed -i "s;.*version.*;__version__ = '${VER}';" wstools/version.py

# Upload to test pypi
if [[ ${VER} == *"dev"* ]]; then
python setup.py sdist
git reset --hard

else
python setup.py sdist upload -r pypitest
# Reset the commit, we don't want versions in the commit
git commit -a -m "Updated to version ${VER}"

git tag ${VER}
git push
git push --tags
fi

# Upload to pypi
python setup.py sdist upload
# Reset the commit, we don't want versions in the commit
git commit -a -m "Updated to version ${VER}"

git tag ${VER}
git push
git push --tags

echo "If you're happy with this you can now run :"
echo
echo "python setup.py sdist upload -r pypi"
echo
echo "Package deployed"

+ 1
- 1
wstools/version.py View File

@@ -1 +1 @@
__version__ = '0.54.2'
__version__ = '0.54.3'

Loading…
Cancel
Save