This repository was archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Release process
Maciej edited this page Sep 25, 2019
·
5 revisions
-
Make sure that all tests pass
-
Remove old
distfilesrm -Rf dist/* -
Build source and wheel distribution
python setup.py sdist bdist_wheel -
Sign the packages
for f in $(ls dist/*) do gpg2 --detach-sign -a $f done -
Test if package can be uploaded to PyPi test repository
python3 -m twine upload --sign --repository-url https://test.pypi.org/legacy/ dist/* -
If upload succeeds upload to main repository
python3 -m twine upload --sign dist/* -
Create and sign release tage
STUBS_RELEASE_VERSION=$(python setup.py --version); git tag -s $STUBS_RELEASE_VERSION -m "$STUBS_RELEASE_VERSION" -
Push tags
git push --tags -
Increment package version
See PyPI deployment
-
Execute steps 2, 3 and 5 from the manual process. This ensures that there are no issues and the package is uploadable.
-
Follow steps 7 to 9 from manual process.