Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1000 Bytes

release-process.md

File metadata and controls

45 lines (29 loc) · 1000 Bytes

Release Process

1. Build distribution archive

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/pybundlr

#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

2. Distribute to pypi

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.

Notes

This readme is a distillation of the packaging-projects tutorial at python.org.