Ensure that the full version of nanobind is checked out (including the
robin_map
submodule)Update version in
src/__init__.py
,include/nanobind/nanobind.h
, andpyproject.toml
:Also:
- Remove
dev1
suffix fromX.Y.Zdev1
insrc/__init__.py
andpyproject.toml
. - Set
NB_VERSION_DEV
to0
ininclude/nanobind/nanobind.h
.
- Remove
Add release date to
docs/changelog.rst
.Update
setup.py
if new directories were added (seepackage_data
). Updatecmake/nanobind-config.cmake
if new C++ source or header files were added.Commit:
git commit -am "vX.Y.Z release"
Tag:
git tag -a vX.Y.Z -m "vX.Y.Z release"
Push:
git push
andgit push --tags
Run
python setup.py bdist_wheel
Upload:
twine upload --repository nanobind <filename>
Update version in
src/__init__.py
andinclude/nanobind/nanobind.h
:
- Append
dev1
suffix fromX.Y.Zdev1
insrc/__init__.py
andpyproject.toml
.- Set
NB_VERSION_DEV
to1
ininclude/nanobind/nanobind.h