-
Notifications
You must be signed in to change notification settings - Fork 10
Release Guide
Oliver Beckstein edited this page Jan 3, 2022
·
4 revisions
Making a new release of MDPOW:
- make sure that all issues for the mile stone have been addressed
- finalize CHANGES
- release date
- check completeness
- commit changes to develop and wait for CI to pass
- merge develop into master
git checkout master git merge develop
- Tag the release on master
git tag -m "Release X.Y.Z" release-x.y.z
- Push master
git push git push --tags
-
Create a release on GitHub from the tagged commit. Add notes, i.e., a condensed summary of
CHANGES
and typically a link to theCHANGES
of the tagged release.
For background see the Python Packaging User Guide : Uploading your project to PyPi. Interaction with PyPi is handled by twine (which needs to be installed).
- Create distribution packages
python setup.py build sdist bdist_wheel
- Optional: create detached signatures to sign the packages:
ls dist/MDPOW-*.{tar.gz,whl} | xargs -I% gpg --detach-sign -a %
- Check
twine check dist/*
- Upload distribution to PyPi
twine upload dist/*
- Close milestone on GitHub
- On develop, bump release in
version.py
and add next entry toCHANGES
.