blob: 343e660f15028546fba425335af916a5e4840fb1 [file] [log] [blame]
Jon Wayne Parrott377f2932016-10-04 10:20:36 -07001# Copyright 2014 Google Inc.
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
Jon Wayne Parrott01906602017-03-22 10:10:32 -070015import io
Bu Sun Kima2cbc322021-03-16 14:56:02 -060016import os
Jon Wayne Parrott01906602017-03-22 10:10:32 -070017
Dan Lee04c870a2021-04-26 21:22:17 -040018from setuptools import find_packages
19from setuptools import setup
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070020
21
22DEPENDENCIES = (
Tres Seaver560cf1e2021-08-03 16:35:54 -040023 "cachetools >= 2.0.0, < 5.0",
24 "pyasn1-modules >= 0.2.1",
25 "rsa >= 3.1.4, < 5",
26 "setuptools >= 40.3.0",
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070027)
28
arithmetic1728aeab5d02021-02-12 11:57:12 -080029extras = {
Tres Seaver560cf1e2021-08-03 16:35:54 -040030 "aiohttp": ["aiohttp >= 3.6.2, < 4.0.0dev", "requests >= 2.20.0, < 3.0.0dev"],
31 "pyopenssl": "pyopenssl >= 20.0.0",
32 "reauth": "pyu2f >= 0.1.5",
arithmetic1728aeab5d02021-02-12 11:57:12 -080033}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070034
Bu Sun Kim9eec0912019-10-21 17:04:21 -070035with io.open("README.rst", "r") as fh:
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070036 long_description = fh.read()
37
Bu Sun Kima2cbc322021-03-16 14:56:02 -060038package_root = os.path.abspath(os.path.dirname(__file__))
39
40version = {}
41with open(os.path.join(package_root, "google/auth/version.py")) as fp:
42 exec(fp.read(), version)
43version = version["__version__"]
Bu Sun Kimd3406b32019-11-04 15:40:13 -080044
Dan Lee04c870a2021-04-26 21:22:17 -040045setup(
Bu Sun Kim9eec0912019-10-21 17:04:21 -070046 name="google-auth",
Dan Lee04c870a2021-04-26 21:22:17 -040047 version=version,
Bu Sun Kim9eec0912019-10-21 17:04:21 -070048 author="Google Cloud Platform",
Bu Sun Kime61a8732019-11-11 11:26:00 -080049 author_email="googleapis-packages@google.com",
Bu Sun Kim9eec0912019-10-21 17:04:21 -070050 description="Google Authentication Library",
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070051 long_description=long_description,
Tim Swast011fabb2019-12-17 16:45:54 -080052 url="https://github.com/googleapis/google-auth-library-python",
Dan Lee04c870a2021-04-26 21:22:17 -040053 packages=find_packages(exclude=("tests*", "system_tests*")),
Bu Sun Kim9eec0912019-10-21 17:04:21 -070054 namespace_packages=("google",),
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070055 install_requires=DEPENDENCIES,
Christopher Wilcoxa9240112020-10-05 10:08:02 -070056 extras_require=extras,
Tres Seaver560cf1e2021-08-03 16:35:54 -040057 python_requires=">= 3.6",
Bu Sun Kim9eec0912019-10-21 17:04:21 -070058 license="Apache 2.0",
59 keywords="google auth oauth client",
Thilo Maurer4997be12018-08-01 23:33:08 +020060 classifiers=[
Bu Sun Kim9eec0912019-10-21 17:04:21 -070061 "Programming Language :: Python :: 3",
Bu Sun Kim9eec0912019-10-21 17:04:21 -070062 "Programming Language :: Python :: 3.6",
63 "Programming Language :: Python :: 3.7",
Tres Seaver1aad54a2020-07-22 20:17:28 -040064 "Programming Language :: Python :: 3.8",
Tres Seaver6de753d2020-12-11 13:20:39 -050065 "Programming Language :: Python :: 3.9",
Tres Seaver19d41f82021-10-07 13:05:19 -040066 "Programming Language :: Python :: 3.10",
Bu Sun Kim9eec0912019-10-21 17:04:21 -070067 "Development Status :: 5 - Production/Stable",
68 "Intended Audience :: Developers",
69 "License :: OSI Approved :: Apache Software License",
70 "Operating System :: POSIX",
71 "Operating System :: Microsoft :: Windows",
72 "Operating System :: MacOS :: MacOS X",
73 "Operating System :: OS Independent",
74 "Topic :: Internet :: WWW/HTTP",
Thilo Maurer4997be12018-08-01 23:33:08 +020075 ],
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070076)