Skip to content

Commit 825ad48

Browse files
committed
Test on newer Python versions
1 parent 7f5ac2c commit 825ad48

File tree

8 files changed

+47
-21
lines changed

8 files changed

+47
-21
lines changed

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: steps.changes.outputs.code == 'true'
3636
uses: "actions/setup-python@v4"
3737
with:
38-
python-version: "3.6"
38+
python-version: "3.7"
3939

4040
- name: Install dependencies 🔧
4141
if: steps.changes.outputs.code == 'true'

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: steps.changes.outputs.code == 'true'
4141
uses: "actions/setup-python@v4"
4242
with:
43-
python-version: "3.6"
43+
python-version: "3.7"
4444

4545
- name: Install dependencies 🔧
4646
run: |

.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.7,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.7", 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.7,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.7", 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.7,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.7", 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: 2 additions & 2 deletions
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"
@@ -125,7 +125,7 @@ autodoc_exclude_members = [
125125
]
126126

127127
[tool.mypy]
128-
python_version = "3.6"
128+
python_version = "3.7"
129129
namespace_packages = true
130130
check_untyped_defs = true
131131
warn_unused_ignores = true

repo_helper.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_conda_channel: "domdfcoding"
1212
license: 'MIT'
1313
short_desc: "A Flake8 plugin to check docstrings for double backticked strings which should be links to the Python documentation."
1414

15-
python_deploy_version: 3.6
15+
python_deploy_version: 3.7
1616
use_whey: true
1717
min_coverage: 100
1818
sphinx_html_theme: furo
@@ -27,11 +27,13 @@ python_versions:
2727
- '3.7'
2828
- '3.8'
2929
- '3.9'
30-
- "3.10"
31-
- 3.11-dev
30+
- '3.10'
31+
- '3.11'
32+
- 3.12-dev
3233
- pypy36
3334
- pypy37
3435
- pypy38
36+
- pypy39
3537

3638
classifiers:
3739
- 'Development Status :: 4 - Beta'

tox.ini

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ envlist =
2525
py38
2626
py39
2727
py310
28-
py311-dev
28+
py311
29+
py312-dev
2930
pypy36
3031
pypy37
3132
pypy38
33+
pypy39
3234
mypy
3335
build
3436
skip_missing_interpreters = True
@@ -40,9 +42,20 @@ requires =
4042
virtualenv!=20.16.0
4143

4244
[envlists]
43-
test = py36, py37, py38, py39, py310, py311-dev, pypy36, pypy37, pypy38
45+
test =
46+
py36
47+
py37
48+
py38
49+
py39
50+
py310
51+
py311
52+
py312-dev
53+
pypy36
54+
pypy37
55+
pypy38
56+
pypy39
4457
qa = mypy, lint
45-
cov = py36, coverage
58+
cov = py37, coverage
4659

4760
[testenv]
4861
setenv =
@@ -59,6 +72,11 @@ setenv =
5972
PYTHONDEVMODE=1
6073
PIP_DISABLE_PIP_VERSION_CHECK=1
6174

75+
[testenv:py312-dev]
76+
setenv =
77+
PYTHONDEVMODE=1
78+
PIP_DISABLE_PIP_VERSION_CHECK=1
79+
6280
[testenv:docs]
6381
setenv = SHOW_TODOS = 1
6482
passenv = SPHINX_BUILDER
@@ -83,7 +101,7 @@ commands =
83101
check-wheel-contents dist/
84102

85103
[testenv:lint]
86-
basepython = python3.6
104+
basepython = python3.7
87105
changedir = {toxinidir}
88106
ignore_errors = True
89107
skip_install = False
@@ -113,15 +131,15 @@ deps =
113131
commands = python3 -m flake8_rst_docstrings_sphinx flake8_sphinx_links tests --allow-toolbox {posargs}
114132

115133
[testenv:perflint]
116-
basepython = python3.6
134+
basepython = python3.7
117135
changedir = {toxinidir}
118136
ignore_errors = True
119137
skip_install = True
120138
deps = perflint
121139
commands = python3 -m perflint flake8_sphinx_links {posargs}
122140

123141
[testenv:mypy]
124-
basepython = python3.6
142+
basepython = python3.7
125143
ignore_errors = True
126144
changedir = {toxinidir}
127145
deps =
@@ -130,15 +148,15 @@ deps =
130148
commands = mypy flake8_sphinx_links tests {posargs}
131149

132150
[testenv:pyup]
133-
basepython = python3.6
151+
basepython = python3.7
134152
skip_install = True
135153
ignore_errors = True
136154
changedir = {toxinidir}
137155
deps = pyupgrade-directories
138156
commands = pyup_dirs flake8_sphinx_links tests --py36-plus --recursive
139157

140158
[testenv:coverage]
141-
basepython = python3.6
159+
basepython = python3.7
142160
skip_install = True
143161
ignore_errors = True
144162
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)