• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1To release a new version of pybind11:
2
3- Update the version number and push to pypi
4    - Update ``pybind11/_version.py`` (set release version, remove 'dev').
5    - Update ``PYBIND11_VERSION_MAJOR`` etc. in ``include/pybind11/detail/common.h``.
6    - Ensure that all the information in ``setup.py`` is up-to-date.
7    - Update version in ``docs/conf.py``.
8    - Tag release date in ``docs/changelog.rst``.
9    - ``git add`` and ``git commit``.
10    - if new minor version: ``git checkout -b vX.Y``, ``git push -u origin vX.Y``
11    - ``git tag -a vX.Y.Z -m 'vX.Y.Z release'``.
12    - ``git push``
13    - ``git push --tags``.
14    - ``python setup.py sdist upload``.
15    - ``python setup.py bdist_wheel upload``.
16- Get back to work
17    - Update ``_version.py`` (add 'dev' and increment minor).
18    - Update version in ``docs/conf.py``
19    - Update version macros in ``include/pybind11/common.h``
20    - ``git add`` and ``git commit``.
21      ``git push``
22