Skip to content

Commit e0110e2

Browse files
authored
Merge pull request #170 from misl6/support-python-313
Support Python 3.13
2 parents 5eb23e1 + f322ab9 commit e0110e2

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

.ci/build_wheels_osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export PATH="$BUILD_PATH/bin:/usr/local/bin/:$PATH"
1414
export PKG_CONFIG_PATH="$BUILD_PATH/lib/pkgconfig:/usr/lib/pkgconfig/:$PKG_CONFIG_PATH"
1515
export CC="/usr/bin/clang"
1616
export CXX="/usr/bin/clang"
17-
export MACOSX_DEPLOYMENT_TARGET=10.9
17+
export MACOSX_DEPLOYMENT_TARGET=10.13
1818

1919
if [ "$ARCH" = "x86_64" ]; then
2020
ARCH2=x86_64

.ci/merge_osx_deps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ py_osx_ver=$(echo ${MACOSX_DEPLOYMENT_TARGET} | sed "s/\./_/g")
66
py_osx_ver_arm=$(echo ${MACOSX_DEPLOYMENT_TARGET_ARM} | sed "s/\./_/g")
77
for whl in *.whl; do
88
if [[ "$whl" == *macosx_${py_osx_ver}_x86_64.whl ]]; then
9-
whl_base=$(echo "$whl" | rev | cut -c 23- | rev)
9+
whl_base=$(echo "$whl" | rev | cut -c 24- | rev)
1010
if [[ -f "${whl_base}macosx_${py_osx_ver_arm}_arm64.whl" ]]; then
1111
delocate-merge "$whl" "${whl_base}macosx_${py_osx_ver_arm}_arm64.whl"
1212
fi
1313
fi
14-
done
14+
done

.github/workflows/pythonapp.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
SDL_VERSION: "2.26.4" # https://github.com/libsdl-org/SDL/releases
88
SDL_MIXER_VERSION: "2.6.3" # https://github.com/libsdl-org/SDL_mixer/releases
99
USE_SDL2_MIXER: "1"
10-
MACOSX_DEPLOYMENT_TARGET: "10.9"
10+
MACOSX_DEPLOYMENT_TARGET: "10.13"
1111
MACOSX_DEPLOYMENT_TARGET_ARM: "11.0"
1212

1313
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
FFMPEG_ROOT: ~/ff_deps/ffmpeg
2020
strategy:
2121
matrix:
22-
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
22+
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Python ${{ matrix.python }}
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
python -m pip install --upgrade pip virtualenv wheel setuptools cython~=3.0.11 pytest
6565
- name: Make sdist
66-
if: matrix.python == '3.12'
66+
if: matrix.python == '3.13'
6767
run: python setup.py sdist --formats=gztar
6868
- name: Make wheel
6969
run: |
@@ -197,7 +197,7 @@ jobs:
197197
matrix:
198198
os: [ ubuntu-latest ]
199199
cibw_archs: [ x86_64 ]
200-
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' ]
200+
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 cp313-manylinux_x86_64' ]
201201
# include:
202202
# - cibw_archs: aarch64
203203
# cibw_build: cp37-manylinux_aarch64
@@ -228,7 +228,7 @@ jobs:
228228
docker run --rm -v `pwd`:/io:rw quay.io/pypa/manylinux2014_${{ matrix.cibw_archs }} /io/.ci/build-wheels.sh
229229
- name: Install cibuildwheel
230230
run: |
231-
python -m pip install cibuildwheel~=2.16.2
231+
python -m pip install cibuildwheel~=2.20.0
232232
- name: Make wheels
233233
run: |
234234
python -m cibuildwheel --output-dir dist
@@ -259,7 +259,7 @@ jobs:
259259
USE_SDL2_MIXER: 0
260260
FFMPEG_BUILD_PATH: "ffmpeg_build"
261261
CIBW_BUILD_VERBOSITY: 3
262-
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
262+
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*"
263263
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
264264
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
265265
DYLD_FALLBACK_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} &&
@@ -286,7 +286,7 @@ jobs:
286286

287287
- name: Install cibuildwheel
288288
run: |
289-
python -m pip install cibuildwheel~=2.16.2
289+
python -m pip install cibuildwheel~=2.20.0
290290
- name: Build wheels
291291
run: |
292292
export REPAIR_LIBRARY_PATH="$HOME/${{ env.FFMPEG_BUILD_PATH }}_${{ matrix.arch }}/lib"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def get_wheel_data():
399399
'Programming Language :: Python :: 3.10',
400400
'Programming Language :: Python :: 3.11',
401401
'Programming Language :: Python :: 3.12',
402+
'Programming Language :: Python :: 3.13',
402403
'Operating System :: MacOS :: MacOS X',
403404
'Operating System :: Microsoft :: Windows',
404405
'Operating System :: POSIX :: BSD :: FreeBSD',

0 commit comments

Comments
 (0)