1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/to_pypi.sh

13 lines
302 B
Bash
Raw Normal View History

2019-11-11 08:56:08 +00:00
#!/bin/bash
# Royalnet must be installed with `develop`
2019-11-11 09:00:58 +00:00
VERSION=$(python3.7 -m royalpack.version)
2019-11-11 08:56:08 +00:00
rm -rf dist
python setup.py sdist bdist_wheel
2019-11-11 09:00:58 +00:00
twine upload "dist/royalpack-$VERSION"*
2019-11-11 08:56:08 +00:00
git add *
git commit -m "$VERSION"
git push
2019-11-11 09:00:58 +00:00
hub release create --message "Version $VERSION" --prerelease "$VERSION"