Skip to content

Commit f4bd58e

Browse files
authored
build: support python 3.8 and 3.9 (#558)
* build: support python 3.8 amd 3.9 Refs: #555 * make 3.8 default python
1 parent 66c21e7 commit f4bd58e

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

packages/google-cloud-ndb/CONTRIBUTING.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ In order to add a feature to ``python-ndb``:
2323
- The feature must be documented in both the API and narrative
2424
documentation (in ``docs/``).
2525

26-
- The feature must work fully on the following CPython versions: 3.6 and 3.7
27-
on both UNIX and Windows.
26+
- 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.
2828

2929
- The feature must not add unnecessary dependencies (where
3030
"unnecessary" is of course subjective, but new dependencies should
@@ -144,7 +144,7 @@ Running System Tests
144144

145145
.. note::
146146

147-
System tests are only configured to run under Python 3.7. For
147+
System tests are only configured to run under Python 3.8. For
148148
expediency, we do not run them in older versions of Python 3.
149149

150150
This alone will not run the tests. You'll need to change some local
@@ -273,11 +273,17 @@ Supported Python Versions
273273

274274
We support:
275275

276+
- `Python 2.7`_
276277
- `Python 3.6`_
277278
- `Python 3.7`_
279+
- `Python 3.8`_
280+
- `Python 3.9`_
278281

282+
.. _Python 2.7: https://docs.python.org/2.7/
279283
.. _Python 3.6: https://docs.python.org/3.6/
280284
.. _Python 3.7: https://docs.python.org/3.7/
285+
.. _Python 3.8: https://docs.python.org/3.8/
286+
.. _Python 3.9: https://docs.python.org/3.9/
281287

282288

283289
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
25+
Python 2.7 & Python 3.6, 3.7, 3.8, 3.9

packages/google-cloud-ndb/noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
LOCAL_DEPS = ("google-cloud-core", "google-api-core")
2626
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
27-
DEFAULT_INTERPRETER = "3.7"
28-
ALL_INTERPRETERS = ("2.7", "3.6", "3.7")
29-
PY3_INTERPRETERS = ("3.6", "3.7")
30-
MAJOR_INTERPRETERS = ("2.7", "3.7")
27+
DEFAULT_INTERPRETER = "3.8"
28+
ALL_INTERPRETERS = ("2.7", "3.6", "3.7", "3.8", "3.9")
29+
PY3_INTERPRETERS = ("3.6", "3.7", "3.8", "3.9")
30+
MAJOR_INTERPRETERS = ("2.7", "3.8")
3131

3232
BLACK_VERSION = "black==20.8b1"
3333

@@ -42,7 +42,7 @@ def unit(session):
4242
session.install("pytest", "pytest-cov")
4343
session.install("mock")
4444
session.install(".")
45-
# THis variable is used to skip coverage by Python version
45+
# This variable is used to skip coverage by Python version
4646
session.env["PY_VERSION"] = session.python[0]
4747
# Run py.test against the unit tests.
4848
run_args = ["pytest"]

packages/google-cloud-ndb/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def main():
5555
"Programming Language :: Python :: 3",
5656
"Programming Language :: Python :: 3.6",
5757
"Programming Language :: Python :: 3.7",
58+
"Programming Language :: Python :: 3.8",
59+
"Programming Language :: Python :: 3.9",
5860
"Programming Language :: Python :: 2",
5961
"Programming Language :: Python :: 2.7",
6062
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)