Skip to content

Commit

Permalink
Fix wheel builds and add support for Python 3.11 and 3.12 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogabrielsson authored Dec 11, 2023
1 parent cd288a4 commit 59aab46
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand Down
52 changes: 33 additions & 19 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ jobs:
- os: windows-latest
python: 310
platform_id: win32
- os: windows-latest
python: 311
platform_id: win32
- os: windows-latest
python: 312
platform_id: win32

# Windows 64 bit
- os: windows-latest
Expand All @@ -70,40 +76,36 @@ jobs:
- os: windows-latest
python: 310
platform_id: win_amd64
- os: windows-latest
python: 311
platform_id: win_amd64
- os: windows-latest
python: 312
platform_id: win_amd64

# Linux 64 bit manylinux2010
# Linux 64 bit manylinux2014
- os: ubuntu-latest
python: 37
platform_id: manylinux_x86_64
manylinux_image: manylinux2010
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 38
platform_id: manylinux_x86_64
manylinux_image: manylinux2010
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 39
platform_id: manylinux_x86_64
manylinux_image: manylinux2010
- os: ubuntu-latest
python: 310
platform_id: manylinux_x86_64
manylinux_image: manylinux2010

# Linux 64 bit manylinux2014
- os: ubuntu-latest
python: 37
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 38
python: 310
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 39
python: 311
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 310
python: 312
platform_id: manylinux_x86_64
manylinux_image: manylinux2014

Expand All @@ -120,6 +122,12 @@ jobs:
- os: macos-latest
python: 310
platform_id: macosx_x86_64
- os: macos-latest
python: 311
platform_id: macosx_x86_64
- os: macos-latest
python: 312
platform_id: macosx_x86_64

# MacOS arm64
- os: macos-latest
Expand All @@ -131,6 +139,12 @@ jobs:
- os: macos-latest
python: 310
platform_id: macosx_arm64
- os: macos-latest
python: 311
platform_id: macosx_arm64
- os: macos-latest
python: 312
platform_id: macosx_arm64

steps:
- uses: actions/checkout@v2
Expand All @@ -150,7 +164,7 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install -U setuptools-rust
python -m pip install cibuildwheel==2.3.1
python -m pip install cibuildwheel==2.16.2
- name: Build wheels
env:
Expand All @@ -160,7 +174,7 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL: |
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc && rustup target add aarch64-apple-darwin
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
run: |
python --version
Expand All @@ -180,7 +194,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions-rs/toolchain@v1
Expand Down
114 changes: 67 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59aab46

Please sign in to comment.