chore: back to work

This commit is contained in:
Henry Schreiner 2022-02-03 12:44:02 -05:00
parent 1d3b04e805
commit 36813cfa12
No known key found for this signature in database
GPG Key ID: B9D0E45146A241E8
4 changed files with 15 additions and 6 deletions

View File

@ -6,6 +6,12 @@ Changelog
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
IN DEVELOPMENT
--------------
Changes will be added here periodically.
Version 2.9.1 (Feb 2, 2022)
---------------------------

View File

@ -10,12 +10,12 @@
#pragma once
#define PYBIND11_VERSION_MAJOR 2
#define PYBIND11_VERSION_MINOR 9
#define PYBIND11_VERSION_PATCH 1
#define PYBIND11_VERSION_MINOR 10
#define PYBIND11_VERSION_PATCH 0.dev1
// Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html
// Additional convention: 0xD = dev
#define PYBIND11_VERSION_HEX 0x02090100
#define PYBIND11_VERSION_HEX 0x020A00D1
#define PYBIND11_NAMESPACE_BEGIN(name) namespace name {
#define PYBIND11_NAMESPACE_END(name) }

View File

@ -8,5 +8,5 @@ def _to_int(s):
return s
__version__ = "2.9.1"
__version__ = "2.10.0.dev1"
version_info = tuple(_to_int(s) for s in __version__.split("."))

View File

@ -45,8 +45,11 @@ def build_expected_version_hex(matches):
if serial is None:
msg = 'Invalid PYBIND11_VERSION_PATCH: "{}"'.format(patch_level_serial)
raise RuntimeError(msg)
return "0x{:02x}{:02x}{:02x}{}{:x}".format(
major, minor, patch, level[:1].upper(), serial
return (
"0x"
+ "{:02x}{:02x}{:02x}{}{:x}".format(
major, minor, patch, level[:1], serial
).upper()
)