From 74731f941cf464ad3be5e13708a0a0183b32b3b7 Mon Sep 17 00:00:00 2001 From: Matt Davis <6775756+nitzmahone@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:21:55 -0700 Subject: [PATCH] Release 1.17.0 (#108) * avoid libffi broken default make target * something's changed in the latest manylinux containers that broke the default `make` target for libffi- `make install` seems to work fine. * release 1.17.0 --- .github/workflows/ci.yaml | 1 - doc/source/conf.py | 2 +- doc/source/whatsnew.rst | 5 +++-- 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, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ba89a8b..09773655 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -277,7 +277,6 @@ jobs: ((command -v apk && apk add libtool) || true) && \ ./autogen.sh && \ ./configure --without-gcc-arch --disable-docs --with-pic --enable-shared=no && \ - make && \ make install CIBW_ENVIRONMENT_PASS_LINUX: CFLAGS # ensure that the build container can see our overridden build config CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_img || '' }} diff --git a/doc/source/conf.py b/doc/source/conf.py index d341c796..27adcd61 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.0rc1' +release = '1.17.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 843aa984..19e09b22 100644 --- a/doc/source/whatsnew.rst +++ b/doc/source/whatsnew.rst @@ -2,9 +2,10 @@ What's New ====================== -v1.17.0rc1 -========== +v1.17.0 +======= +* Add support for Python 3.13. * 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 reasons, instead of a ``. Before version 1.17 diff --git a/setup.py b/setup.py index 2a144a41..1c9c614d 100644 --- a/setup.py +++ b/setup.py @@ -195,7 +195,7 @@ def has_ext_modules(self): `Mailing list `_ """, - version='1.17.0rc1', + version='1.17.0', 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 7359bb70..f012815d 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.0rc1" +#define CFFI_VERSION "1.17.0" #ifdef MS_WIN32 #include diff --git a/src/c/test_c.py b/src/c/test_c.py index 99077cf2..7f486976 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.0rc1", ("This test_c.py file is for testing a version" +assert __version__ == "1.17.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 daf32720..deeacc57 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.0rc1" -__version_info__ = (1, 17, 0, 'rc1') +__version__ = "1.17.0" +__version_info__ = (1, 17, 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 d0a2468f..0eeeea83 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.0rc1" + "\ncompiled with cffi version: 1.17.0" "\n_cffi_backend module: ", f); modules = PyImport_GetModuleDict(); mod = PyDict_GetItemString(modules, "_cffi_backend");