From 181fa00648f09f80970e9c669c3d61cca40b2a09 Mon Sep 17 00:00:00 2001 From: Matt Davis <6775756+nitzmahone@users.noreply.github.com> Date: Thu, 23 May 2024 15:24:40 -0700 Subject: [PATCH] 1.17.0rc1 release (#80) --- doc/source/conf.py | 2 +- doc/source/installation.rst | 2 +- doc/source/whatsnew.rst | 8 ++++---- setup.py | 2 +- src/c/_cffi_backend.c | 2 +- src/c/test_c.py | 2 +- src/cffi/__init__.py | 4 ++-- src/cffi/_embedding.h | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index a6855d48..d341c796 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -47,7 +47,7 @@ # The short X.Y version. version = '1.17' # The full version, including alpha/beta/rc tags. -release = '1.17.0.dev0' +release = '1.17.0rc1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/doc/source/installation.rst b/doc/source/installation.rst index f1c53eb6..0ecddcb4 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -17,7 +17,7 @@ platform as well as on Windows 32 and 64. (It relies occasionally on libffi, so it depends on libffi being bug-free; this may not be fully the case on some of the more exotic platforms.) -CFFI is tested with CPython 3.8-3.12. +CFFI is tested with CPython 3.8-3.13. The core speed of CFFI is better than ctypes, with import times being either lower if you use the post-1.0 features, or much higher if you diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst index 343b35e2..843aa984 100644 --- a/doc/source/whatsnew.rst +++ b/doc/source/whatsnew.rst @@ -2,8 +2,8 @@ What's New ====================== -v1.17 -===== +v1.17.0rc1 +========== * In API mode, when you get a function from a C library by writing `fn = lib.myfunc`, you get an object of a special type for performance @@ -18,8 +18,8 @@ v1.17 structure field of the correct pointer-to-function type, or use `ffi.cast()` or `ffi.typeof()` on it. -v1.16.0rc1 -========== +v1.16.0 +======= * Add support for Python 3.12. With the removal of ``distutils`` from Python 3.12, projects using CFFI features that depend on ``distutils`` at runtime must add a dependency on diff --git a/setup.py b/setup.py index 48648595..2a144a41 100644 --- a/setup.py +++ b/setup.py @@ -195,7 +195,7 @@ def has_ext_modules(self): `Mailing list `_ """, - version='1.17.0.dev0', + version='1.17.0rc1', python_requires='>=3.8', packages=['cffi'] if cpython else [], package_dir={"": "src"}, diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c index 602117e3..7359bb70 100644 --- a/src/c/_cffi_backend.c +++ b/src/c/_cffi_backend.c @@ -2,7 +2,7 @@ #include #include "structmember.h" -#define CFFI_VERSION "1.17.0.dev0" +#define CFFI_VERSION "1.17.0rc1" #ifdef MS_WIN32 #include diff --git a/src/c/test_c.py b/src/c/test_c.py index ced4f821..99077cf2 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__ == "1.17.0.dev0", ("This test_c.py file is for testing a version" +assert __version__ == "1.17.0rc1", ("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 30946ac6..daf32720 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__ = "1.17.0.dev0" -__version_info__ = (1, 17, 0, 'dev0') +__version__ = "1.17.0rc1" +__version_info__ = (1, 17, 0, 'rc1') # 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 033e50cc..d0a2468f 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: 1.17.0.dev0" + "\ncompiled with cffi version: 1.17.0rc1" "\n_cffi_backend module: ", f); modules = PyImport_GetModuleDict(); mod = PyDict_GetItemString(modules, "_cffi_backend");