Skip to content

Commit 130f3d5

Browse files
committed
Add python 3.11
1 parent 3223f8c commit 130f3d5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
os: [Ubuntu, Windows, macOS]
2525
python_version:
26-
["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"]
26+
["3.7", "3.8", "3.9", "3.10", "3.11-dev", "pypy3.7", "pypy3.8", "pypy3.9"]
2727

2828
steps:
2929
- uses: actions/checkout@v3
@@ -35,4 +35,9 @@ jobs:
3535
cache: "pip"
3636

3737
- name: Run nox
38-
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
38+
run: |
39+
# Need to remove "-dev" suffix
40+
INTERPRETER=${{ matrix.python_version }}
41+
INTERPRETER=${INTERPRETER/-dev/}
42+
pipx run nox --error-on-missing-interpreters -s tests-${INTERPRETER}
43+
shell: bash

noxfile.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
nox.options.reuse_existing_virtualenvs = True
2222

2323

24-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"])
24+
@nox.session(
25+
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
26+
)
2527
def tests(session):
2628
def coverage(*args):
2729
session.run("python", "-m", "coverage", *args)

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"Programming Language :: Python :: 3.8",
6161
"Programming Language :: Python :: 3.9",
6262
"Programming Language :: Python :: 3.10",
63+
"Programming Language :: Python :: 3.11",
6364
"Programming Language :: Python :: Implementation :: CPython",
6465
"Programming Language :: Python :: Implementation :: PyPy",
6566
],

0 commit comments

Comments
 (0)