From 0b6cf7053e12b2db66e937c7b979f5309c141113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Tue, 8 Aug 2023 20:06:00 +0200 Subject: [PATCH 1/3] BLD: add wheels for CPython 3.12 --- .github/workflows/wheels.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml index 86fc0ae2c99..af7860496a6 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/wheels.yaml @@ -31,11 +31,11 @@ jobs: uses: actions/checkout@v3 - name: Build wheels for CPython - uses: pypa/cibuildwheel@v2.14.1 + uses: pypa/cibuildwheel@v2.15.0 with: output-dir: dist env: - CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*" + CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*" CIBW_SKIP: "*-musllinux_*" # numpy doesn't have wheels for musllinux so we can't build some quickly and without bloating CIBW_ARCHS_LINUX: "x86_64" CIBW_ARCHS_MACOS: x86_64 arm64 From a2762162e597a10b281dab87f51b1a685e9ca442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Tue, 15 Aug 2023 08:31:53 +0200 Subject: [PATCH 2/3] BLD: use numpy 1.26.0b1 to build on CPython 3.12 --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4a021e1c778..9242b1283e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,9 @@ requires = [ # see https://github.com/yt-project/yt/issues/4044 "Cython>=3.0, <3.1", - "oldest-supported-numpy", + # TODO: simplify numpy requirement after numpy 1.26.0 final is released + "oldest-supported-numpy ; python_version < '3.12.0rc1'", + "numpy>=1.26.0b1 ; python_version >= '3.12.0rc1'", "ewah-bool-utils>=1.0.2", ] build-backend = "setuptools.build_meta:__legacy__" From 75b06b0693df5d4f81a05d490055926657485767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Tue, 15 Aug 2023 12:55:19 +0200 Subject: [PATCH 3/3] BLD: use ewah-bool-utils 1.1.0rc1 to build on CPython 3.12 --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9242b1283e7..7183172ee29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,10 +6,13 @@ requires = [ # see https://github.com/yt-project/yt/issues/4044 "Cython>=3.0, <3.1", - # TODO: simplify numpy requirement after numpy 1.26.0 final is released + # TODO: simplify requirement after numpy 1.26.0 final is released "oldest-supported-numpy ; python_version < '3.12.0rc1'", "numpy>=1.26.0b1 ; python_version >= '3.12.0rc1'", - "ewah-bool-utils>=1.0.2", + + # TODO: simplify requirement after ewah-bool-utils 1.1.0 final is released + "ewah-bool-utils>=1.0.2 ; python_version < '3.12.0rc1'", + "ewah-bool-utils>=1.1.0rc1 ; python_version >= '3.12.0rc1'", ] build-backend = "setuptools.build_meta:__legacy__"