From 6ee982455784176579f21b5b37a19f5d3d80c130 Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Wed, 15 Nov 2023 10:00:41 +0000 Subject: [PATCH] Build Python 3.12 (#341) * attempt to build python 3.12 * test mac build * discontinue using switch for PYBIN * bump cython * Update .github/workflows/testing-and-deployment.yml * Update .ci/build_wheels.sh * Update .github/workflows/testing-and-deployment.yml * remove invalid input --------- Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> --- .ci/build_wheels.sh | 18 +----------------- .github/workflows/testing-and-deployment.yml | 5 ++--- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.ci/build_wheels.sh b/.ci/build_wheels.sh index 4539c444..16ab8260 100755 --- a/.ci/build_wheels.sh +++ b/.ci/build_wheels.sh @@ -5,23 +5,7 @@ set -e -x # build based on python version from args PYTHON_VERSION="$1" -case $PYTHON_VERSION in -3.7) - PYBIN="/opt/python/cp37-cp37m/bin" - ;; -3.8) - PYBIN="/opt/python/cp38-cp38/bin" - ;; -3.9) - PYBIN="/opt/python/cp39-cp39/bin" - ;; -3.10) - PYBIN="/opt/python/cp310-cp310/bin" - ;; -3.11) - PYBIN="/opt/python/cp311-cp311/bin" - ;; -esac +PYBIN="/opt/python/cp${PYTHON_VERSION//.}-cp${PYTHON_VERSION//.}/bin" # build, don't install cd io diff --git a/.github/workflows/testing-and-deployment.yml b/.github/workflows/testing-and-deployment.yml index 22ddc869..2177837d 100644 --- a/.github/workflows/testing-and-deployment.yml +++ b/.github/workflows/testing-and-deployment.yml @@ -54,8 +54,9 @@ jobs: name: Build and Test runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, windows-latest] steps: @@ -131,8 +132,6 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.16.2 - with: - python-version: 3.8 - 3.11 - name: List generated wheels run: | diff --git a/pyproject.toml b/pyproject.toml index f53967e2..1b18ab20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "cython==3.0.0b2", + "cython==3.0.5", "oldest-supported-numpy", "setuptools>=45.0", "wheel>=0.37.0",