Skip to content

Commit 9604a03

Browse files
committed
Add Python 3.13 the build pipeline and tox config.
1 parent 6c07930 commit 9604a03

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- "3.10"
3737
- "3.11"
3838
- "3.12"
39+
- "3.13"
3940
# cryptography is not compatible with older PyPy versions
4041
- "pypy-3.9"
4142
os:
@@ -73,7 +74,7 @@ jobs:
7374
tox -e py${{ matrix.python_version }}
7475
7576
- name: Run dist install checks tox target
76-
if: ${{ matrix.python_version != 'pypy-3.7' && matrix.python_version != 'pypy-3.9' && matrix.python_version != '3.12-dev' }}
77+
if: ${{ matrix.python_version != 'pypy-3.7' && matrix.python_version != 'pypy-3.9' }}
7778
run: |
7879
tox -e py${{ matrix.python_version }}-dist,py${{ matrix.python_version }}-dist-wheel
7980

tox.ini

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ allowlist_externals =
2121
/bin/bash
2222
scripts/*.sh
2323
basepython =
24-
py3.12-dev: python3.12
2524
pypypy3: pypy3
2625
pypypy-3.9: pypy3.9
2726
pypyjion: pyjion
2827
{docs,checks,black,black-check,lint,pylint,bandit,mypy,micro-benchmarks,coverage,import-timings,isort,isort-check,pyupgrade}: python3.9
2928
{py3.9,py3.9-dist,py3.9-dist-wheel,py3.9-windows,integration-storage}: python3.9
3029
{py3.10,py3.10-dist,py3.10-dist-wheel}: python3.10
3130
{py3.11,py3.11-dist,py3.11-dist-wheel}: python3.11
32-
{py3.12-dev,py3.12-dev-dist,py3.12-dev-dist-wheel}: python3.12
31+
{py3.12,py3.12-dist,py3.12-dist-wheel}: python3.12
32+
{py3.13-dev,py3.13-dev-dist,py3.13-dev-dist-wheel}: python3.13
3333
setenv =
3434
CRYPTOGRAPHY_ALLOW_OPENSSL_102=1
3535
# NOTE: By default we run tests on CI in parallel to speed up the build
@@ -99,7 +99,7 @@ recreate = True
9999
deps =
100100
commands = bash -c "./scripts/dist_wheel_install_check.sh"
101101

102-
[testenv:py3.12-dev-dist]
102+
[testenv:py3.12-dist]
103103
# Verify library installs without any dependencies when using python setup.py
104104
# install
105105
skipdist = True
@@ -109,7 +109,26 @@ recreate = True
109109
deps =
110110
commands = bash -c "./scripts/dist_install_check.sh"
111111

112-
[testenv:py3.12-dev-dist-wheel]
112+
[testenv:py3.12-dist-wheel]
113+
# Verify library installs without any dependencies when using built wheel
114+
skipdist = True
115+
recreate = True
116+
# NOTE: We intentionally set empty deps to ensure it works on a clean
117+
# environment without any dependencies
118+
deps =
119+
commands = bash -c "./scripts/dist_wheel_install_check.sh"
120+
121+
[testenv:py3.13-dist]
122+
# Verify library installs without any dependencies when using python setup.py
123+
# install
124+
skipdist = True
125+
recreate = True
126+
# NOTE: We intentionally set empty deps to ensure it works on a clean
127+
# environment without any dependencies
128+
deps =
129+
commands = bash -c "./scripts/dist_install_check.sh"
130+
131+
[testenv:py3.13-dist-wheel]
113132
# Verify library installs without any dependencies when using built wheel
114133
skipdist = True
115134
recreate = True

0 commit comments

Comments
 (0)