release_process.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Release Process
  2. ~~~~~~~~~~~~~~~
  3. 1. Make sure all tests pass on the `GitHub Actions workflows
  4. <https://github.com/CloudVE/cloudbridge/actions>`_.
  5. 2. Increment version number in ``cloudbridge/__init__.py`` as per
  6. `semver rules <https://semver.org/>`_.
  7. 3. Freeze all library dependencies in ``pyproject.toml`` and commit.
  8. The version numbers can be a range with the upper limit being the latest
  9. known working version, and the lowest being the last known working version.
  10. In general, our strategy is to make provider sdk libraries fixed within
  11. relatively known compatibility ranges, so that we reduce the chances of
  12. breakage. If someone uses CloudBridge, presumably, they do not use the SDKs
  13. directly. For all other general purpose libraries, our strategy is to make
  14. compatibility as broad and unrestricted as possible.
  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 build twine``)
  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 -m build
  27. twine upload -r pypi dist/cloudbridge-3.0.0*
  28. 6. Tag release and make a GitHub release.
  29. .. code-block:: bash
  30. git tag -a v3.0.0 -m "Release 3.0.0"
  31. git push
  32. git push --tags
  33. 7. Increment version number in ``cloudbridge/__init__.py`` to ``version-dev``
  34. to indicate the development cycle, commit, and push the changes.