From 8d3b3665ee255d4ee7c366bb1b4dde000e335fc9 Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 28 Aug 2025 21:57:17 +0900 Subject: [PATCH 1/2] Add patch for python flint --- packages/python-flint/meta.yaml | 2 + ...x-Cython-version-and-add-pypy-wheels.patch | 61 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch diff --git a/packages/python-flint/meta.yaml b/packages/python-flint/meta.yaml index 75340c8a..0f6d6ff8 100644 --- a/packages/python-flint/meta.yaml +++ b/packages/python-flint/meta.yaml @@ -11,6 +11,8 @@ requirements: source: url: https://files.pythonhosted.org/packages/source/p/python_flint/python_flint-0.7.1.tar.gz sha256: 8594cdbcba0c29503eefca76dfca37fe2388f11ee95c8d1f74e47006b97ce6d2 + patches: + - patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch build: cflags: | -I$(WASM_LIBRARY_DIR)/include diff --git a/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch b/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch new file mode 100644 index 00000000..e9bd065a --- /dev/null +++ b/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch @@ -0,0 +1,61 @@ +From 6748eb2358929e4d25cb2d03ed7f2e3aa6fe8354 Mon Sep 17 00:00:00 2001 +From: Oscar Benjamin +Date: Sat, 24 May 2025 21:43:02 +0100 +Subject: [PATCH 01/01] maint: bump max Cython version and add pypy wheels + +Cython 3.1.0a1 is removed from PyPI for some reason. + +--- + + +diff --git a/meson.build b/meson.build +index 4072035..a3963a8 100644 +--- a/meson.build ++++ b/meson.build +@@ -14,7 +14,7 @@ project( + flint_lower = '>=3.0' + flint_upper = '<3.3' + cython_lower = '>=3.0.11' +-cython_upper = '<=3.1.0a1' ++cython_upper = '<3.2' + + py = import('python').find_installation(pure: false) + dep_py = py.dependency() +diff --git a/pyproject.toml b/pyproject.toml +index 26d8c84..dd77941 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -28,16 +28,16 @@ content-type = "text/markdown" + # Minimum build requirements tested in CI need to be kept in sync with the + # versions in requires below so that they are tested. + # +-# To support the freethreaded build (CPython 3.13t) the alpha release 3.1.0a1 +-# of Cython is needed as a minimum requirement. It is possible that future +-# versions of Cython might still work but typically a Cython release breaks +-# something in the build of python-flint so we pin the exact version here. ++# To support the freethreaded build (CPython 3.13t) version 3.1.0 of Cython is ++# needed as a minimum requirement. It is possible that future versions of ++# Cython might still work but typically a Cython release breaks something in ++# the build of python-flint so we include an upper bound here. + # + # Apart from the freethreading build any Cython version from 3.0.11 onwards is + # fine. It is not possible to have a separate version constraint here for the + # freethreading build only though. + # +-requires = ["meson-python>=0.13", "cython==3.1.0a1"] ++requires = ["meson-python >= 0.13", "cython >=3.1,<3.2"] + build-backend = "mesonpy" + + [tool.cython-lint] +@@ -82,7 +82,7 @@ package = "flint" + [tool.cibuildwheel] + # requires-python needs to keep in sync with this and also the list of Python + # versions the wheels are tested against in CI. +-build = "cp311-* cp312-* cp313-* cp313t-*" # pp311-*" ++build = "cp311-* cp312-* cp313-* cp313t-* pp311-*" + skip = "*-win32 *-manylinux_i686 *-musllinux_*" + + # Enable building for free-threaded CPython builds +-- +2.29.2.windows.2 + From 33dbafd548916024459dc466673b7338289242cd Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Sat, 30 Aug 2025 10:10:41 +0900 Subject: [PATCH 2/2] Bump version and remove patch --- packages/python-flint/meta.yaml | 8 +-- ...x-Cython-version-and-add-pypy-wheels.patch | 61 ------------------- 2 files changed, 3 insertions(+), 66 deletions(-) delete mode 100644 packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch diff --git a/packages/python-flint/meta.yaml b/packages/python-flint/meta.yaml index 0f6d6ff8..17cd1d99 100644 --- a/packages/python-flint/meta.yaml +++ b/packages/python-flint/meta.yaml @@ -1,6 +1,6 @@ package: name: python-flint - version: 0.7.1 + version: 0.8.0 top-level: - flint requirements: @@ -9,10 +9,8 @@ requirements: - libgmp - libmpfr source: - url: https://files.pythonhosted.org/packages/source/p/python_flint/python_flint-0.7.1.tar.gz - sha256: 8594cdbcba0c29503eefca76dfca37fe2388f11ee95c8d1f74e47006b97ce6d2 - patches: - - patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch + url: https://files.pythonhosted.org/packages/source/p/python_flint/python_flint-0.8.0.tar.gz + sha256: 3da125cd780e09510b0fb5f455646013f2b49072ea43eea806f6af77b450fa39 build: cflags: | -I$(WASM_LIBRARY_DIR)/include diff --git a/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch b/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch deleted file mode 100644 index e9bd065a..00000000 --- a/packages/python-flint/patches/0001-maint-bump-max-Cython-version-and-add-pypy-wheels.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 6748eb2358929e4d25cb2d03ed7f2e3aa6fe8354 Mon Sep 17 00:00:00 2001 -From: Oscar Benjamin -Date: Sat, 24 May 2025 21:43:02 +0100 -Subject: [PATCH 01/01] maint: bump max Cython version and add pypy wheels - -Cython 3.1.0a1 is removed from PyPI for some reason. - ---- - - -diff --git a/meson.build b/meson.build -index 4072035..a3963a8 100644 ---- a/meson.build -+++ b/meson.build -@@ -14,7 +14,7 @@ project( - flint_lower = '>=3.0' - flint_upper = '<3.3' - cython_lower = '>=3.0.11' --cython_upper = '<=3.1.0a1' -+cython_upper = '<3.2' - - py = import('python').find_installation(pure: false) - dep_py = py.dependency() -diff --git a/pyproject.toml b/pyproject.toml -index 26d8c84..dd77941 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -28,16 +28,16 @@ content-type = "text/markdown" - # Minimum build requirements tested in CI need to be kept in sync with the - # versions in requires below so that they are tested. - # --# To support the freethreaded build (CPython 3.13t) the alpha release 3.1.0a1 --# of Cython is needed as a minimum requirement. It is possible that future --# versions of Cython might still work but typically a Cython release breaks --# something in the build of python-flint so we pin the exact version here. -+# To support the freethreaded build (CPython 3.13t) version 3.1.0 of Cython is -+# needed as a minimum requirement. It is possible that future versions of -+# Cython might still work but typically a Cython release breaks something in -+# the build of python-flint so we include an upper bound here. - # - # Apart from the freethreading build any Cython version from 3.0.11 onwards is - # fine. It is not possible to have a separate version constraint here for the - # freethreading build only though. - # --requires = ["meson-python>=0.13", "cython==3.1.0a1"] -+requires = ["meson-python >= 0.13", "cython >=3.1,<3.2"] - build-backend = "mesonpy" - - [tool.cython-lint] -@@ -82,7 +82,7 @@ package = "flint" - [tool.cibuildwheel] - # requires-python needs to keep in sync with this and also the list of Python - # versions the wheels are tested against in CI. --build = "cp311-* cp312-* cp313-* cp313t-*" # pp311-*" -+build = "cp311-* cp312-* cp313-* cp313t-* pp311-*" - skip = "*-win32 *-manylinux_i686 *-musllinux_*" - - # Enable building for free-threaded CPython builds --- -2.29.2.windows.2 -