Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 1 | # 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 Parrott | 0190660 | 2017-03-22 10:10:32 -0700 | [diff] [blame] | 15 | import io |
Bu Sun Kim | a2cbc32 | 2021-03-16 14:56:02 -0600 | [diff] [blame] | 16 | import os |
Jon Wayne Parrott | 0190660 | 2017-03-22 10:10:32 -0700 | [diff] [blame] | 17 | |
Dan Lee | 04c870a | 2021-04-26 21:22:17 -0400 | [diff] [blame] | 18 | from setuptools import find_packages |
| 19 | from setuptools import setup |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 20 | |
| 21 | |
| 22 | DEPENDENCIES = ( |
Tres Seaver | 560cf1e | 2021-08-03 16:35:54 -0400 | [diff] [blame] | 23 | "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 Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 27 | ) |
| 28 | |
arithmetic1728 | aeab5d0 | 2021-02-12 11:57:12 -0800 | [diff] [blame] | 29 | extras = { |
Tres Seaver | 560cf1e | 2021-08-03 16:35:54 -0400 | [diff] [blame] | 30 | "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", |
arithmetic1728 | aeab5d0 | 2021-02-12 11:57:12 -0800 | [diff] [blame] | 33 | } |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 34 | |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 35 | with io.open("README.rst", "r") as fh: |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 36 | long_description = fh.read() |
| 37 | |
Bu Sun Kim | a2cbc32 | 2021-03-16 14:56:02 -0600 | [diff] [blame] | 38 | package_root = os.path.abspath(os.path.dirname(__file__)) |
| 39 | |
| 40 | version = {} |
| 41 | with open(os.path.join(package_root, "google/auth/version.py")) as fp: |
| 42 | exec(fp.read(), version) |
| 43 | version = version["__version__"] |
Bu Sun Kim | d3406b3 | 2019-11-04 15:40:13 -0800 | [diff] [blame] | 44 | |
Dan Lee | 04c870a | 2021-04-26 21:22:17 -0400 | [diff] [blame] | 45 | setup( |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 46 | name="google-auth", |
Dan Lee | 04c870a | 2021-04-26 21:22:17 -0400 | [diff] [blame] | 47 | version=version, |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 48 | author="Google Cloud Platform", |
Bu Sun Kim | e61a873 | 2019-11-11 11:26:00 -0800 | [diff] [blame] | 49 | author_email="googleapis-packages@google.com", |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 50 | description="Google Authentication Library", |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 51 | long_description=long_description, |
Tim Swast | 011fabb | 2019-12-17 16:45:54 -0800 | [diff] [blame] | 52 | url="https://github.com/googleapis/google-auth-library-python", |
Dan Lee | 04c870a | 2021-04-26 21:22:17 -0400 | [diff] [blame] | 53 | packages=find_packages(exclude=("tests*", "system_tests*")), |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 54 | namespace_packages=("google",), |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 55 | install_requires=DEPENDENCIES, |
Christopher Wilcox | a924011 | 2020-10-05 10:08:02 -0700 | [diff] [blame] | 56 | extras_require=extras, |
Tres Seaver | 560cf1e | 2021-08-03 16:35:54 -0400 | [diff] [blame] | 57 | python_requires=">= 3.6", |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 58 | license="Apache 2.0", |
| 59 | keywords="google auth oauth client", |
Thilo Maurer | 4997be1 | 2018-08-01 23:33:08 +0200 | [diff] [blame] | 60 | classifiers=[ |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 61 | "Programming Language :: Python :: 3", |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 62 | "Programming Language :: Python :: 3.6", |
| 63 | "Programming Language :: Python :: 3.7", |
Tres Seaver | 1aad54a | 2020-07-22 20:17:28 -0400 | [diff] [blame] | 64 | "Programming Language :: Python :: 3.8", |
Tres Seaver | 6de753d | 2020-12-11 13:20:39 -0500 | [diff] [blame] | 65 | "Programming Language :: Python :: 3.9", |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 66 | "Development Status :: 5 - Production/Stable", |
| 67 | "Intended Audience :: Developers", |
| 68 | "License :: OSI Approved :: Apache Software License", |
| 69 | "Operating System :: POSIX", |
| 70 | "Operating System :: Microsoft :: Windows", |
| 71 | "Operating System :: MacOS :: MacOS X", |
| 72 | "Operating System :: OS Independent", |
| 73 | "Topic :: Internet :: WWW/HTTP", |
Thilo Maurer | 4997be1 | 2018-08-01 23:33:08 +0200 | [diff] [blame] | 74 | ], |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 75 | ) |