1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/to_pypi.sh
2019-11-11 12:23:34 +01:00

15 lines
355 B
Bash

#!/bin/bash
# Set me to your pack name!
PACKNAME="{packname}"
# Royalnet must be installed with `develop`
VERSION=$(python3.7 -m "$PACKNAME.version")
rm -rf dist
python setup.py sdist bdist_wheel
twine upload "dist/$PACKNAME-$VERSION"*
git add *
git commit -m "$VERSION"
git push
hub release create --message "Version $VERSION" --prerelease "$VERSION"