Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fe24c8

Browse files
committed
Test on Python 3.12
1 parent 729a3b0 commit 1fe24c8

File tree

7 files changed

+23
-10
lines changed

7 files changed

+23
-10
lines changed

.github/workflows/python_ci.yml

+3-2
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

+3-2
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

+3-2
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers = [
2121
"Programming Language :: Python :: 3.8",
2222
"Programming Language :: Python :: 3.9",
2323
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
2425
"Programming Language :: Python :: Implementation :: CPython",
2526
"Programming Language :: Python :: Implementation :: PyPy",
2627
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -143,7 +144,7 @@ base-classifiers = [
143144
"Topic :: Software Development :: Libraries :: Python Modules",
144145
"Typing :: Typed",
145146
]
146-
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",]
147+
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11",]
147148
python-implementations = [ "CPython", "PyPy",]
148149
platforms = [ "Windows", "macOS", "Linux",]
149150
license-key = "MIT"

repo_helper.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ python_versions:
2424
3.8:
2525
3.9:
2626
"3.10":
27-
"3.11-dev":
27+
"3.11":
28+
"3.12-dev":
2829
experimental: true
2930
pypy36:
3031
pypy37:

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ classifiers =
3333
Programming Language :: Python :: 3.8
3434
Programming Language :: Python :: 3.9
3535
Programming Language :: Python :: 3.10
36+
Programming Language :: Python :: 3.11
3637
Programming Language :: Python :: Implementation :: CPython
3738
Programming Language :: Python :: Implementation :: PyPy
3839
Topic :: Software Development :: Libraries :: Python Modules

tox.ini

+9-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ envlist =
2323
py38
2424
py39
2525
py310
26-
py311-dev
26+
py311
27+
py312-dev
2728
pypy36
2829
pypy37
2930
pypy38
@@ -45,14 +46,20 @@ test =
4546
py38
4647
py39
4748
py310
48-
py311-dev
49+
py311
50+
py312-dev
4951
pypy36
5052
pypy37
5153
pypy38
5254
pypy39
5355
qa = mypy, lint
5456
cov = py36, coverage
5557

58+
[testenv:py312-dev]
59+
setenv =
60+
PYTHONDEVMODE=1
61+
PIP_DISABLE_PIP_VERSION_CHECK=1
62+
5663
[testenv:docs]
5764
setenv = SHOW_TODOS = 1
5865
passenv = SPHINX_BUILDER

0 commit comments

Comments
 (0)