mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
[skip ci] Tweaks in preparation for the 2.8.1 release. (#3421)
This commit is contained in:
parent
f1594cb960
commit
f7b499615e
@ -10,7 +10,7 @@ Starting with version 1.8.0, pybind11 releases use a `semantic versioning
|
|||||||
IN DEVELOPMENT
|
IN DEVELOPMENT
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
v2.8.0 (Oct 27, 2021)
|
v2.8.1 (Oct 27, 2021)
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
Changes and additions:
|
Changes and additions:
|
||||||
|
@ -27,7 +27,7 @@ To release a new version of pybind11:
|
|||||||
``include/pybind11/detail/common.h``. PATCH should be a simple integer.
|
``include/pybind11/detail/common.h``. PATCH should be a simple integer.
|
||||||
- Update the version HEX just below, as well.
|
- Update the version HEX just below, as well.
|
||||||
- Update ``pybind11/_version.py`` (match above)
|
- Update ``pybind11/_version.py`` (match above)
|
||||||
- Run ``nox -s tests_packaging``` to ensure this was done correctly.
|
- Run ``nox -s tests_packaging`` to ensure this was done correctly.
|
||||||
- Ensure that all the information in ``setup.cfg`` is up-to-date, like
|
- Ensure that all the information in ``setup.cfg`` is up-to-date, like
|
||||||
supported Python versions.
|
supported Python versions.
|
||||||
- Add release date in ``docs/changelog.rst``.
|
- Add release date in ``docs/changelog.rst``.
|
||||||
@ -50,13 +50,15 @@ To release a new version of pybind11:
|
|||||||
- Make a GitHub release (this shows up in the UI, sends new release
|
- Make a GitHub release (this shows up in the UI, sends new release
|
||||||
notifications to users watching releases, and also uploads PyPI packages).
|
notifications to users watching releases, and also uploads PyPI packages).
|
||||||
(Note: if you do not use an existing tag, this creates a new lightweight tag
|
(Note: if you do not use an existing tag, this creates a new lightweight tag
|
||||||
for you, so you could skip the above step).
|
for you, so you could skip the above step.)
|
||||||
- GUI method: click "Create a new release" on the far right, fill in the tag
|
|
||||||
name (if you didn't tag above, it will be made here), fill in a release
|
- GUI method: Under `releases <https://github.com/pybind/pybind11/releases>`_
|
||||||
name like "Version X.Y.Z", and optionally copy-and-paste the changelog into
|
click "Draft a new release" on the far right, fill in the tag name
|
||||||
the description (processed as markdown by Pandoc). Check "pre-release" if
|
(if you didn't tag above, it will be made here), fill in a release name
|
||||||
this is a beta/RC. You can get partway there with
|
like "Version X.Y.Z", and copy-and-paste the markdown-formatted (!) changelog
|
||||||
``cat docs/changelog.rst | pandoc -f rst -t gfm``.
|
into the description (usually ``cat docs/changelog.rst | pandoc -f rst -t gfm``).
|
||||||
|
Check "pre-release" if this is a beta/RC.
|
||||||
|
|
||||||
- CLI method: with ``gh`` installed, run ``gh release create vX.Y.Z -t "Version X.Y.Z"``
|
- CLI method: with ``gh`` installed, run ``gh release create vX.Y.Z -t "Version X.Y.Z"``
|
||||||
If this is a pre-release, add ``-p``.
|
If this is a pre-release, add ``-p``.
|
||||||
|
|
||||||
@ -65,7 +67,7 @@ To release a new version of pybind11:
|
|||||||
- Update version macros in ``include/pybind11/detail/common.h`` (set PATCH to
|
- Update version macros in ``include/pybind11/detail/common.h`` (set PATCH to
|
||||||
``0.dev1`` and increment MINOR).
|
``0.dev1`` and increment MINOR).
|
||||||
- Update ``_version.py`` to match
|
- Update ``_version.py`` to match
|
||||||
- Run ``nox -s tests_packaging``` to ensure this was done correctly.
|
- Run ``nox -s tests_packaging`` to ensure this was done correctly.
|
||||||
- Add a spot for in-development updates in ``docs/changelog.rst``.
|
- Add a spot for in-development updates in ``docs/changelog.rst``.
|
||||||
- ``git add``, ``git commit``, ``git push``
|
- ``git add``, ``git commit``, ``git push``
|
||||||
|
|
||||||
@ -73,7 +75,7 @@ If a version branch is updated, remember to set PATCH to ``1.dev1``.
|
|||||||
|
|
||||||
If you'd like to bump homebrew, run:
|
If you'd like to bump homebrew, run:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: console
|
||||||
|
|
||||||
brew bump-formula-pr --url https://github.com/pybind/pybind11/archive/vX.Y.Z.tar.gz
|
brew bump-formula-pr --url https://github.com/pybind/pybind11/archive/vX.Y.Z.tar.gz
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define PYBIND11_VERSION_MAJOR 2
|
#define PYBIND11_VERSION_MAJOR 2
|
||||||
#define PYBIND11_VERSION_MINOR 9
|
#define PYBIND11_VERSION_MINOR 8
|
||||||
#define PYBIND11_VERSION_PATCH 0.dev1
|
#define PYBIND11_VERSION_PATCH 1
|
||||||
|
|
||||||
// Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html
|
// Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html
|
||||||
// Additional convention: 0xD = dev
|
// Additional convention: 0xD = dev
|
||||||
#define PYBIND11_VERSION_HEX 0x020900D1
|
#define PYBIND11_VERSION_HEX 0x02080100
|
||||||
|
|
||||||
#define PYBIND11_NAMESPACE_BEGIN(name) namespace name {
|
#define PYBIND11_NAMESPACE_BEGIN(name) namespace name {
|
||||||
#define PYBIND11_NAMESPACE_END(name) }
|
#define PYBIND11_NAMESPACE_END(name) }
|
||||||
|
@ -8,5 +8,5 @@ def _to_int(s):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
__version__ = "2.9.0.dev1"
|
__version__ = "2.8.1"
|
||||||
version_info = tuple(_to_int(s) for s in __version__.split("."))
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|
||||||
|
Loading…
Reference in New Issue
Block a user