forked from cython/cython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into nogil-unsafe-borrowed-references
- Loading branch information
Showing
105 changed files
with
2,628 additions
and
1,036 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
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 |
---|---|---|
|
@@ -106,12 +106,12 @@ jobs: | |
- os: ubuntu-20.04 | ||
python-version: "3.7" | ||
backend: "c,cpp" | ||
env: { LIMITED_API: "--limited-api", EXCLUDE: "--no-file" } | ||
env: { LIMITED_API: "--limited-api", NO_LIMITED_COMPILE: 1, EXCLUDE: "--no-file" } | ||
extra_hash: "-limited_api" | ||
- os: ubuntu-20.04 | ||
python-version: "3.8" | ||
backend: "c,cpp" | ||
env: { LIMITED_API: "--limited-api", EXCLUDE: "--no-file" } | ||
env: { LIMITED_API: "--limited-api", NO_LIMITED_COMPILE: 1, EXCLUDE: "--no-file" } | ||
extra_hash: "-limited_api" | ||
- os: ubuntu-20.04 | ||
python-version: "3.11" | ||
|
@@ -161,6 +161,12 @@ jobs: | |
python-version: pypy-3.10 | ||
backend: c | ||
env: { NO_CYTHON_COMPILE: 1 } | ||
# Free-threading | ||
- os: ubuntu-20.04 | ||
python-version: 3.13-freethreading-dev | ||
backend: "c,cpp" | ||
env: {} | ||
allowed_failure: true | ||
|
||
# This defaults to 360 minutes (6h) which is way too long and if a test gets stuck, it can block other pipelines. | ||
# From testing, the runs tend to take ~20 minutes for ubuntu / macos and ~40 for windows, | ||
|
@@ -186,9 +192,17 @@ jobs: | |
|
||
- name: Setup python | ||
uses: actions/[email protected] | ||
if: "!endsWith(matrix.python-version, '-freethreading-dev')" | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup python from deadsnakes | ||
uses: deadsnakes/[email protected] | ||
if: "endsWith(matrix.python-version, '-freethreading-dev')" | ||
with: | ||
python-version: 3.13-dev | ||
nogil: true | ||
|
||
- name: Compilation Cache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
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,63 @@ | ||
# Workflow to build non-compiled nightly wheel. | ||
|
||
name: Nightly wheels | ||
on: | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
- cron: "42 1 * * 0,3" | ||
pull_request: | ||
types: [labeled, opened, synchronize, reopened] | ||
paths: | ||
#- Cython/Build/** | ||
- .github/workflows/nightly-wheels.yml | ||
- pyproject.toml | ||
- MANIFEST.in | ||
- setup.* | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
build_pure_wheel: | ||
name: Build pure wheel and upload to Anaconda's PyPI | ||
if: >- | ||
github.event_name == 'schedule' || | ||
github.event_name == 'workflow_dispatch' || | ||
(github.event_name == 'pull_request' && | ||
contains(github.event.pull_request.labels.*.name, 'Build System')) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Cython | ||
uses: actions/[email protected] | ||
|
||
- uses: deadsnakes/[email protected] | ||
with: | ||
python-version: 3.13-dev | ||
nogil: true | ||
|
||
- name: Build pure wheel | ||
run: | | ||
pip install --upgrade wheel setuptools | ||
python setup.py bdist_wheel --no-cython-compile | ||
- uses: actions/[email protected] | ||
with: | ||
name: pure-wheel | ||
path: ./dist/*.whl | ||
|
||
- name: Upload wheels to scientific-python-nightly-wheels | ||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | ||
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 | ||
with: | ||
artifacts_path: dist | ||
anaconda_nightly_upload_token: ${{ secrets.CYTHON_NIGHTLY_UPLOAD_TOKEN }} |
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
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
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
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.