Skip to content

Commit ddd97d4

Browse files
committed
Add support for Python 3.11 and test on it (#387)
1 parent 055d1ed commit ddd97d4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/nox.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
platform: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616

1717
steps:
1818
- uses: actions/checkout@v1

.github/workflows/typeguard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Python ${{ matrix.python-version }}
1212
uses: actions/setup-python@v2
1313
with:
14-
python-version: "3.10"
14+
python-version: "3.11"
1515
- name: Install dependencies
1616
run: pip install nox
1717
- name: Test with nox

noxfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import nox
22

33

4-
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
4+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
55
@nox.parametrize("all_deps", [True, False])
66
def pytest(session, all_deps):
77
session.install(".[testing,other]" if all_deps else ".[testing]")
88
session.run("coverage", "erase")
99
session.run("pytest")
1010

1111

12-
@nox.session(python="3.10")
12+
@nox.session(python="3.11")
1313
def pytest_typeguard(session):
1414
session.install(".[testing,other]")
1515
session.run("coverage", "erase")

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def get_version_and_cmdclass(package_name):
8181
"Programming Language :: Python :: 3.8",
8282
"Programming Language :: Python :: 3.9",
8383
"Programming Language :: Python :: 3.10",
84+
"Programming Language :: Python :: 3.11",
8485
],
8586
packages=find_packages("."),
8687
install_requires=install_requires,

0 commit comments

Comments
 (0)