Skip to content

Commit edd1dd0

Browse files
committed
Add publish pypi script
1 parent 014d41d commit edd1dd0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/publish_pypi.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
rm dist/*
2+
python3 setup.py sdist
3+
twine upload dist/* -r testpypi
4+
echo "Published to testpypi"
5+
while true; do
6+
read -p "Do you wish to publish to pypi?" yn
7+
case $yn in
8+
[Yy]* ) twine upload dist/*; break;;
9+
[Nn]* ) exit;;
10+
* ) echo "Please answer yes or no.";;
11+
esac
12+
done

0 commit comments

Comments
 (0)