Skip to content

Commit 85fd1da

Browse files
ziegenbergparthea
andauthored
feat: add support for Python 3.11 (#253)
* feat: add support for Python 3.11 Signed-off-by: Daniel Ziegenberg <[email protected]> * add 3.11 to unit_test_python_versions * run post processor locally Signed-off-by: Daniel Ziegenberg <[email protected]> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent e9585db commit 85fd1da

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.11"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v4
3030
with:
31-
python-version: "3.10"
31+
python-version: "3.11"
3232
- name: Install nox
3333
run: |
3434
python -m pip install --upgrade setuptools pip wheel

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.11"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/unittest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
11+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Python
4242
uses: actions/setup-python@v4
4343
with:
44-
python-version: "3.10"
44+
python-version: "3.11"
4545
- name: Install coverage
4646
run: |
4747
python -m pip install --upgrade setuptools pip wheel

CONTRIBUTING.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.
25+
3.6, 3.7, 3.8, 3.9, 3.10 and 3.11 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.10 -- -k <name of test>
75+
$ nox -s unit-3.11 -- -k <name of test>
7676

7777

7878
.. note::
@@ -226,12 +226,14 @@ We support:
226226
- `Python 3.8`_
227227
- `Python 3.9`_
228228
- `Python 3.10`_
229+
- `Python 3.11`_
229230

230231
.. _Python 3.6: https://docs.python.org/3.6/
231232
.. _Python 3.7: https://docs.python.org/3.7/
232233
.. _Python 3.8: https://docs.python.org/3.8/
233234
.. _Python 3.9: https://docs.python.org/3.9/
234235
.. _Python 3.10: https://docs.python.org/3.10/
236+
.. _Python 3.11: https://docs.python.org/3.11/
235237

236238

237239
Supported versions can be found in our ``noxfile.py`` `config`_.

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
DEFAULT_PYTHON_VERSION = "3.8"
3333

34-
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
34+
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
3535
UNIT_TEST_STANDARD_DEPENDENCIES = [
3636
"mock",
3737
"asyncmock",

owlbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
microgenerator=True,
1111
cov_level=99,
1212
unit_test_external_dependencies=["click"],
13-
unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10"],
13+
unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
1414
)
1515
s.move(templated_files, excludes=[
1616
"docs/multiprocessing.rst",

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"Programming Language :: Python :: 3.8",
5656
"Programming Language :: Python :: 3.9",
5757
"Programming Language :: Python :: 3.10",
58+
"Programming Language :: Python :: 3.11",
5859
"Development Status :: 3 - Alpha",
5960
"Intended Audience :: Developers",
6061
"License :: OSI Approved :: Apache Software License",

0 commit comments

Comments
 (0)