-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for the free-threaded build of CPython 3.13
PR #1015 Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Sviatoslav Sydorenko <[email protected]>
- Loading branch information
1 parent
217d16e
commit 888553e
Showing
8 changed files
with
1,631 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ jobs: | |
strategy: | ||
matrix: | ||
pyver: | ||
- 3.13-freethreading | ||
- 3.13 | ||
- 3.12 | ||
- 3.11 | ||
|
@@ -163,6 +164,10 @@ jobs: | |
no-extensions: Y | ||
- os: windows | ||
no-extensions: Y | ||
- os: macos | ||
pyver: 3.13-freethreading # this is still tested within cibuildwheel | ||
- os: windows | ||
pyver: 3.13-freethreading # this is still tested within cibuildwheel | ||
include: | ||
- pyver: pypy-3.8 | ||
no-extensions: Y | ||
|
@@ -195,11 +200,44 @@ jobs: | |
path: dist | ||
|
||
- name: Setup Python ${{ matrix.pyver }} | ||
id: python-install | ||
if: >- | ||
!endsWith(matrix.pyver, '-freethreading') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.pyver }} | ||
allow-prereleases: true | ||
- name: Setup Python ${{ matrix.pyver }} | ||
if: endsWith(matrix.pyver, '-freethreading') | ||
uses: deadsnakes/[email protected] | ||
with: | ||
python-version: 3.13-dev | ||
nogil: true | ||
- name: Compute runtime Python version | ||
id: python-install | ||
run: | | ||
import sys | ||
from os import environ | ||
from pathlib import Path | ||
FILE_APPEND_MODE = 'a' | ||
python_version_str = ".".join( | ||
map(str, sys.version_info[:3]), | ||
) | ||
freethreading_suffix = ( | ||
'' if sys.version_info < (3, 13) or sys._is_gil_enabled() | ||
else 't' | ||
) | ||
with Path(environ['GITHUB_OUTPUT']).open( | ||
mode=FILE_APPEND_MODE, | ||
) as outputs_file: | ||
print( | ||
f'python-version={python_version_str}{freethreading_suffix}', | ||
file=outputs_file, | ||
) | ||
shell: python | ||
|
||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Implemented support for the free-threaded build of CPython 3.13 -- by :user:`lysnikolaou`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Started publishing wheels made for the free-threaded build of CPython 3.13 -- by :user:`lysnikolaou`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ cChardet | |
changelog | ||
charset | ||
charsetdetect | ||
CPython | ||
criterias | ||
css | ||
ctor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.