Find the current version number at pypi.
Open pyproject.toml
in an editor, and update the value in "version" = x.y.z
.
In terminal:
#go to root of directory
cd ~/code/predict-eth
#ensure repo is up-to-date
git commit -am "Release x.y.z"
git push
#turn off virtual env't
deactivate
#ensure `dist/` folder is empty
rm -rf dist
#generate distribution archives: create `dist` folder with two files
python -m build
In terminal:
#run twine to upload `dist` files *main* pypi
python -m twine upload dist/*
# -when prompted, give username: __token__
# -when prompted, given password: <pypi API token>
Done! The updated package will be at pypi.
This readme is a distillation of the packaging-projects tutorial at python.org.