Skip to content

Commit 7ed6cb7

Browse files
committed
Test on Python 3.12
1 parent e88b722 commit 7ed6cb7

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
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.7,3.8,3.9,3.10,3.11,pypy-3.7,pypy-3.8,pypy-3.9'
25+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -32,7 +32,8 @@ jobs:
3232
- {python-version: "3.8", testenvs: "py38-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3333
- {python-version: "3.9", testenvs: "py39-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3434
- {python-version: "3.10", testenvs: "py310-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
35-
- {python-version: "3.11", testenvs: "py311-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
35+
- {python-version: "3.11", testenvs: "py311-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
36+
- {python-version: "3.12.0-alpha.7", testenvs: "py312-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3637
- {python-version: "pypy-3.7", testenvs: "pypy37-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3738
- {python-version: "pypy-3.8", testenvs: "pypy38-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3839
- {python-version: "pypy-3.9", testenvs: "pypy39-jinja2{3.1,3.0,2.11,2.10}", 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.7,3.8,3.9,3.10,3.11,pypy-3.7,pypy-3.8,pypy-3.9'
26+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'
2727

2828
strategy:
2929
fail-fast: False
@@ -33,7 +33,8 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
36-
- {python-version: "3.11", testenvs: "py311-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
36+
- {python-version: "3.11", testenvs: "py311-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
37+
- {python-version: "3.12.0-alpha.7", testenvs: "py312-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3738
- {python-version: "pypy-3.7", testenvs: "pypy37-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3839
- {python-version: "pypy-3.8", testenvs: "pypy38-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3940
- {python-version: "pypy-3.9", testenvs: "pypy39-jinja2{3.1,3.0,2.11,2.10}", 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.7,3.8,3.9,3.10,3.11,pypy-3.7,pypy-3.8,pypy-3.9'
25+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -32,7 +32,8 @@ jobs:
3232
- {python-version: "3.8", testenvs: "py38-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3333
- {python-version: "3.9", testenvs: "py39-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
3434
- {python-version: "3.10", testenvs: "py310-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
35-
- {python-version: "3.11", testenvs: "py311-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
35+
- {python-version: "3.11", testenvs: "py311-jinja2{3.1,3.0,2.11,2.10},build", experimental: False}
36+
- {python-version: "3.12.0-alpha.7", testenvs: "py312-dev-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3637
- {python-version: "pypy-3.7", testenvs: "pypy37-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3738
- {python-version: "pypy-3.8", testenvs: "pypy38-jinja2{3.1,3.0,2.11,2.10},build", experimental: True}
3839
- {python-version: "pypy-3.9", testenvs: "pypy39-jinja2{3.1,3.0,2.11,2.10}", experimental: True}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ base-classifiers = [
3636
"Topic :: Documentation :: Sphinx",
3737
"Topic :: Software Development :: Documentation",
3838
]
39-
python-versions = [ "3.7", "3.8", "3.9", "3.10",]
39+
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11",]
4040
python-implementations = [ "CPython", "PyPy",]
4141
platforms = [ "Windows", "macOS", "Linux",]
4242
license-key = "MIT"

repo_helper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ python_versions:
2525
- 3.8
2626
- 3.9
2727
- "3.10"
28-
- 3.11-dev
28+
- "3.11"
29+
- 3.12-dev
2930
- pypy37
3031
- pypy38
3132
- pypy39

tox.ini

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ envlist =
1919
py38-jinja2{3.1,3.0,2.11,2.10}
2020
py39-jinja2{3.1,3.0,2.11,2.10}
2121
py310-jinja2{3.1,3.0,2.11,2.10}
22-
py311-dev-jinja2{3.1,3.0,2.11,2.10}
22+
py311-jinja2{3.1,3.0,2.11,2.10}
23+
py312-dev-jinja2{3.1,3.0,2.11,2.10}
2324
pypy37-jinja2{3.1,3.0,2.11,2.10}
2425
pypy38-jinja2{3.1,3.0,2.11,2.10}
2526
pypy39-jinja2{3.1,3.0,2.11,2.10}
@@ -39,7 +40,8 @@ test =
3940
py38-jinja2{3.1,3.0,2.11,2.10}
4041
py39-jinja2{3.1,3.0,2.11,2.10}
4142
py310-jinja2{3.1,3.0,2.11,2.10}
42-
py311-dev-jinja2{3.1,3.0,2.11,2.10}
43+
py311-jinja2{3.1,3.0,2.11,2.10}
44+
py312-dev-jinja2{3.1,3.0,2.11,2.10}
4345
pypy37-jinja2{3.1,3.0,2.11,2.10}
4446
pypy38-jinja2{3.1,3.0,2.11,2.10}
4547
pypy39-jinja2{3.1,3.0,2.11,2.10}
@@ -50,6 +52,11 @@ setenv =
5052
PYTHONDEVMODE=1
5153
PIP_DISABLE_PIP_VERSION_CHECK=1
5254

55+
[testenv:py312-dev]
56+
setenv =
57+
PYTHONDEVMODE=1
58+
PIP_DISABLE_PIP_VERSION_CHECK=1
59+
5360
[testenv:build]
5461
setenv =
5562
PYTHONDEVMODE=1
@@ -144,6 +151,23 @@ unused-arguments-ignore-overload-functions = True
144151
unused-arguments-ignore-magic-methods = True
145152
unused-arguments-ignore-variadic-names = True
146153
154+
[testenv:py312-dev-jinja2{3.1,3.0,2.11,2.10}]
155+
setenv =
156+
PYTHONDEVMODE=1
157+
PIP_DISABLE_PIP_VERSION_CHECK=1
158+
159+
[testenv:pypy37]
160+
setenv =
161+
PYTHONDEVMODE=1
162+
PIP_DISABLE_PIP_VERSION_CHECK=1
163+
SETUPTOOLS_USE_DISTUTILS=stdlib
164+
165+
[testenv:pypy37-jinja2{3.1,3.0,2.11,2.10}]
166+
setenv =
167+
PYTHONDEVMODE=1
168+
PIP_DISABLE_PIP_VERSION_CHECK=1
169+
SETUPTOOLS_USE_DISTUTILS=stdlib
170+
147171
[check-wheel-contents]
148172
ignore = W002,W102
149173
toplevel = sphinx_jinja2_compat

0 commit comments

Comments
 (0)