release.rst 978 Bytes
Newer Older
1
2
To release a new version of pybind11:

Sylvain Corlay's avatar
Sylvain Corlay committed
3
4
5
6
7
- Update the version number and push to pypi
    - Update ``pybind11/_version.py`` (set release version, remove 'dev')
    - ``git add`` and ``git commit``.
    - ``python setup.py sdist upload``.
    - ``python setup.py bdist_wheel upload``.
Wenzel Jakob's avatar
Wenzel Jakob committed
8
    - Tag release date in ``doc/changelog.rst``.
Sylvain Corlay's avatar
Sylvain Corlay committed
9
10
11
12
13
- Tag the commit and push to anaconda.org
    - ``git tag -a X.X -m '[Release comment]'``.
    - ``conda-build conda.recipe --output``
      This should ouput the path of the generated tar.bz2 for the package
    - ``conda-convert --platform all [path/to/tar.bz2] -o .``
Wenzel Jakob's avatar
Wenzel Jakob committed
14
    - ``for i in *-32/* *-64/*; do anaconda upload -u pybind $i; done``
Sylvain Corlay's avatar
Sylvain Corlay committed
15
16
17
18
- Get back to work
    - Update ``_version.py`` (add 'dev' and increment minor).
    - Update version macros in ``include/pybind11/common.h``
    - ``git add`` and ``git commit``. ``git push``. ``git push --tags``.
19

Sylvain Corlay's avatar
Sylvain Corlay committed
20
The remote for the last ``git push --tags`` should be the main repository for
21
pybind11.