diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d4229b1e..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' @@ -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/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" 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. 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