projects
/
pyutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More docs...
[pyutils.git]
/
cut_version.sh
diff --git
a/cut_version.sh
b/cut_version.sh
index 00d1c0b930970fc5e31cc515a48db0443c8b7a8f..10b4e1a4dc449998d7c5db16d4da968397d61b2d 100755
(executable)
--- 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/"
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
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}
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
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
\""