Skip to content

Commit 8f4a530

Browse files
authored
Announce deprecation of Python 2.7 (#603)
1 parent 729d9ae commit 8f4a530

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ $ easy_install --upgrade google-api-python-client
2323

2424
See the [Developers Guide](https://developers.google.com/api-client-library/python/start/get_started) for more detailed instructions and additional documentation.
2525

26-
# Python Version
27-
Python 2.7, 3.4, 3.5, and 3.6 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.
26+
# Supported Python Versions
27+
Python 3.4, 3.5, 3.6 and 3.7 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions
28+
29+
# Deprecated Python Versions
30+
Python == 2.7
2831

2932
# Third Party Libraries and Dependencies
3033
The following libraries will be installed when you install the client library:

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
print('google-api-python-client requires python version >= 2.7.',
2626
file=sys.stderr)
2727
sys.exit(1)
28-
if (3, 1) <= sys.version_info < (3, 3):
29-
print('google-api-python-client requires python3 version >= 3.3.',
28+
if (3, 1) <= sys.version_info < (3, 4):
29+
print('google-api-python-client requires python3 version >= 3.4.',
3030
file=sys.stderr)
3131
sys.exit(1)
3232

@@ -60,6 +60,7 @@
6060
author="Google Inc.",
6161
url="http://github.com/google/google-api-python-client/",
6262
install_requires=install_requires,
63+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
6364
packages=packages,
6465
package_data={},
6566
license="Apache 2.0",
@@ -68,7 +69,6 @@
6869
'Programming Language :: Python :: 2',
6970
'Programming Language :: Python :: 2.7',
7071
'Programming Language :: Python :: 3',
71-
'Programming Language :: Python :: 3.3',
7272
'Programming Language :: Python :: 3.4',
7373
'Programming Language :: Python :: 3.5',
7474
'Programming Language :: Python :: 3.6',

0 commit comments

Comments
 (0)