Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e52ea21

Browse files
committed
Including changes for Python3 in setup.py
1 parent 59a5839 commit e52ea21

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

setup.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
print('google-api-python-client requires python version >= 2.6.',
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.',
30+
file=sys.stderr)
31+
sys.exit(1)
2832

2933
from setuptools import setup
3034
import pkg_resources
@@ -59,7 +63,7 @@ def _DetectBadness():
5963

6064
install_requires = [
6165
'httplib2>=0.8',
62-
'oauth2client>=1.3',
66+
'oauth2client>=1.4.6',
6367
'six>=1.6.1',
6468
'uritemplate>=0.6',
6569
]
@@ -86,10 +90,16 @@ def _DetectBadness():
8690
license="Apache 2.0",
8791
keywords="google api client",
8892
classifiers=[
93+
'Programming Language :: Python :: 2',
94+
'Programming Language :: Python :: 2.6',
95+
'Programming Language :: Python :: 2.7',
96+
'Programming Language :: Python :: 3',
97+
'Programming Language :: Python :: 3.3',
98+
'Programming Language :: Python :: 3.4',
8999
'Development Status :: 5 - Production/Stable',
90100
'Intended Audience :: Developers',
91101
'License :: OSI Approved :: Apache Software License',
92-
'Operating System :: POSIX',
102+
'Operating System :: OS Independent',
93103
'Topic :: Internet :: WWW/HTTP',
94104
],
95105
)

0 commit comments

Comments
 (0)