-
Notifications
You must be signed in to change notification settings - Fork 6
Releasing New Version (to PyPi and Github)
Ismail Sunni edited this page Jan 22, 2018
·
3 revisions
Step by step to release parameters package to PyPi.
- Make sure all needed PRs are merged.
- Edit the version in the
setup.py
to match the new version, and commit the changes e.g.git commit -am "Bump version 1.0.2"
- Make a PR to master, and merge it after all tests pass.
- Run
git fetch origin
to fetch the latest state. - Run
git checkout origin/master
to switch to the latest state locally. - Run
git tag -a v1.0.2 -m "Version 1.0.2"
to give a tag (use the correct version). - Run
git push --tag inasafe v1.0.2
to push the tag to Github. - Make a release page with changelog from the tag, e.g. https://github.com/inasafe/parameters/releases/tag/v1.0.2
- Run
python setup.py sdist upload
to upload to PyPi (registration is needed, read here for more explanation) - Make announcement, if needed.