From 264c1fb5e7859e52704fa53060edf1ddfff188dc Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Thu, 30 Oct 2025 18:49:25 +0100 Subject: [PATCH 1/3] pyproject.toml: PEP 639 compatibility Signed-off-by: Adam J. Stewart --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 501c012e..b8070f3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,7 @@ [build-system] requires = [ - # first version that supports Python 3.12; older versions may work - # with previous Python versions, but are not tested - "setuptools >= 66.1" + # Required for PEP 639 support + "setuptools >= 77" ] build-backend = "setuptools.build_meta" @@ -16,7 +15,7 @@ requires-python = ">=3.9" description = "Foreign Function Interface for Python calling C code." readme = "README.md" -license = { file = "LICENSE" } +license = "MIT" classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", From de36519a43e6c35b852fa854ce5d3ac3fdfbf039 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 22 Nov 2025 16:49:46 +0100 Subject: [PATCH 2/3] setuptools 77.0.3+ Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b8070f3d..2a4efd91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ # Required for PEP 639 support - "setuptools >= 77" + "setuptools >= 77.0.3" ] build-backend = "setuptools.build_meta" From d4ca023b57e6b0b0a7a2c5dd7f73b9fe8e0a8b5a Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 22 Nov 2025 16:52:27 +0100 Subject: [PATCH 3/3] MIT-0 AND MIT Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2a4efd91..79e5546e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,8 @@ requires-python = ">=3.9" description = "Foreign Function Interface for Python calling C code." readme = "README.md" -license = "MIT" +license = "MIT-0 AND MIT" +license-files = ["LICENSE", "src/c/libffi_x86_x64/LICENSE"] classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3",