prerequisites: pip install loghub setuptools twine
- checkout main branch
- pull from repo
- run the unittests
- run
loghuband update theCHANGELOG.mdfile:
loghub pytroll/python-geotiepoints --token $LOGHUB_GITHUB_TOKEN -st $(git tag --sort=-version:refname --list 'v*' | head -n 1) -plg bug "Bugs fixed" -plg enhancement "Features added" -plg documentation "Documentation changes" -plg backwards-incompatibility "Backward incompatible changes" -plg refactor "Refactoring"
This uses a LOGHUB_GITHUB_TOKEN environment variable. This must be created
on GitHub and it is recommended that you add it to your .bashrc or
.bash_profile or equivalent.
Don't forget to commit!
- Create a tag with the new version number, starting with a 'v', eg:
git tag -a v0.22.45 -m "Version 0.22.45"
See semver.org on how to write a version number.
- push changes to github
git push --follow-tags - Verify github action unittests passed.
- Create a "Release" on GitHub by going to https://github.com/pytroll/python-geotiepoints/releases and clicking "Draft a new release". On the next page enter the newly created tag in the "Tag version" field, "Version X.Y.Z" in the "Release title" field, and paste the markdown from the changelog (the portion under the version section header) in the "Describe this release" box. Finally click "Publish release".
- Verify the GitHub actions for deployment succeed and the release is on PyPI.