From 8442709c9c8559792b319c8301cde2e1c58923e0 Mon Sep 17 00:00:00 2001 From: Alexander Condello Date: Tue, 24 Oct 2023 09:06:45 -0700 Subject: [PATCH 1/4] Build with Cython3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ae1640441..797847732 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires = [ "setuptools>=46.4.0", "wheel", - "Cython>=0.29.33,<3.0", + "Cython~=3.0", 'oldest-supported-numpy', ] build-backend = "setuptools.build_meta" From a84e7fe50a6576ff379ce9d1df9e2a1ada72aed6 Mon Sep 17 00:00:00 2001 From: Alexander Condello Date: Tue, 24 Oct 2023 09:08:21 -0700 Subject: [PATCH 2/4] Build/test for Python 3.12 --- .circleci/config.yml | 6 +++--- releasenotes/notes/cython3-python312-7a3370aa5d77d5d7.yaml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/cython3-python312-7a3370aa5d77d5d7.yaml diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d4229b1e..48699ab07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: python3 -m venv env . env/bin/activate pip install pip --upgrade - pip install cibuildwheel==2.13.1 + pip install cibuildwheel==2.16.2 cibuildwheel --output-dir dist - save_cache: &build-linux-save-cache paths: @@ -120,7 +120,7 @@ jobs: name: build wheels command: | python -m pip install pip --upgrade - python -m pip install cibuildwheel==2.13.1 + python -m pip install cibuildwheel==2.16.2 python -m cibuildwheel --output-dir dist - store_artifacts: *store-artifacts - persist_to_workspace: *persist-to-workspace @@ -309,7 +309,7 @@ workflows: - build-linux: &build matrix: parameters: - python-version: &python-versions [3.8.9, 3.9.4, 3.10.0, 3.11.0] + python-version: &python-versions [3.8.9, 3.9.4, 3.10.0, 3.11.0, 3.12.0] - build-linux-aarch64: *build - build-sdist - build-osx: *build diff --git a/releasenotes/notes/cython3-python312-7a3370aa5d77d5d7.yaml b/releasenotes/notes/cython3-python312-7a3370aa5d77d5d7.yaml new file mode 100644 index 000000000..d70b7872f --- /dev/null +++ b/releasenotes/notes/cython3-python312-7a3370aa5d77d5d7.yaml @@ -0,0 +1,4 @@ +--- +features: + - Build wheels for Python 3.12. + - Build C++ extensions with Cython 3. From 96dbcfe42bf1a86df6c9f12d79033af8dc70a77b Mon Sep 17 00:00:00 2001 From: Alexander Condello Date: Tue, 24 Oct 2023 09:17:10 -0700 Subject: [PATCH 3/4] Use a newer windows orb in CircleCi --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48699ab07..226a563fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 orbs: codecov: codecov/codecov@3 - win: circleci/windows@2.2.0 + win: circleci/windows@5.0.0 environment: &global-environment PIP_PROGRESS_BAR: 'off' From bf2ac5bd81062bdd11d609ecd59681ca17025198 Mon Sep 17 00:00:00 2001 From: Alexander Condello Date: Tue, 24 Oct 2023 09:19:27 -0700 Subject: [PATCH 4/4] Update Cython version in requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c289ef736..4b0b8098f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ oldest-supported-numpy -cython==0.29.33 +cython==3.0.4 reno==3.3.0 # for changelog