Skip to content

Commit 8325d24

Browse files
authored
chore(deps)!: require 3.6+ (#961)
Removes 2.7 and 3.5 from the test suite and explicitly requires >= 3.6. Also adds tests for 3.9 Fixes #704 🦕
1 parent 0bf565c commit 8325d24

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ virtualenv <your-env>
4848

4949
## Supported Python Versions
5050

51-
Python 3.5, 3.6 and 3.7, and 3.8 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions
51+
Python 3.6, 3.7, 3.8, and 3.9 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.
5252

53-
## Deprecated Python Versions
53+
## Unsupported Python Versions
5454

55-
Python == 2.7
55+
Python < 3.6
5656

5757
## Third Party Libraries and Dependencies
5858

noxfile.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import nox
1919

2020
test_dependencies = [
21+
"django>=2.0.0",
2122
"google-auth",
2223
"google-auth-httplib2",
2324
"mox",
@@ -46,7 +47,7 @@ def lint(session):
4647
)
4748

4849

49-
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
50+
@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
5051
@nox.parametrize(
5152
"oauth2client",
5253
[
@@ -59,11 +60,6 @@ def lint(session):
5960
def unit(session, oauth2client):
6061
session.install(*test_dependencies)
6162
session.install(oauth2client)
62-
if session.python < "3.0":
63-
session.install("django<2.0.0")
64-
else:
65-
session.install("django>=2.0.0")
66-
6763
session.install('.')
6864

6965
# Run py.test against the unit tests.

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121

2222
import sys
2323

24-
if sys.version_info < (2, 7):
25-
print("google-api-python-client requires python version >= 2.7.", file=sys.stderr)
26-
sys.exit(1)
27-
if (3, 1) <= sys.version_info < (3, 4):
28-
print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr)
24+
if sys.version_info < (3, 6):
25+
print("google-api-python-client requires python3 version >= 3.6.", file=sys.stderr)
2926
sys.exit(1)
3027

3128
import io
@@ -61,18 +58,17 @@
6158
author_email="[email protected]",
6259
url="https://github.com/googleapis/google-api-python-client/",
6360
install_requires=install_requires,
64-
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
61+
python_requires=">=3.6",
6562
packages=packages,
6663
package_data={},
6764
license="Apache 2.0",
6865
keywords="google api client",
6966
classifiers=[
70-
"Programming Language :: Python :: 2",
71-
"Programming Language :: Python :: 2.7",
7267
"Programming Language :: Python :: 3",
73-
"Programming Language :: Python :: 3.5",
7468
"Programming Language :: Python :: 3.6",
7569
"Programming Language :: Python :: 3.7",
70+
"Programming Language :: Python :: 3.8",
71+
"Programming Language :: Python :: 3.9",
7672
"Development Status :: 5 - Production/Stable",
7773
"Intended Audience :: Developers",
7874
"License :: OSI Approved :: Apache Software License",

0 commit comments

Comments
 (0)