Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 7a09ca5

Browse files
committed
Drop support for Python 2.7
1 parent 6229317 commit 7a09ca5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def default(session):
7272
session.run(*pytest_args)
7373

7474

75-
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
75+
@nox.session(python=["3.5", "3.6", "3.7", "3.8"])
7676
def unit(session):
7777
"""Run the unit test suite."""
7878
default(session)
7979

8080

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

@@ -108,7 +108,6 @@ def lint_setup_py(session):
108108
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
109109

110110

111-
# No 2.7 due to https://github.com/google/importlab/issues/26.
112111
# No 3.7 because pytype supports up to 3.6 only.
113112
@nox.session(python="3.6")
114113
def pytype(session):

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
"Intended Audience :: Developers",
8080
"License :: OSI Approved :: Apache Software License",
8181
"Programming Language :: Python",
82-
"Programming Language :: Python :: 2",
83-
"Programming Language :: Python :: 2.7",
8482
"Programming Language :: Python :: 3",
8583
"Programming Language :: Python :: 3.5",
8684
"Programming Language :: Python :: 3.6",
8785
"Programming Language :: Python :: 3.7",
86+
"Programming Language :: Python :: 3.8",
87+
"Programming Language :: Python :: 3.9",
8888
"Operating System :: OS Independent",
8989
"Topic :: Internet",
9090
],
@@ -93,7 +93,7 @@
9393
namespace_packages=namespaces,
9494
install_requires=dependencies,
9595
extras_require=extras,
96-
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
96+
python_requires=">=3.5",
9797
include_package_data=True,
9898
zip_safe=False,
9999
)

0 commit comments

Comments
 (0)