From eefb38a848e5c83e045439fca783534b2bb23c9a Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 2 Nov 2025 16:27:51 -0500 Subject: [PATCH 1/3] BLD: bump version number so it sorts ahead of 2.0.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a1b203d..14ed2492 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] name = "cffi" -version = "2.0.0.dev0" +version = "2.0.1.dev0" dependencies = [ "pycparser; implementation_name != 'PyPy'", ] From 9ee453352e1ed98cad9d444f3473a000b301e39e Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 2 Nov 2025 17:05:42 -0500 Subject: [PATCH 2/3] BLD: catch the rest of the places the version is hard-coded --- doc/source/conf.py | 2 +- src/c/_cffi_backend.c | 2 +- src/c/test_c.py | 2 +- src/cffi/__init__.py | 2 +- src/cffi/_embedding.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 54046b96..23a21019 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -47,7 +47,7 @@ # The short X.Y version. version = '2.0' # The full version, including alpha/beta/rc tags. -release = '2.0.0.dev0' +release = '2.0.1.dev0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c index 355a18a7..28ad3c09 100644 --- a/src/c/_cffi_backend.c +++ b/src/c/_cffi_backend.c @@ -2,7 +2,7 @@ #include #include "structmember.h" #include "misc_thread_common.h" -#define CFFI_VERSION "2.0.0.dev0" +#define CFFI_VERSION "2.0.1.dev0" #ifdef MS_WIN32 #include diff --git a/src/c/test_c.py b/src/c/test_c.py index 74ced8b9..b2114435 100644 --- a/src/c/test_c.py +++ b/src/c/test_c.py @@ -66,7 +66,7 @@ def _capture_unraisable_hook(ur_args): # ____________________________________________________________ import sys -assert __version__ == "2.0.0.dev0", ("This test_c.py file is for testing a version" +assert __version__ == "2.0.1.dev0", ("This test_c.py file is for testing a version" " of cffi that differs from the one that we" " get from 'import _cffi_backend'") if sys.version_info < (3,): diff --git a/src/cffi/__init__.py b/src/cffi/__init__.py index 752496d4..55320335 100644 --- a/src/cffi/__init__.py +++ b/src/cffi/__init__.py @@ -5,7 +5,7 @@ from .error import CDefError, FFIError, VerificationError, VerificationMissing from .error import PkgConfigError -__version__ = "2.0.0.dev0" +__version__ = "2.0.1.dev0" __version_info__ = (2, 0, 0, 'dev0') # The verifier module file names are based on the CRC32 of a string that diff --git a/src/cffi/_embedding.h b/src/cffi/_embedding.h index 2ac957c8..d198dc01 100644 --- a/src/cffi/_embedding.h +++ b/src/cffi/_embedding.h @@ -225,7 +225,7 @@ static int _cffi_initialize_python(void) if (f != NULL && f != Py_None) { PyFile_WriteString("\nFrom: " _CFFI_MODULE_NAME - "\ncompiled with cffi version: 2.0.0.dev0" + "\ncompiled with cffi version: 2.0.1.dev0" "\n_cffi_backend module: ", f); modules = PyImport_GetModuleDict(); mod = PyDict_GetItemString(modules, "_cffi_backend"); From c709cdc5c418b269a2c7c5865237c5c2946bdc5e Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 3 Nov 2025 10:59:40 -0500 Subject: [PATCH 3/3] BLD: catch the final (non-string) version of version --- src/cffi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cffi/__init__.py b/src/cffi/__init__.py index 55320335..1b5cfe24 100644 --- a/src/cffi/__init__.py +++ b/src/cffi/__init__.py @@ -6,7 +6,7 @@ from .error import PkgConfigError __version__ = "2.0.1.dev0" -__version_info__ = (2, 0, 0, 'dev0') +__version_info__ = (2, 0, 1, 'dev0') # The verifier module file names are based on the CRC32 of a string that # contains the following version number. It may be older than __version__