Skip to content

Commit a422a5d

Browse files
authored
feat: add support for Python 3.10 (#284)
Fix new deprecation warning for 'threading.Condition.notifyAll'.
1 parent 577da9d commit a422a5d

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

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.6, 3.7, 3.8 and 3.9 on both UNIX and Windows.
24+
3.6, 3.7, 3.8, 3.9, and 3.10 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.9 -- -k <name of test>
74+
$ nox -s unit-3.10 -- -k <name of test>
7575

7676

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

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

210212

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

google/api_core/bidi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def resume(self):
727727
"""Resumes the response stream."""
728728
with self._wake:
729729
self._paused = False
730-
self._wake.notifyAll()
730+
self._wake.notify_all()
731731

732732
@property
733733
def is_paused(self):

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def default(session):
121121
session.run(*pytest_args)
122122

123123

124-
@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
124+
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"])
125125
def unit(session):
126126
"""Run the unit test suite."""
127127
default(session)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"Programming Language :: Python :: 3.7",
8888
"Programming Language :: Python :: 3.8",
8989
"Programming Language :: Python :: 3.9",
90+
"Programming Language :: Python :: 3.10",
9091
"Operating System :: OS Independent",
9192
"Topic :: Internet",
9293
],

0 commit comments

Comments
 (0)