Skip to content

Commit dd5083b

Browse files
hongleiclaude
andauthored
Add Python 3.15 and free-threaded 3.15 to CI and the wheel builder (#1268)
* Add Python 3.15 and free-threaded 3.15 to CI and the wheel builder Test 3.15 and 3.15t on Linux, macOS and Windows, and build cp315-cp315t wheels next to the existing cp314-cp314t ones. The abi3 wheels already cover GIL-enabled 3.15. Set allow-prereleases on the setup-python steps so 3.15 resolves while the action only serves release candidates, and moves to the final release on its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Simplify Python CI coverage per review feedback --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 340958f commit dd5083b

5 files changed

Lines changed: 29 additions & 2 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<array>
5+
<dict>
6+
<key>attributeSetting</key>
7+
<integer>1</integer>
8+
<key>choiceAttribute</key>
9+
<string>selected</string>
10+
<key>choiceIdentifier</key>
11+
<string>org.python.Python.PythonTFramework-3.15</string>
12+
</dict>
13+
</array>
14+
</plist>

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
matrix:
1818
PYTHON:
1919
- {VERSION: "3.9", NOXSESSION: "tests"}
20-
- {VERSION: "3.14", NOXSESSION: "tests"}
2120
- {VERSION: "3.14t", NOXSESSION: "tests"}
21+
- {VERSION: "3.15", NOXSESSION: "tests"}
22+
- {VERSION: "3.15t", NOXSESSION: "tests"}
2223
MACOS:
2324
- macos-15-intel
2425
- macos-latest
@@ -55,8 +56,9 @@ jobs:
5556
- {ARCH: 'x64', WINDOWS: 'win64', RUST_TRIPLE: 'x86_64-pc-windows-msvc', RUNNER: 'windows-latest'}
5657
PYTHON:
5758
- {VERSION: "3.9", NOXSESSION: "tests"}
58-
- {VERSION: "3.14", NOXSESSION: "tests"}
5959
- {VERSION: "3.14t", NOXSESSION: "tests"}
60+
- {VERSION: "3.15", NOXSESSION: "tests"}
61+
- {VERSION: "3.15t", NOXSESSION: "tests"}
6062
name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}"
6163
steps:
6264
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -96,6 +98,8 @@ jobs:
9698
- {VERSION: "3.13", NOXSESSION: "tests"}
9799
- {VERSION: "3.14", NOXSESSION: "tests"}
98100
- {VERSION: "3.14t", NOXSESSION: "tests"}
101+
- {VERSION: "3.15", NOXSESSION: "tests"}
102+
- {VERSION: "3.15t", NOXSESSION: "tests"}
99103
- {VERSION: "pypy-3.11", NOXSESSION: "tests"}
100104

101105
# MSRV

‎.github/workflows/wheel-builder.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
- { VERSION: "cp39-cp39", ABI_VERSION: 'cp39' }
5151
- { VERSION: "pp311-pypy311_pp73" }
5252
- { VERSION: "cp314-cp314t" }
53+
- { VERSION: "cp315-cp315t" }
5354
MANYLINUX:
5455
- { NAME: "manylinux2014_x86_64", CONTAINER: "cryptography-manylinux2014:x86_64", RUNNER: "ubuntu-latest" }
5556
- { NAME: "manylinux_2_28_x86_64", CONTAINER: "cryptography-manylinux_2_28:x86_64", RUNNER: "ubuntu-latest"}
@@ -138,6 +139,9 @@ jobs:
138139
- VERSION: '3.14t'
139140
DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.14.0/python-3.14.0-macos11.pkg'
140141
BIN_PATH: '/Library/Frameworks/PythonT.framework/Versions/3.14/bin/python3.14t'
142+
- VERSION: '3.15t'
143+
DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.15.0/python-3.15.0-macos11.pkg'
144+
BIN_PATH: '/Library/Frameworks/PythonT.framework/Versions/3.15/bin/python3.15t'
141145
name: "Python ${{ matrix.PYTHON.VERSION }} ${{ matrix.PYTHON.ABI_VERSION }} on macOS"
142146
steps:
143147
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -146,6 +150,7 @@ jobs:
146150
ref: ${{ github.event.inputs.version || github.ref }}
147151
sparse-checkout: |
148152
.github/config/macos-pkg-choices-freethreaded-3.14t.xml
153+
.github/config/macos-pkg-choices-freethreaded-3.15t.xml
149154
persist-credentials: false
150155
- name: Install Python
151156
if: ${{ !endsWith(matrix.PYTHON.VERSION, 't') }}
@@ -203,6 +208,7 @@ jobs:
203208
PYTHON:
204209
- {VERSION: "3.11", ABI_VERSION: "cp39"}
205210
- {VERSION: "3.14t"}
211+
- {VERSION: "3.15t"}
206212
name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.PYTHON.ABI_VERSION }} ${{ matrix.WINDOWS.ARCH }}"
207213
steps:
208214
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

‎CHANGELOG.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Unreleased
88
* Dropped support for Python 3.8.
99
* Dropped support for free-threaded Python 3.13 (free-threaded Python 3.14 is
1010
still supported).
11+
* Added support for Python 3.15 and free-threaded Python 3.15.
12+
* We now publish wheels for free-threaded Python 3.15.
1113

1214
5.0.0
1315
-----

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.12",
2929
"Programming Language :: Python :: 3.13",
3030
"Programming Language :: Python :: 3.14",
31+
"Programming Language :: Python :: 3.15",
3132
"Programming Language :: Python :: Free Threading :: 3 - Stable",
3233
]
3334
requires-python = ">= 3.9"

0 commit comments

Comments
 (0)