Skip to content

Commit 6554f69

Browse files
authored
feat: add support for python 3.10 (#735)
1 parent 53f8f3c commit 6554f69

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/google-cloud-ndb/CONTRIBUTING.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In order to add a feature to ``python-ndb``:
2424
documentation (in ``docs/``).
2525

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

2929
- The feature must not add unnecessary dependencies (where
3030
"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 test your changes, run unit tests with ``nox``::
7474

75-
$ nox -s unit-3.7
75+
$ nox -s unit-3.10
7676
$ nox -s unit-3.6
7777
$ ...
7878

@@ -278,12 +278,14 @@ We support:
278278
- `Python 3.7`_
279279
- `Python 3.8`_
280280
- `Python 3.9`_
281+
- `Python 3.10`_
281282

282283
.. _Python 2.7: https://docs.python.org/2.7/
283284
.. _Python 3.6: https://docs.python.org/3.6/
284285
.. _Python 3.7: https://docs.python.org/3.7/
285286
.. _Python 3.8: https://docs.python.org/3.8/
286287
.. _Python 3.9: https://docs.python.org/3.9/
288+
.. _Python 3.10: https://docs.python.org/3.10/
287289

288290

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

packages/google-cloud-ndb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ run on other Python platforms as well.
2222
GA
2323

2424
### Officially Supported Python Versions
25-
Python 2.7 & Python 3.6, 3.7, 3.8, 3.9
25+
Python 2.7 & Python 3.6, 3.7, 3.8, 3.9, 3.10

packages/google-cloud-ndb/noxfile.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
LOCAL_DEPS = ("google-api-core", "google-cloud-core")
2727
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
2828
DEFAULT_INTERPRETER = "3.8"
29-
ALL_INTERPRETERS = ("2.7", "3.6", "3.7", "3.8", "3.9")
30-
PY3_INTERPRETERS = ("3.6", "3.7", "3.8", "3.9")
29+
ALL_INTERPRETERS = ("2.7", "3.6", "3.7", "3.8", "3.9", "3.10")
30+
PY3_INTERPRETERS = ("3.6", "3.7", "3.8", "3.9", "3.10")
3131
MAJOR_INTERPRETERS = ("2.7", "3.8")
3232
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3333

@@ -59,6 +59,7 @@ def unit(session):
5959
[
6060
"--cov=google.cloud.ndb",
6161
"--cov=unit",
62+
"--cov-append",
6263
"--cov-config",
6364
get_path(".coveragerc"),
6465
"--cov-report=term-missing",
@@ -76,8 +77,6 @@ def unit(session):
7677
def cover(session):
7778
# Install all dependencies.
7879
session.install("coverage")
79-
# THis variable is used to skip coverage by Python version
80-
session.env["PY_VERSION"] = session.python[0]
8180
# Run coverage report.
8281
session.run("coverage", "report", "--fail-under=100", "--show-missing")
8382
# Erase cached coverage data.

packages/google-cloud-ndb/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def main():
6161
"Programming Language :: Python :: 3.7",
6262
"Programming Language :: Python :: 3.8",
6363
"Programming Language :: Python :: 3.9",
64+
"Programming Language :: Python :: 3.10",
6465
"Programming Language :: Python :: 2",
6566
"Programming Language :: Python :: 2.7",
6667
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)