-
-
Notifications
You must be signed in to change notification settings - Fork 106
Implement support for the free-threaded build of CPython 3.13 #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
webknjaz
merged 13 commits into
aio-libs:master
from
lysnikolaou:free-threading-support
Oct 19, 2024
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2fe4097
Implement support for the free-threaded build of CPython 3.13
lysnikolaou 662195c
Add changelog fragment
lysnikolaou bc27400
Update CHANGES/1015.feature.rst
lysnikolaou 6cfac07
Handle errors correctly
lysnikolaou 5310ef7
Fix syntax errors in ci/cd workflow file
lysnikolaou 547722f
Use different id for installing free-threaded python in ci/cd workflo…
lysnikolaou d00e703
Include CPython in spelling dictionary
lysnikolaou ead3245
Skip free-threaded job on Windows and macOS
lysnikolaou fe141b4
Address CI/CD feedback
lysnikolaou b302ec3
Remove pair_list_global_version mutex
lysnikolaou b9e69d5
Add a universal Python version compute step to CI
webknjaz b8d1217
Attempt to fix free-threaded wheel builds
bdraco a60248d
before-all needs to be under .linux
bdraco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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`. | ||
lysnikolaou marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.