|
19 | 19 | """
|
20 | 20 | from __future__ import print_function
|
21 | 21 |
|
| 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 | + |
22 | 31 | import io
|
23 | 32 | import os
|
24 | 33 | from setuptools import setup
|
25 | 34 |
|
26 | 35 | packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"]
|
27 | 36 |
|
28 | 37 | install_requires = [
|
29 |
| - # NOTE: Apache Beam tests depend on this library and cannot |
30 |
| - # currently upgrade their httplib2 version. |
31 |
| - # Please see https://github.com/googleapis/google-api-python-client/pull/841 |
32 |
| - "httplib2>=0.9.2,<1dev", |
33 |
| - "google-auth>=1.4.1", |
| 38 | + "httplib2>=0.15.0,<1dev", |
| 39 | + "google-auth>=1.16.0", |
34 | 40 | "google-auth-httplib2>=0.0.3",
|
35 |
| - "google-api-core>=1.13.0,<2dev", |
36 |
| - "six>=1.6.1,<2dev", |
| 41 | + "google-api-core>=1.21.0,<2dev", |
| 42 | + "six>=1.13.0,<2dev", |
37 | 43 | "uritemplate>=3.0.0,<4dev",
|
38 | 44 | ]
|
39 | 45 |
|
|
43 | 49 | with io.open(readme_filename, encoding="utf-8") as readme_file:
|
44 | 50 | readme = readme_file.read()
|
45 | 51 |
|
46 |
| -version = "1.8.4" |
| 52 | +version = "1.12.4" |
47 | 53 |
|
48 | 54 | setup(
|
49 | 55 | name="google-api-python-client",
|
|
55 | 61 |
|
56 | 62 | url="https://github.com/googleapis/google-api-python-client/",
|
57 | 63 | install_requires=install_requires,
|
58 |
| - python_requires=">=3.5", |
| 64 | + python_requires=">=3.6", |
59 | 65 | packages=packages,
|
60 | 66 | package_data={},
|
61 | 67 | license="Apache 2.0",
|
62 | 68 | keywords="google api client",
|
63 | 69 | classifiers=[
|
64 | 70 | "Programming Language :: Python :: 3",
|
65 |
| - "Programming Language :: Python :: 3.5", |
66 | 71 | "Programming Language :: Python :: 3.6",
|
67 | 72 | "Programming Language :: Python :: 3.7",
|
68 | 73 | "Programming Language :: Python :: 3.8",
|
|
0 commit comments