X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=cut_version.sh;h=c554aa2555ad76473218a170d3a2672dbd0e7714;hb=e0b4c03fd8313dd8398d1fbbe28f21672cdbad58;hp=7e40e9866296b4ad6ebfd38f60b0a5f12d0b767a;hpb=a94184ff1b3445897ddd2252021943c4b3481e52;p=pyutils.git diff --git a/cut_version.sh b/cut_version.sh index 7e40e98..c554aa2 100755 --- a/cut_version.sh +++ b/cut_version.sh @@ -75,10 +75,24 @@ printf "# 🎁 Release notes (\`$VERSION\`)\n\n## Changes\n$CHANGES\n\n## Metada echo "Updating pyproject.toml with this version number" cat ./pyproject.template | sed s/##VERSION##/$VERSION/g > ./pyproject.toml -git commit -a -m "Cut version ${VERSION}" -m "${CHANGES}" -git push echo "Building..." python -m build +echo "Checking in binary wheel package" +WHEEL=dist/pyutils-latest-py3-none-any.whl +if [ ! -f ${WHEEL} ]; then + echo "Can't find ${WHEEL}?!" + exit 1 +fi +LINK=dist/pyutils-latest-py3-none-any.whl +git rm ${LINK} +ln -s ${WHEEL} dist/pyutils-latest-py3-none-any.whl +git add ${WHEEL} +git add ${LINK} +git commit -a -m "Cut version ${VERSION}" -m "${CHANGES}" + +echo "Pushing changes" +git push + echo "Done. To upload, run: \"twine upload --verbose --repository testpypi dist/*\""