Skip to content

Commit

Permalink
Test on Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Dec 12, 2023
1 parent c1b8565 commit a4198ac
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: "windows-2019"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.2,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -34,6 +34,7 @@ jobs:
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "3.13.0-alpha.2", testenvs: "py313-dev,build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: "ubuntu-20.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.2,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -35,6 +35,7 @@ jobs:
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "3.13.0-alpha.2", testenvs: "py313-dev,build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: "macos-latest"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.2,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -34,6 +34,7 @@ jobs:
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "3.13.0-alpha.2", testenvs: "py313-dev,build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}
Expand Down
1 change: 1 addition & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ python_versions:
- '3.10'
- '3.11'
- '3.12'
- '3.13-dev'
- pypy37
- pypy38
- pypy39
Expand Down
21 changes: 19 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ envlist =
py310
py311
py312
py313-dev
pypy37
pypy38
pypy39
Expand All @@ -42,7 +43,17 @@ requires =
virtualenv!=20.16.0

[envlists]
test = py37, py38, py39, py310, py311, py312, pypy37, pypy38, pypy39
test =
py37
py38
py39
py310
py311
py312
py313-dev
pypy37
pypy38
pypy39
qa = mypy, lint
cov = py38, coverage

Expand All @@ -61,6 +72,11 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py313-dev]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py312]
setenv =
PYTHONDEVMODE=1
Expand All @@ -84,7 +100,8 @@ changedir = {toxinidir}
deps =
build[virtualenv]>=0.3.1
check-wheel-contents>=0.1.0
twine>=3.2.0
twine>=3.2.0; python_version < "3.13"
twine@git+https://github.com/pypa/twine; python_version >= "3.13"
cryptography<40; implementation_name == "pypy" and python_version <= "3.7"
commands =
python -m build --sdist --wheel "{toxinidir}"
Expand Down

0 comments on commit a4198ac

Please sign in to comment.