Skip to content

Commit

Permalink
Add Python 3.13 support to CI
Browse files Browse the repository at this point in the history
Also support free-threaded mode, aka 3.13t, since the readline module
seems to advertise support for it.
  • Loading branch information
ludwigschwardt committed Oct 17, 2024
1 parent f10e10a commit 87a641d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-13, macos-14]
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
# There is something fishy about this combo (broken standard readline)
- os: macos-13
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
python: [cp36, cp37, cp38, cp39, cp310, cp311, cp312]
python: [cp36, cp37, cp38, cp39, cp310, cp311, cp312, cp313]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
Expand All @@ -35,6 +35,8 @@ jobs:
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python }}-manylinux*
# Enable free-threaded support for Python 3.13+
CIBW_FREE_THREADED_SUPPORT: 1
CIBW_TEST_REQUIRES: ""
CIBW_TEST_COMMAND: python -c "import gnureadline"
- uses: actions/upload-artifact@v4
Expand All @@ -48,7 +50,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-13, macos-14]
python: [cp36, cp37, cp38, cp39, cp310, cp311, cp312]
python: [cp36, cp37, cp38, cp39, cp310, cp311, cp312, cp313]
exclude:
# Python < 3.9 not natively available for Apple Silicon.
# cibuildwheel tries to do a cross build, which fails.
Expand All @@ -61,9 +63,11 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pypa/cibuildwheel@v2.18.1
- uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: ${{ matrix.python }}-macos*
# Enable free-threaded support for Python 3.13+
CIBW_FREE_THREADED_SUPPORT: 1
CIBW_TEST_REQUIRES: ""
CIBW_TEST_COMMAND: python -c "import gnureadline"
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Versions
--------

The module can be used with both Python 2.x and 3.x, and has been tested with
Python versions 2.6, 2.7, and 3.2 to 3.12. The first three numbers of the
Python versions 2.6, 2.7, and 3.2 to 3.13. The first three numbers of the
module version reflect the version of the underlying GNU Readline library
(major, minor and patch level), while any additional fourth number
distinguishes different module updates based on the same Readline library.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37,38,39,310,311,312}
envlist = py{27,35,36,37,38,39,310,311,312,313}

[testenv]
deps = pytest
Expand Down

0 comments on commit 87a641d

Please sign in to comment.