release.rst 1.2 KB

1234567891011121314151617181920212223242526
  1. To release a new version of pybind11:
  2. - Update the version number and push to pypi
  3. - Update ``pybind11/_version.py`` (set release version, remove 'dev').
  4. - Update ``PYBIND11_VERSION_MAJOR`` etc. in ``include/pybind11/detail/common.h``.
  5. - Ensure that all the information in ``setup.py`` is up-to-date.
  6. - Update version in ``docs/conf.py``.
  7. - Tag release date in ``docs/changelog.rst``.
  8. - ``git add`` and ``git commit``.
  9. - if new minor version: ``git checkout -b vX.Y``, ``git push -u origin vX.Y``
  10. - ``git tag -a vX.Y.Z -m 'vX.Y.Z release'``.
  11. - ``git push``
  12. - ``git push --tags``.
  13. - ``python setup.py sdist upload``.
  14. - ``python setup.py bdist_wheel upload``.
  15. - Update conda-forge (https://github.com/conda-forge/pybind11-feedstock) via PR
  16. - download release package from Github: ``wget https://github.com/pybind/pybind11/archive/vX.Y.Z.tar.gz``
  17. - compute checksum: ``shasum -a 256 vX.Y.Z.tar.gz``
  18. - change version number and checksum in ``recipe/meta.yml``
  19. - Get back to work
  20. - Update ``_version.py`` (add 'dev' and increment minor).
  21. - Update version in ``docs/conf.py``
  22. - Update version macros in ``include/pybind11/common.h``
  23. - ``git add`` and ``git commit``.
  24. ``git push``