Skip to content

Commit 9429d62

Browse files
committed
Test on newer Python versions
1 parent fd096ec commit 9429d62

File tree

8 files changed

+40
-15
lines changed

8 files changed

+40
-15
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.8"
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.8"
4444

4545
- name: Install dependencies 🔧
4646
run: |

.github/workflows/python_ci.yml

Lines changed: 3 additions & 1 deletion
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,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,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,6 +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,build", experimental: False}
37+
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
3638
- {python-version: "pypy-3.6", testenvs: "pypy36", experimental: False}
3739
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
3840
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}

.github/workflows/python_ci_linux.yml

Lines changed: 3 additions & 1 deletion
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,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,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,6 +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,build", experimental: False}
38+
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
3739
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3840
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
3941
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}

.github/workflows/python_ci_macos.yml

Lines changed: 3 additions & 1 deletion
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,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,pypy-3.7,pypy-3.8,pypy-3.9'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,6 +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,build", experimental: False}
37+
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
3638
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
3739
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
3840
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}

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", "3.12",]
3636
python-implementations = [ "CPython", "PyPy",]
3737
platforms = [ "Windows", "macOS", "Linux",]
3838
license-key = "MIT"
@@ -122,7 +122,7 @@ autodoc_exclude_members = [
122122
]
123123

124124
[tool.mypy]
125-
python_version = "3.6"
125+
python_version = "3.8"
126126
namespace_packages = true
127127
check_untyped_defs = true
128128
warn_unused_ignores = true

repo_helper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ license: 'MIT'
1010
short_desc: "Custom JSON Encoder for Python utilising functools.singledispatch to support custom encoders for both Python's built-in classes and user-created classes, without as much legwork."
1111

1212
use_whey: True
13-
python_deploy_version: 3.6
1413
min_coverage: 100
1514
standalone_contrib_guide: true
1615

@@ -24,6 +23,8 @@ python_versions:
2423
- 3.8
2524
- 3.9
2625
- "3.10"
26+
- "3.11"
27+
- "3.12"
2728
- "pypy36"
2829
- "pypy37"
2930
- "pypy38"

tox.ini

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ envlist =
2626
py38
2727
py39
2828
py310
29+
py311
30+
py312
2931
pypy36
3032
pypy37
3133
pypy38
@@ -41,9 +43,20 @@ requires =
4143
virtualenv!=20.16.0
4244

4345
[envlists]
44-
test = py36, py37, py38, py39, py310, pypy36, pypy37, pypy38, pypy39
46+
test =
47+
py36
48+
py37
49+
py38
50+
py39
51+
py310
52+
py311
53+
py312
54+
pypy36
55+
pypy37
56+
pypy38
57+
pypy39
4558
qa = mypy, lint
46-
cov = py36, coverage
59+
cov = py38, coverage
4760

4861
[testenv]
4962
setenv =
@@ -60,6 +73,11 @@ setenv =
6073
PYTHONDEVMODE=1
6174
PIP_DISABLE_PIP_VERSION_CHECK=1
6275

76+
[testenv:py312]
77+
setenv =
78+
PYTHONDEVMODE=1
79+
PIP_DISABLE_PIP_VERSION_CHECK=1
80+
6381
[testenv:docs]
6482
setenv = SHOW_TODOS = 1
6583
passenv = SPHINX_BUILDER
@@ -86,7 +104,7 @@ commands =
86104
check-wheel-contents dist/
87105

88106
[testenv:lint]
89-
basepython = python3.6
107+
basepython = python3.8
90108
changedir = {toxinidir}
91109
ignore_errors = True
92110
skip_install = True
@@ -116,15 +134,15 @@ deps =
116134
commands = python3 -m flake8_rst_docstrings_sphinx sdjson tests --allow-toolbox {posargs}
117135

118136
[testenv:perflint]
119-
basepython = python3.6
137+
basepython = python3.8
120138
changedir = {toxinidir}
121139
ignore_errors = True
122140
skip_install = True
123141
deps = perflint
124142
commands = python3 -m perflint sdjson {posargs}
125143

126144
[testenv:mypy]
127-
basepython = python3.6
145+
basepython = python3.8
128146
ignore_errors = True
129147
changedir = {toxinidir}
130148
deps =
@@ -134,15 +152,15 @@ deps =
134152
commands = mypy sdjson tests {posargs}
135153

136154
[testenv:pyup]
137-
basepython = python3.6
155+
basepython = python3.8
138156
skip_install = True
139157
ignore_errors = True
140158
changedir = {toxinidir}
141159
deps = pyupgrade-directories
142160
commands = pyup_dirs sdjson tests --py36-plus --recursive
143161

144162
[testenv:coverage]
145-
basepython = python3.6
163+
basepython = python3.8
146164
skip_install = True
147165
ignore_errors = True
148166
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)