• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2014 Google Inc. All Rights Reserved.
2#
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.
14
15"""Setup script for Google API Python client.
16
17Also installs included versions of third party libraries, if those libraries
18are not already installed.
19"""
20from __future__ import print_function
21
22import sys
23
24if sys.version_info < (2, 7):
25  print('google-api-python-client requires python version >= 2.7.',
26        file=sys.stderr)
27  sys.exit(1)
28if (3, 1) <= sys.version_info < (3, 4):
29  print('google-api-python-client requires python3 version >= 3.4.',
30        file=sys.stderr)
31  sys.exit(1)
32
33from setuptools import setup
34
35packages = [
36    'apiclient',
37    'googleapiclient',
38    'googleapiclient/discovery_cache',
39]
40
41install_requires = [
42    'httplib2>=0.9.2,<1dev',
43    'google-auth>=1.4.1',
44    'google-auth-httplib2>=0.0.3',
45    'six>=1.6.1,<2dev',
46    'uritemplate>=3.0.0,<4dev',
47]
48
49long_desc = """The Google API Client for Python is a client library for
50accessing the Plus, Moderator, and many other Google APIs."""
51
52import googleapiclient
53version = googleapiclient.__version__
54
55setup(
56    name="google-api-python-client",
57    version=version,
58    description="Google API Client Library for Python",
59    long_description=long_desc,
60    author="Google Inc.",
61    url="http://github.com/google/google-api-python-client/",
62    install_requires=install_requires,
63    python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
64    packages=packages,
65    package_data={},
66    license="Apache 2.0",
67    keywords="google api client",
68    classifiers=[
69        'Programming Language :: Python :: 2',
70        'Programming Language :: Python :: 2.7',
71        'Programming Language :: Python :: 3',
72        'Programming Language :: Python :: 3.4',
73        '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',
81    ],
82)
83