Skip to content

Commit 045e8fe

Browse files
committed
Test on newer Python versions
1 parent ef1ba5a commit 045e8fe

File tree

6 files changed

+62
-61
lines changed

6 files changed

+62
-61
lines changed

.github/workflows/python_ci.yml

Lines changed: 4 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'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,10 +33,12 @@ 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.1", 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}
41+
- {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True}
4042

4143
steps:
4244
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 4 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'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,10 +34,12 @@ 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.1", 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}
42+
- {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True}
4143

4244
steps:
4345
- name: Checkout 🛎️

.github/workflows/python_ci_macos.yml

Lines changed: 4 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'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.1,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,9 +33,11 @@ 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.1", 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}
40+
- {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True}
3941

4042
steps:
4143
- name: Checkout 🛎️

pyproject.toml

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

repo_helper.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ python_versions:
2727
- '3.8'
2828
- '3.9'
2929
- "3.10"
30-
- 3.11-dev
30+
- "3.11"
31+
- 3.12-dev
3132
- pypy36
3233
- pypy37
3334
- pypy38
35+
- pypy39
3436

3537
classifiers:
3638
- 'Development Status :: 4 - Beta'
@@ -53,9 +55,6 @@ sphinx_conf_epilogue:
5355
- needspace_amount = r"5\baselineskip"
5456
- 'favicons = [{"rel": "icon", "href": "https://python-formate.github.io/assets/formate.ico", "sizes": "48x48", "type": "image/vnd.microsoft.icon"}]'
5557

56-
tox_unmanaged:
57-
- testenv:lint
58-
5958
keywords:
6059
- flake8
6160
- date

tox.ini

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# * testenv
66
# * testenv:docs
77
# * testenv:build
8+
# * testenv:lint
89
# * testenv:perflint
910
# * testenv:mypy
1011
# * testenv:pyup
@@ -22,10 +23,12 @@ envlist =
2223
py38
2324
py39
2425
py310
25-
py311-dev
26+
py311
27+
py312-dev
2628
pypy36
2729
pypy37
2830
pypy38
31+
pypy39
2932
mypy
3033
build
3134
skip_missing_interpreters = True
@@ -36,7 +39,18 @@ requires =
3639
virtualenv!=20.16.0
3740

3841
[envlists]
39-
test = py36, py37, py38, py39, py310, py311-dev, pypy36, pypy37, pypy38
42+
test =
43+
py36
44+
py37
45+
py38
46+
py39
47+
py310
48+
py311
49+
py312-dev
50+
pypy36
51+
pypy37
52+
pypy38
53+
pypy39
4054
qa = mypy, lint
4155
cov = py38, coverage
4256

@@ -70,6 +84,36 @@ commands =
7084
twine check dist/*.tar.gz dist/*.whl
7185
check-wheel-contents dist/
7286

87+
[testenv:lint]
88+
basepython = python3.8
89+
changedir = {toxinidir}
90+
ignore_errors = True
91+
skip_install = False
92+
deps =
93+
flake8>=3.8.2,<5
94+
flake8-2020>=1.6.0
95+
flake8-builtins>=1.5.3
96+
flake8-docstrings>=1.5.0
97+
flake8-dunder-all>=0.1.1
98+
flake8-encodings>=0.1.0
99+
flake8-github-actions>=0.1.0
100+
flake8-noqa>=1.1.0,<=1.2.2
101+
flake8-pyi>=20.10.0,<=22.8.0
102+
flake8-pytest-style>=1.3.0
103+
flake8-quotes>=3.3.0
104+
flake8-slots>=0.1.0
105+
flake8-sphinx-links>=0.0.4
106+
flake8-strftime>=0.1.1
107+
flake8-typing-imports>=1.10.0
108+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
109+
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
110+
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
111+
git+https://github.com/python-formate/flake8-missing-annotations.git
112+
pydocstyle>=6.0.0
113+
pygments>=2.7.1
114+
importlib_metadata<4.5.0; python_version<'3.8'
115+
commands = python3 -m flake8_rst_docstrings_sphinx flake8_strftime tests --allow-toolbox {posargs}
116+
73117
[testenv:perflint]
74118
basepython = python3.8
75119
changedir = {toxinidir}
@@ -165,53 +209,5 @@ filterwarnings =
165209
error
166210
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
167211
168-
[testenv:lint]
169-
basepython = python3.8
170-
changedir = {toxinidir}
171-
ignore_errors = True
172-
skip_install = False
173-
deps =
174-
flake8>=3.8.2,<5
175-
flake8-2020>=1.6.0
176-
flake8-builtins>=1.5.3
177-
flake8-docstrings>=1.5.0
178-
flake8-dunder-all>=0.1.1
179-
flake8-encodings>=0.1.0
180-
flake8-github-actions>=0.1.0
181-
flake8-noqa>=1.1.0,<=1.2.2
182-
flake8-pyi>=20.10.0,<=22.8.0
183-
flake8-pytest-style>=1.3.0
184-
flake8-quotes>=3.3.0
185-
flake8-slots>=0.1.0
186-
flake8-sphinx-links>=0.0.4
187-
flake8-strftime>=0.1.1
188-
flake8-typing-imports>=1.10.0
189-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
190-
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
191-
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
192-
git+https://github.com/python-formate/flake8-missing-annotations.git
193-
pydocstyle>=6.0.0
194-
pygments>=2.7.1
195-
importlib_metadata<4.5.0; python_version<'3.8'
196-
commands = python3 -m flake8_rst_docstrings_sphinx flake8_strftime tests --allow-toolbox {posargs}
197-
198-
[gh-actions]
199-
python =
200-
3.6: py36, build, mypy
201-
3.7: py37, build
202-
3.8: py38, build
203-
3.9: py39, build
204-
3.10-dev: py310-dev, build
205-
pypy3: pypy3, build
206-
207-
[travis]
208-
python =
209-
3.6: py36, build, mypy
210-
3.7: py37, build
211-
3.8: py38, build
212-
3.9: py39, build
213-
3.10-dev: py310-dev, build
214-
pypy3: pypy3, build
215-
216212
[dep_checker]
217213
allowed_unused = flake8

0 commit comments

Comments
 (0)