Skip to content

Commit 9e26b64

Browse files
committed
address review comments
1 parent 9ba49d7 commit 9e26b64

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +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 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
5252

53+
## Unsupported Python Versions
54+
55+
Python == 2.7
5356

5457
## Third Party Libraries and Dependencies
5558

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
"""
2020
from __future__ import print_function
2121

22+
import sys
23+
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, 6):
28+
print("google-api-python-client requires python3 version >= 3.6.", file=sys.stderr)
29+
sys.exit(1)
30+
2231
import io
2332
import os
2433
from setuptools import setup
@@ -52,14 +61,13 @@
5261
author_email="[email protected]",
5362
url="https://github.com/googleapis/google-api-python-client/",
5463
install_requires=install_requires,
55-
python_requires=">=3.5",
64+
python_requires=">=3.6",
5665
packages=packages,
5766
package_data={},
5867
license="Apache 2.0",
5968
keywords="google api client",
6069
classifiers=[
6170
"Programming Language :: Python :: 3",
62-
"Programming Language :: Python :: 3.5",
6371
"Programming Language :: Python :: 3.6",
6472
"Programming Language :: Python :: 3.7",
6573
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)