Skip to content

Commit b827481

Browse files
committed
Test on Python 3.12
1 parent ffe9351 commit b827481

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

.github/workflows/python_ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,8 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
37+
- {python-version: "3.12.0-alpha.3", testenvs: "py312-dev,build", experimental: True}
3738
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3839
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3940
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,8 @@ jobs:
3434
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3535
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3636
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
37-
- {python-version: "3.11", testenvs: "py311-dev,build", experimental: True}
37+
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
38+
- {python-version: "3.12.0-alpha.3", testenvs: "py312-dev,build", experimental: True}
3839
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3940
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
4041
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_macos.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-latest"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.7,pypy-3.8,pypy-3.9'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.3,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,8 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
37+
- {python-version: "3.12.0-alpha.3", testenvs: "py312-dev,build", experimental: True}
3738
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3839
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3940
- {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ base-classifiers = [
3131
"Topic :: Utilities",
3232
"Typing :: Typed",
3333
]
34-
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",]
34+
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11",]
3535
python-implementations = [ "CPython", "PyPy",]
3636
platforms = [ "Windows", "macOS", "Linux",]
3737
license-key = "MIT"

repo_helper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ python_versions:
2626
- "3.8"
2727
- "3.9"
2828
- "3.10"
29-
- "3.11-dev"
29+
- "3.11"
30+
- "3.12-dev"
3031
- pypy36
3132
- pypy37
3233
- pypy38

tests/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
platforms = {*platforms, *(p.lower() for p in platforms)}
1616

1717
versions = [(2, 7)]
18-
versions.extend((3, v) for v in range(12))
18+
versions.extend((3, v) for v in range(13))
1919
versions.append((4, 0))
2020

2121
versions_before = versions[:versions.index(sys.version_info[:2])]

tox.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# * tox
44
# * envlists
55
# * testenv
6+
# * testenv:py312-dev
67
# * testenv:docs
78
# * testenv:build
89
# * testenv:lint
@@ -21,7 +22,8 @@ envlist =
2122
py38
2223
py39
2324
py310
24-
py311-dev
25+
py311
26+
py312-dev
2527
pypy36
2628
pypy37
2729
pypy38
@@ -43,7 +45,8 @@ test =
4345
py38
4446
py39
4547
py310
46-
py311-dev
48+
py311
49+
py312-dev
4750
pypy36
4851
pypy37
4952
pypy38
@@ -61,6 +64,11 @@ commands =
6164
python --version
6265
python -m pytest --cov=coverage_pyver_pragma -r aR tests/ {posargs}
6366

67+
[testenv:py312-dev]
68+
setenv =
69+
PYTHONDEVMODE=1
70+
PIP_DISABLE_PIP_VERSION_CHECK=1
71+
6472
[testenv:docs]
6573
setenv = SHOW_TODOS = 1
6674
passenv = SPHINX_BUILDER

0 commit comments

Comments
 (0)