release_process.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Release Process
  2. ~~~~~~~~~~~~~~~
  3. 1. Increment version number in ``cloudbridge/__init__.py`` as per
  4. `semver rules <https://semver.org/>_.
  5. 2. Freeze all library dependencies in ``setup.py``. The version numbers can be
  6. a range with the upper limit being the latest known working version, and the
  7. lowest being the last known working version.
  8. In general, our strategy is to make provider sdk libraries fixed within
  9. relatively known compatibility ranges, so that we reduce the chances of
  10. breakage. If someone uses cloudbridge, presumably, they do not use the sdks
  11. directly. For all other libraries, especially, general purpose libraries
  12. (e.g. six), our strategy is to make compatibility as broad and unrestricted
  13. as possible.
  14. 3. Run all ``tox`` tests.
  15. 4. Add release notes to ``CHANGELOG.rst``. Also add last commit hash to
  16. changelog. List of commits can be obtained using
  17. ``git shortlog <last release hash>..HEAD``
  18. 5. Release to PyPi.
  19. (make sure you have run `pip install wheel`)
  20. First, test release with PyPI staging server as described in:
  21. https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
  22. Once tested, run:
  23. .. code-block:: bash
  24. # remove stale files or wheel might package them
  25. rm -r build dist
  26. python setup.py sdist upload
  27. python setup.py bdist_wheel upload
  28. 6. Tag release and make a GitHub release.
  29. .. code-block:: bash
  30. git tag -a v1.0.0 -m "Release 1.0.0"
  31. git push --tags
  32. 7. Increment version number in ``cloudbridge/__init__.py`` to ``version-dev``
  33. to indicate the development cycle, commit, and push the changes.