Skip to content

Commit

Permalink
Support Python 3.12 (tests, wheels) (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored Oct 8, 2023
1 parent 2c5208f commit 10dd2ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
FFMPEG_ROOT: ~/ff_deps/ffmpeg
strategy:
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11']
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
ls $env:SDL_ROOT
ls $env:FFMPEG_ROOT
- name: Make sdist
if: matrix.python == '3.11'
if: matrix.python == '3.12'
run: python setup.py sdist --formats=gztar
- name: Install pip deps
run: |
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
cibw_archs: [ x86_64 ]
cibw_build: [ 'cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64' ]
cibw_build: [ 'cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64' ]
# include:
# - cibw_archs: aarch64
# cibw_build: cp37-manylinux_aarch64
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
docker run --rm -v `pwd`:/io:rw quay.io/pypa/manylinux2014_${{ matrix.cibw_archs }} /io/.ci/build-wheels.sh
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel~=2.12.0
python -m pip install cibuildwheel~=2.16.2
- name: Make wheels
run: |
python -m cibuildwheel --output-dir dist
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
USE_SDL2_MIXER: 0
FFMPEG_BUILD_PATH: "ffmpeg_build"
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-*"
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
DYLD_FALLBACK_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} &&
Expand All @@ -286,7 +286,7 @@ jobs:

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.11.2
python -m pip install cibuildwheel~=2.16.2
- name: Build wheels
run: |
export REPAIR_LIBRARY_PATH="$HOME/${{ env.FFMPEG_BUILD_PATH }}_${{ matrix.arch }}/lib"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def get_wheel_data():
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: BSD :: FreeBSD',
Expand Down

0 comments on commit 10dd2ea

Please sign in to comment.