Skip to content

Commit

Permalink
Build Python 3.12 (#341)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
akaszynski and RobPasMue authored Nov 15, 2023
1 parent 4a8b49e commit 6ee9824
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
18 changes: 1 addition & 17 deletions .ci/build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -131,8 +132,6 @@ jobs:

- name: Build wheels
uses: pypa/[email protected]
with:
python-version: 3.8 - 3.11

- name: List generated wheels
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 6ee9824

Please sign in to comment.