Skip to content

Commit fdbed0f

Browse files
authored
feat: add support for Python 3.9 (googleapis#111)
Also, add missing declaration of support for Python 3.8. Closes googleapis#110.
1 parent cbf14b3 commit fdbed0f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

noxfile.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from __future__ import absolute_import
1616
import os
1717
import shutil
18-
import sys
1918

2019
# https://github.com/google/importlab/issues/25
2120
import nox # pytype: disable=import-error
@@ -24,7 +23,7 @@
2423

2524

2625
def _greater_or_equal_than_36(version_string):
27-
tokens = version_string.split('.')
26+
tokens = version_string.split(".")
2827
for i, token in enumerate(tokens):
2928
try:
3029
tokens[i] = int(token)
@@ -72,13 +71,13 @@ def default(session):
7271
session.run(*pytest_args)
7372

7473

75-
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
74+
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"])
7675
def unit(session):
7776
"""Run the unit test suite."""
7877
default(session)
7978

8079

81-
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
80+
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"])
8281
def unit_grpc_gcp(session):
8382
"""Run the unit test suite with grpcio-gcp installed."""
8483

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
version = {}
5454
with open(os.path.join(package_root, "google/api_core/version.py")) as fp:
5555
exec(fp.read(), version)
56-
version = version['__version__']
56+
version = version["__version__"]
5757

5858
readme_filename = os.path.join(package_root, "README.rst")
5959
with io.open(readme_filename, encoding="utf-8") as readme_file:
@@ -91,6 +91,8 @@
9191
"Programming Language :: Python :: 3.5",
9292
"Programming Language :: Python :: 3.6",
9393
"Programming Language :: Python :: 3.7",
94+
"Programming Language :: Python :: 3.8",
95+
"Programming Language :: Python :: 3.9",
9496
"Operating System :: OS Independent",
9597
"Topic :: Internet",
9698
],

0 commit comments

Comments
 (0)