Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34b87dc

Browse files
committed
feat: add support for Python 3.11
Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent ddcc249 commit 34b87dc

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.github/sync-repo-settings.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ branchProtectionRules:
1515
- 'unit_grpc_gcp-3.8'
1616
- 'unit_grpc_gcp-3.9'
1717
- 'unit_grpc_gcp-3.10'
18+
- 'unit_grpc_gcp-3.11'
1819
- 'unit-3.7'
1920
- 'unit-3.8'
2021
- 'unit-3.9'
2122
- 'unit-3.10'
22-
- 'unit_wo_grpc-3.10'
23+
- 'unit-3.11'
24+
- 'unit_wo_grpc-3.11'
2325
- 'cover'
2426
- 'docs'
2527
- 'docfx'

.github/workflows/unittest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ jobs:
1717
- "3.8"
1818
- "3.9"
1919
- "3.10"
20+
- "3.11"
2021
exclude:
2122
- option: "_wo_grpc"
2223
python: 3.7
2324
- option: "_wo_grpc"
2425
python: 3.8
2526
- option: "_wo_grpc"
2627
python: 3.9
28+
- option: "_wo_grpc"
29+
python: 3.10
2730
steps:
2831
- name: Checkout
2932
uses: actions/checkout@v3

CONTRIBUTING.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In order to add a feature:
2121
documentation.
2222

2323
- The feature must work fully on the following CPython versions:
24-
3.7, 3.8, 3.9, and 3.10 on both UNIX and Windows.
24+
3.7, 3.8, 3.9, 3.10, and 3.11 on both UNIX and Windows.
2525

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

7272
- To run a single unit test::
7373

74-
$ nox -s unit-3.10 -- -k <name of test>
74+
$ nox -s unit-3.11 -- -k <name of test>
7575

7676

7777
.. note::
@@ -201,11 +201,13 @@ We support:
201201
- `Python 3.8`_
202202
- `Python 3.9`_
203203
- `Python 3.10`_
204+
- `Python 3.11`_
204205

205206
.. _Python 3.7: https://docs.python.org/3.7/
206207
.. _Python 3.8: https://docs.python.org/3.8/
207208
.. _Python 3.9: https://docs.python.org/3.9/
208209
.. _Python 3.10: https://docs.python.org/3.10/
210+
.. _Python 3.11: https://docs.python.org/3.11/
209211

210212

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

noxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def default(session, install_grpc=True):
104104
pytest_args = [
105105
"python",
106106
"-m",
107-
"py.test",
107+
"pytest",
108108
*(
109109
# Helpful for running a single test or testfile.
110110
session.posargs
@@ -137,13 +137,13 @@ def default(session, install_grpc=True):
137137
session.run(*pytest_args)
138138

139139

140-
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
140+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
141141
def unit(session):
142142
"""Run the unit test suite."""
143143
default(session)
144144

145145

146-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"])
146+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
147147
def unit_grpc_gcp(session):
148148
"""Run the unit test suite with grpcio-gcp installed."""
149149
constraints_path = str(
@@ -157,7 +157,7 @@ def unit_grpc_gcp(session):
157157
default(session)
158158

159159

160-
@nox.session(python=["3.8", "3.10"])
160+
@nox.session(python=["3.8", "3.11"])
161161
def unit_wo_grpc(session):
162162
"""Run the unit test suite w/o grpcio installed"""
163163
default(session, install_grpc=False)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"Programming Language :: Python :: 3.8",
8787
"Programming Language :: Python :: 3.9",
8888
"Programming Language :: Python :: 3.10",
89+
"Programming Language :: Python :: 3.11",
8990
"Operating System :: OS Independent",
9091
"Topic :: Internet",
9192
],

0 commit comments

Comments
 (0)