Permalink
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
benclifford
Fix punctuation in release script
16226b7
Jul 11, 2018
#!/bin/bash | |
VERSION=$1 | |
PARSL_VERSION=$(python3 -c "import parsl; print(parsl.__version__)") | |
if [[ $PARSL_VERSION == $VERSION ]] | |
then | |
echo "Version requested matches package version: $VERSION" | |
else | |
echo "[ERROR] Version mismatch. User request:$VERSION while package version is:$PARSL_VERSION" | |
exit -1 | |
fi | |
create_tag () { | |
echo "Creating tag" | |
git tag -a "$VERSION" -m "Parsl $VERSION" | |
echo "Pushing tag" | |
git push origin --tags | |
} | |
release () { | |
rm dist/* | |
echo "=======================================================================" | |
echo "Starting clean builds" | |
echo "=======================================================================" | |
python3 setup.py sdist | |
python3 setup.py bdist_wheel | |
echo "=======================================================================" | |
echo "Done with builds" | |
echo "=======================================================================" | |
sleep 1 | |
echo "=======================================================================" | |
echo "Push to PyPi. This will require your username and password" | |
echo "=======================================================================" | |
twine upload dist/* | |
} | |
create_tag | |
release | |