Skip to content

Commit

Permalink
Add 3.13 to ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Nov 20, 2024
1 parent 499a92b commit 54ea755
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 4 deletions.
187 changes: 187 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp39-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py39-nocov (ubuntu/x86_64/musllinux)'
python: '3.9'
Expand All @@ -61,6 +62,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp39-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py39-nocov (ubuntu/aarch64/manylinux)'
python: '3.9'
Expand All @@ -69,6 +71,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp39-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py39-nocov (ubuntu/aarch64/musllinux)'
python: '3.9'
Expand All @@ -77,6 +80,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp39-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py39-nocov (windows/AMD64)'
python: '3.9'
Expand All @@ -85,6 +89,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp39-*'
cibw_ft: 'false'
os: 'windows-latest'
- name: 'py39-nocov (macos/arm64)'
python: '3.9'
Expand All @@ -93,6 +98,7 @@ jobs:
tox_env: 'py39-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp39-*'
cibw_ft: 'false'
os: 'macos-latest'
- name: 'py310-cover (ubuntu/x86_64)'
python: '3.10'
Expand Down Expand Up @@ -128,6 +134,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp310-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py310-nocov (ubuntu/x86_64/musllinux)'
python: '3.10'
Expand All @@ -136,6 +143,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp310-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py310-nocov (ubuntu/aarch64/manylinux)'
python: '3.10'
Expand All @@ -144,6 +152,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp310-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py310-nocov (ubuntu/aarch64/musllinux)'
python: '3.10'
Expand All @@ -152,6 +161,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp310-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py310-nocov (windows/AMD64)'
python: '3.10'
Expand All @@ -160,6 +170,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp310-*'
cibw_ft: 'false'
os: 'windows-latest'
- name: 'py310-nocov (macos/arm64)'
python: '3.10'
Expand All @@ -168,6 +179,7 @@ jobs:
tox_env: 'py310-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp310-*'
cibw_ft: 'false'
os: 'macos-latest'
- name: 'py311-cover (ubuntu/x86_64)'
python: '3.11'
Expand Down Expand Up @@ -203,6 +215,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp311-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py311-nocov (ubuntu/x86_64/musllinux)'
python: '3.11'
Expand All @@ -211,6 +224,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp311-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py311-nocov (ubuntu/aarch64/manylinux)'
python: '3.11'
Expand All @@ -219,6 +233,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp311-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py311-nocov (ubuntu/aarch64/musllinux)'
python: '3.11'
Expand All @@ -227,6 +242,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp311-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py311-nocov (windows/AMD64)'
python: '3.11'
Expand All @@ -235,6 +251,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp311-*'
cibw_ft: 'false'
os: 'windows-latest'
- name: 'py311-nocov (macos/arm64)'
python: '3.11'
Expand All @@ -243,6 +260,7 @@ jobs:
tox_env: 'py311-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp311-*'
cibw_ft: 'false'
os: 'macos-latest'
- name: 'py312-cover (ubuntu/x86_64)'
python: '3.12'
Expand Down Expand Up @@ -278,6 +296,7 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp312-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py312-nocov (ubuntu/x86_64/musllinux)'
python: '3.12'
Expand All @@ -286,6 +305,7 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp312-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py312-nocov (ubuntu/aarch64/manylinux)'
python: '3.12'
Expand All @@ -294,6 +314,7 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp312-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py312-nocov (ubuntu/aarch64/musllinux)'
python: '3.12'
Expand All @@ -302,6 +323,7 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp312-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py312-nocov (windows/AMD64)'
python: '3.12'
Expand All @@ -310,6 +332,7 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp312-*'
cibw_ft: 'false'
os: 'windows-latest'
- name: 'py312-nocov (macos/arm64)'
python: '3.12'
Expand All @@ -318,6 +341,169 @@ jobs:
tox_env: 'py312-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp312-*'
cibw_ft: 'false'
os: 'macos-latest'
- name: 'py313-cover (ubuntu/x86_64)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-cover'
cover: true
cibw_arch: 'x86_64'
cibw_build: false
os: 'ubuntu-latest'
- name: 'py313-cover (windows/AMD64)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-cover'
cover: true
cibw_arch: 'AMD64'
cibw_build: false
os: 'windows-latest'
- name: 'py313-cover (macos/arm64)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'arm64'
tox_env: 'py313-cover'
cover: true
cibw_arch: 'arm64'
cibw_build: false
os: 'macos-latest'
- name: 'py313-nocov (ubuntu/x86_64/manylinux)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp313-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py313-nocov (ubuntu/x86_64/musllinux)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp313-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py313-nocov (ubuntu/aarch64/manylinux)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp313-*manylinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py313-nocov (ubuntu/aarch64/musllinux)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp313-*musllinux*'
cibw_ft: 'false'
os: 'ubuntu-latest'
- name: 'py313-nocov (windows/AMD64)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'x64'
tox_env: 'py313-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp313-*'
cibw_ft: 'false'
os: 'windows-latest'
- name: 'py313-nocov (macos/arm64)'
python: '3.13'
toxpython: 'python3.13'
python_arch: 'arm64'
tox_env: 'py313-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp313-*'
cibw_ft: 'false'
os: 'macos-latest'
- name: 'py313ft-cover (ubuntu/x86_64)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-cover'
cover: true
cibw_arch: 'x86_64'
cibw_build: false
os: 'ubuntu-latest'
- name: 'py313ft-cover (windows/AMD64)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-cover'
cover: true
cibw_arch: 'AMD64'
cibw_build: false
os: 'windows-latest'
- name: 'py313ft-cover (macos/arm64)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'arm64-freethreaded'
tox_env: 'py313ft-cover'
cover: true
cibw_arch: 'arm64'
cibw_build: false
os: 'macos-latest'
- name: 'py313ft-nocov (ubuntu/x86_64/manylinux)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp313ftt-*manylinux*'
cibw_ft: 'true'
os: 'ubuntu-latest'
- name: 'py313ft-nocov (ubuntu/x86_64/musllinux)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp313ftt-*musllinux*'
cibw_ft: 'true'
os: 'ubuntu-latest'
- name: 'py313ft-nocov (ubuntu/aarch64/manylinux)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp313ftt-*manylinux*'
cibw_ft: 'true'
os: 'ubuntu-latest'
- name: 'py313ft-nocov (ubuntu/aarch64/musllinux)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'aarch64'
cibw_build: 'cp313ftt-*musllinux*'
cibw_ft: 'true'
os: 'ubuntu-latest'
- name: 'py313ft-nocov (windows/AMD64)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'x64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'AMD64'
cibw_build: 'cp313ftt-*'
cibw_ft: 'true'
os: 'windows-latest'
- name: 'py313ft-nocov (macos/arm64)'
python: '3.13ft'
toxpython: 'python3.13ft'
python_arch: 'arm64-freethreaded'
tox_env: 'py313ft-nocov'
cibw_arch: 'arm64'
cibw_build: 'cp313ftt-*'
cibw_ft: 'true'
os: 'macos-latest'
- name: 'pypy39-cover (ubuntu/x86_64)'
python: 'pypy-3.9'
Expand Down Expand Up @@ -452,6 +638,7 @@ jobs:
TOXPYTHON: '${{ matrix.toxpython }}'
CIBW_ARCHS: '${{ matrix.cibw_arch }}'
CIBW_BUILD: '${{ matrix.cibw_build }}'
CIBW_FREE_THREADED_SUPPORT: '${{ matrix.cibw_ft }}'
CIBW_BUILD_VERBOSITY: '3'
CIBW_TEST_REQUIRES: >
tox
Expand Down
7 changes: 5 additions & 2 deletions ci/templates/.github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
os: 'ubuntu-latest'
{% for env in tox_environments %}
{% set prefix = env.split('-')[0] -%}
{% set nogil = 'ft' in env %}
{% if prefix.startswith('pypy') %}
{% set python %}pypy-{{ prefix[4] }}.{{ prefix[5:] }}{% endset %}
{% set cpython %}pp{{ prefix[4:5] }}{% endset %}
Expand All @@ -44,14 +45,15 @@ jobs:
- name: '{{ env }} ({{ os }}/{{ cibw_arch }}{{ name_suffix }})'
python: '{{ python }}'
toxpython: '{{ toxpython }}'
python_arch: '{{ python_arch }}'
python_arch: '{{ python_arch }}{% if nogil %}-freethreaded{% endif %}'
tox_env: '{{ env }}'
{% if 'cover' in env %}
cover: true
{% endif %}
cibw_arch: '{{ cibw_arch }}'
{% if 'nocov' in env and not prefix.startswith('pypy') %}
cibw_build: '{{ cpython }}-{{ wheel_arch }}'
cibw_build: '{{ cpython }}{% if nogil %}t{% endif %}-{{ wheel_arch }}'
cibw_ft: '{% if nogil %}true{% else %}false{% endif %}'
{% else %}
cibw_build: false
{% endif %}
Expand Down Expand Up @@ -90,6 +92,7 @@ jobs:
TOXPYTHON: '{{ '${{ matrix.toxpython }}' }}'
CIBW_ARCHS: '{{ '${{ matrix.cibw_arch }}' }}'
CIBW_BUILD: '{{ '${{ matrix.cibw_build }}' }}'
CIBW_FREE_THREADED_SUPPORT: '{{ '${{ matrix.cibw_ft }}' }}'
CIBW_BUILD_VERBOSITY: '3'
CIBW_TEST_REQUIRES: >
tox
Expand Down
Loading

0 comments on commit 54ea755

Please sign in to comment.