release.rst 1.03 KB
Newer Older
1
2
To release a new version of pybind11:

Sylvain Corlay's avatar
Sylvain Corlay committed
3
- Update the version number and push to pypi
Wenzel Jakob's avatar
Wenzel Jakob committed
4
5
6
    - Update ``pybind11/_version.py`` (set release version, remove 'dev').
    - Update ``PYBIND11_VERSION_MAJOR`` etc. in ``include/pybind11/common.h``.
    - Update version in ``docs/conf.py``.
Wenzel Jakob's avatar
Wenzel Jakob committed
7
    - Tag release date in ``docs/changelog.rst``.
Sylvain Corlay's avatar
Sylvain Corlay committed
8
    - ``git add`` and ``git commit``.
9
10
    - if new minor version: ``git checkout -b vX.Y``, ``git push -u origin vX.Y``
    - ``git tag -a vX.Y.Z -m 'vX.Y.Z release'``.
11
12
    - ``git push``
    - ``git push --tags``.
Sylvain Corlay's avatar
Sylvain Corlay committed
13
14
    - ``python setup.py sdist upload``.
    - ``python setup.py bdist_wheel upload``.
Wenzel Jakob's avatar
Wenzel Jakob committed
15
16
- Update conda-forge (https://github.com/conda-forge/pybind11-feedstock) via PR
    - change version number in ``recipe/meta.yml``
17
    - update checksum to match the one computed by pypi
Sylvain Corlay's avatar
Sylvain Corlay committed
18
19
- Get back to work
    - Update ``_version.py`` (add 'dev' and increment minor).
20
    - Update version in ``docs/conf.py``
Sylvain Corlay's avatar
Sylvain Corlay committed
21
    - Update version macros in ``include/pybind11/common.h``
22
23
    - ``git add`` and ``git commit``.
      ``git push``