X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=cut_version.sh;h=10b4e1a4dc449998d7c5db16d4da968397d61b2d;hb=ccca7ea8fae7ab9a79a88baf9a7f8f3219403c7b;hp=00d1c0b930970fc5e31cc515a48db0443c8b7a8f;hpb=9f4279db76d66f5045704f6a0d0513e5a8a01910;p=pyutils.git diff --git a/cut_version.sh b/cut_version.sh index 00d1c0b..10b4e1a 100755 --- a/cut_version.sh +++ b/cut_version.sh @@ -84,19 +84,25 @@ echo "Building wheel..." python -m build echo "Checking in wheel package under dist/" -WHEEL=dist/pyutils-latest-py3-none-any.whl +cd dist +WHEEL=pyutils-${VERSION}-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 +LINK=pyutils-latest-py3-none-any.whl +git rm -f ${LINK} +ln -s ${WHEEL} ${LINK} git add ${WHEEL} git add ${LINK} +for FILE in *.whl; do + md5 ${FILE} > ${FILE}.md5 +done +git add *.md5 +cd .. git commit -a -m "Cut version ${VERSION}" -m "${CHANGES}" echo "Pushing changes to git" git push -echo "Done. To upload, run: \"twine upload --verbose --repository pypi dist/*\"" +echo "Done. To upload, run: \"twine upload --verbose --repository pypi dist/pyutils-${VERSION}*.whl\""