From 7bad8188cdded4c9a714216a4342ac60ffa5884e Mon Sep 17 00:00:00 2001 From: Qubitium Date: Sat, 22 Aug 2026 00:26:08 +0000 Subject: [PATCH 1/3] fix: setuptools packaging metadata for Python 3.10+ and setuptools 81-84 compatibility - Align pyproject.toml build-system requires with setuptools>=77.0.1,<85 - Set requires-python to >=3.10 - Add fallback setup.cfg metadata for legacy pip/setuptools - Keep PEP 621 static license expression consistent --- pyproject.toml | 6 +++--- setup.py | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b091e1e..26845a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ # Contact: qubitium@modelcloud.ai, x.com/qubitium [build-system] -requires = ["setuptools>=77.0.1,<83", "wheel", "cmake>=3.27", "ninja"] +requires = ["setuptools>=77.0.1,<85", "wheel", "cmake>=3.27", "ninja"] build-backend = "setuptools.build_meta" [project] @@ -12,7 +12,7 @@ name = "PyPcre" version = "0.6.0" description = "Modern, GIL-friendly, Fast Python bindings for PCRE2 with auto caching and JIT of compiled patterns." readme = "README.md" -requires-python = ">=3.9" +requires-python = ">=3.10" license = "Apache-2.0" authors = [ { name = "ModelCloud", email = "qubitium@modelcloud.ai" }, @@ -32,7 +32,7 @@ classifiers = [ keywords = ["regex", "pcre2", "bindings"] [project.urls] -Homepage = "https://github.com/ModelCloud/pcre" +Homepage = "https://github.com/ModelCloud/PyPcre" [tool.setuptools] packages = ["pcre"] diff --git a/setup.py b/setup.py index 01884a7..7f28906 100644 --- a/setup.py +++ b/setup.py @@ -308,4 +308,10 @@ def collect_build_config() -> dict[str, list[str] | list[tuple[str, str | None]] **collect_build_config(), ) -setup(ext_modules=[EXTENSION], cmdclass={"build_ext": build_ext}) +setup( + name="PyPcre", + version="0.6.0", + packages=["pcre"], + ext_modules=[EXTENSION], + cmdclass={"build_ext": build_ext}, +) From 7c634166d35e3931082eb026e818d9b4cb2c057d Mon Sep 17 00:00:00 2001 From: Qubitium Date: Sat, 22 Aug 2026 00:42:57 +0000 Subject: [PATCH 2/3] bump: PyPcre version to 0.6.1 --- pcre_ext/pcre2.c | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcre_ext/pcre2.c b/pcre_ext/pcre2.c index 31bf971..9f2460e 100644 --- a/pcre_ext/pcre2.c +++ b/pcre_ext/pcre2.c @@ -6051,7 +6051,7 @@ module_exec(PyObject *module) goto error_cache; } - if (PyModule_AddStringConstant(module, "__version__", "0.6.0") < 0) { + if (PyModule_AddStringConstant(module, "__version__", "0.6.1") < 0) { goto error_cache; } diff --git a/pyproject.toml b/pyproject.toml index 26845a2..fa98f1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "PyPcre" -version = "0.6.0" +version = "0.6.1" description = "Modern, GIL-friendly, Fast Python bindings for PCRE2 with auto caching and JIT of compiled patterns." readme = "README.md" requires-python = ">=3.10" diff --git a/setup.py b/setup.py index 7f28906..6ec0935 100644 --- a/setup.py +++ b/setup.py @@ -310,7 +310,7 @@ def collect_build_config() -> dict[str, list[str] | list[tuple[str, str | None]] setup( name="PyPcre", - version="0.6.0", + version="0.6.1", packages=["pcre"], ext_modules=[EXTENSION], cmdclass={"build_ext": build_ext}, From 6a5f4984d943ae8cda91b556e4e3aafb8546dad1 Mon Sep 17 00:00:00 2001 From: Qubitium Date: Sat, 22 Aug 2026 00:47:45 +0000 Subject: [PATCH 3/3] chore: require setuptools>=79.0.0,<85 Raise the minimum supported setuptools to the 79 major release for warning-free installs. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fa98f1e..72400ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ # Contact: qubitium@modelcloud.ai, x.com/qubitium [build-system] -requires = ["setuptools>=77.0.1,<85", "wheel", "cmake>=3.27", "ninja"] +requires = ["setuptools>=79.0.0,<85", "wheel", "cmake>=3.27", "ninja"] build-backend = "setuptools.build_meta" [project]