-
Notifications
You must be signed in to change notification settings - Fork 3
How to release
nesnoj edited this page May 28, 2021
·
8 revisions
OUTDATED! See example from oemof
- Checkout
dev
- Re-Check setup.py
- Set version no. if not already happened
- Check if (upper limit of) versions of required packages are up-to-date (you may test your package with the latest versions and update accordingly)
- Update CHANGELOG.md, make sure version and date is correct. Note: Always keep a section
[Unreleased]
at top of the release list.
- Create release branch in the format
release/vX.Y.Z
fromdev
- Create pull request (to
master
) - Merge or let someone else merge it
- Create a release tag on
master
- Release via PyPI (if you don't have permissions for this repo, ask someone who does)
- The upload requires a
~/.pypirc
file with your PyPI credentials. - Make sure you are in
master
branch. - Use
python3 setup.py register sdist upload
to register and upload package to PyPI.
- The upload requires a
- Merge
master
intodev
- Adjust setup.py of
dev
: Set new version no. for next release (in case it's already defined)