Skip to content

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.

  1. Make sure all needed PRs are merged.
  2. 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"
  3. Make a PR to master, and merge it after all tests pass.
  4. Run git fetch origin to fetch the latest state.
  5. Run git checkout origin/master to switch to the latest state locally.
  6. Run git tag -a v1.0.2 -m "Version 1.0.2" to give a tag (use the correct version).
  7. Run git push --tag inasafe v1.0.2 to push the tag to Github.
  8. Make a release page with changelog from the tag, e.g. https://github.com/inasafe/parameters/releases/tag/v1.0.2
  9. Run python setup.py sdist upload to upload to PyPi (registration is needed, read here for more explanation)
  10. Make announcement, if needed.
Clone this wiki locally