From eadb6aa05ba422914a4a45407524e195a3acffbb Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Mon, 8 Sep 2025 14:32:16 -0700 Subject: [PATCH] release 2.0.0 --- doc/source/conf.py | 2 +- doc/source/whatsnew.rst | 4 ++-- pyproject.toml | 3 ++- src/c/_cffi_backend.c | 2 +- src/c/test_c.py | 2 +- src/cffi/__init__.py | 4 ++-- src/cffi/_embedding.h | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 09a31079..3788308d 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.0b1' +release = '2.0.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst index a8343016..dd8441db 100644 --- a/doc/source/whatsnew.rst +++ b/doc/source/whatsnew.rst @@ -2,8 +2,8 @@ What's New ====================== -v2.0.0b1 -============ +v2.0.0 +====== * Added support for free threaded CPython (3.14t+ only). (`#178`_) Note that the free-threaded build does not yet support building extensions diff --git a/pyproject.toml b/pyproject.toml index e459b976..f1477234 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] name = "cffi" -version = "2.0.0b1" +version = "2.0.0" dependencies = [ "pycparser; implementation_name != 'PyPy'", ] @@ -36,6 +36,7 @@ authors = [ maintainers = [ {name = "Matt Davis"}, {name = "Matt Clay"}, + {name = "Matti Picus"}, ] [project.entry-points."distutils.setup_keywords"] diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c index d2913800..f75f897f 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.0b1" +#define CFFI_VERSION "2.0.0" #ifdef MS_WIN32 #include diff --git a/src/c/test_c.py b/src/c/test_c.py index d70306c2..4a3c0f82 100644 --- a/src/c/test_c.py +++ b/src/c/test_c.py @@ -63,7 +63,7 @@ def _capture_unraisable_hook(ur_args): # ____________________________________________________________ import sys -assert __version__ == "2.0.0b1", ("This test_c.py file is for testing a version" +assert __version__ == "2.0.0", ("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 48e5be51..c99ec3d4 100644 --- a/src/cffi/__init__.py +++ b/src/cffi/__init__.py @@ -5,8 +5,8 @@ from .error import CDefError, FFIError, VerificationError, VerificationMissing from .error import PkgConfigError -__version__ = "2.0.0b1" -__version_info__ = (2, 0, 0, 'b1') +__version__ = "2.0.0" +__version_info__ = (2, 0, 0) # 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__ diff --git a/src/cffi/_embedding.h b/src/cffi/_embedding.h index 48e5cbfa..64c04f67 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.0b1" + "\ncompiled with cffi version: 2.0.0" "\n_cffi_backend module: ", f); modules = PyImport_GetModuleDict(); mod = PyDict_GetItemString(modules, "_cffi_backend");