blob: 653742a161c0cea2ce9b3ab44b193a3ee5ca374e [file] [log] [blame]
Craig Citro751b7fb2014-09-23 11:20:38 -07001# Copyright 2014 Google Inc. All Rights Reserved.
Tom Miller7c95d812010-10-11 11:50:52 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Joe Gregorio48d361f2010-08-18 13:19:21 -040014
Tom Miller7c95d812010-10-11 11:50:52 -070015"""Setup script for Google API Python client.
16
17Also installs included versions of third party libraries, if those libraries
18are not already installed.
19"""
Craig Citroa540cf72014-08-18 22:50:58 -070020from __future__ import print_function
21
22import sys
23
Jon Wayne Parrott85c2c6d2017-01-05 12:34:49 -080024if sys.version_info < (2, 7):
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070025 print("google-api-python-client requires python version >= 2.7.", file=sys.stderr)
26 sys.exit(1)
Christopher Wilcox8f4a5302018-12-14 12:24:44 -080027if (3, 1) <= sys.version_info < (3, 4):
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070028 print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr)
29 sys.exit(1)
Craig Citroa540cf72014-08-18 22:50:58 -070030
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070031import io
32import os
Joe Gregorio336b9782011-09-15 14:35:54 -040033from setuptools import setup
Joe Gregorio01b92702011-03-23 21:44:42 -040034
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070035packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040036
Joe Gregoriod667c9d2011-10-17 13:25:24 -040037install_requires = [
Thomas Chopiteac00f70d2020-09-29 02:14:53 +020038 "httplib2>=0.15.0,<1dev",
arithmetic1728981eadf2020-06-02 10:20:10 -070039 "google-auth>=1.16.0",
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070040 "google-auth-httplib2>=0.0.3",
Bu Sun Kim790e7022020-09-11 20:18:06 -060041 "google-api-core>=1.21.0,<2dev",
Bu Sun Kim4acecc32020-09-14 14:18:03 -060042 "six>=1.13.0,<2dev",
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070043 "uritemplate>=3.0.0,<4dev",
John Asmuth864311d2014-04-24 15:46:08 -040044]
Joe Gregorio6429bf62011-03-01 22:53:21 -080045
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070046package_root = os.path.abspath(os.path.dirname(__file__))
Tom Miller7c95d812010-10-11 11:50:52 -070047
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070048readme_filename = os.path.join(package_root, "README.md")
49with io.open(readme_filename, encoding="utf-8") as readme_file:
50 readme = readme_file.read()
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070051
release-please[bot]2d076b82020-09-23 17:26:05 +000052version = "1.12.2"
Joe Gregorio696583c2012-03-21 15:20:51 -040053
John Asmuth864311d2014-04-24 15:46:08 -040054setup(
55 name="google-api-python-client",
56 version=version,
57 description="Google API Client Library for Python",
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070058 long_description=readme,
59 long_description_content_type='text/markdown',
60 author="Google LLC",
61 author_email="googleapis-packages@google.com",
Marie J.I48f503f2020-05-15 13:32:11 -040062 url="https://github.com/googleapis/google-api-python-client/",
John Asmuth864311d2014-04-24 15:46:08 -040063 install_requires=install_requires,
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070064 python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
John Asmuth864311d2014-04-24 15:46:08 -040065 packages=packages,
66 package_data={},
67 license="Apache 2.0",
68 keywords="google api client",
69 classifiers=[
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070070 "Programming Language :: Python :: 2",
71 "Programming Language :: Python :: 2.7",
72 "Programming Language :: Python :: 3",
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070073 "Programming Language :: Python :: 3.5",
74 "Programming Language :: Python :: 3.6",
75 "Programming Language :: Python :: 3.7",
76 "Development Status :: 5 - Production/Stable",
77 "Intended Audience :: Developers",
78 "License :: OSI Approved :: Apache Software License",
79 "Operating System :: OS Independent",
80 "Topic :: Internet :: WWW/HTTP",
John Asmuth864311d2014-04-24 15:46:08 -040081 ],
John Asmuth864311d2014-04-24 15:46:08 -040082)