gradio/upload_to_pypi.sh

13 lines
382 B
Bash
Raw Normal View History

2020-07-07 06:18:33 +08:00
#!/bin/bash
2020-07-07 06:19:36 +08:00
# Before running this, go to setup.py and update the version # of the library
2020-07-07 06:18:33 +08:00
2020-08-12 23:34:20 +08:00
echo "Make sure to update the version number in setup.py!!! Pulling latest changes from origin/master..."
git pull origin master
2020-08-11 11:26:49 +08:00
rm -r dist/*
rm -r build/*
2020-07-07 06:18:33 +08:00
python setup.py sdist bdist_wheel
python -m twine upload dist/*
git add -A
git commit -m "updated PyPi version"
git push origin master