projects
/
pyutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a1a7b2
)
Modify cut_version to check in wheel produced.
author
Scott Gasch
<
[email protected]
>
Mon, 31 Oct 2022 05:54:40 +0000
(22:54 -0700)
committer
Scott Gasch
<
[email protected]
>
Mon, 31 Oct 2022 05:54:40 +0000
(22:54 -0700)
.gitignore
patch
|
blob
|
history
cut_version.sh
patch
|
blob
|
history
diff --git
a/.gitignore
b/.gitignore
index 9d23a2843bd41624a38bc7e53ac7d205a5d50f21..292b437de58bec52699243de2aa0daf537efc2ac 100644
(file)
--- a/
.gitignore
+++ b/
.gitignore
@@
-1,3
+1,3
@@
**/__pycache__/
**/pyutils.egg-info
**/__pycache__/
**/pyutils.egg-info
-dist/*
+dist/*
.gz
diff --git
a/cut_version.sh
b/cut_version.sh
index 7e40e9866296b4ad6ebfd38f60b0a5f12d0b767a..efad099883eee317139a34bed92bf5afb42d6f2d 100755
(executable)
--- a/
cut_version.sh
+++ b/
cut_version.sh
@@
-76,9
+76,21
@@
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}"
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 "Building..."
python -m build
+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 "Add binary wheel for ${VERSION}"
+git push
+
echo "Done. To upload, run: \"twine upload --verbose --repository testpypi dist/*\""
echo "Done. To upload, run: \"twine upload --verbose --repository testpypi dist/*\""