|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | - |
3 | | -# Copyright 2020 Google LLC |
| 2 | +# Copyright 2022 Google LLC |
4 | 3 | # |
5 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
6 | 5 | # you may not use this file except in compliance with the License. |
|
14 | 13 | # See the License for the specific language governing permissions and |
15 | 14 | # limitations under the License. |
16 | 15 | # |
17 | | - |
18 | 16 | import io |
19 | 17 | import os |
20 | 18 |
|
21 | 19 | import setuptools # type: ignore |
22 | 20 |
|
| 21 | +package_root = os.path.abspath(os.path.dirname(__file__)) |
| 22 | + |
23 | 23 | name = "google-cloud-api-gateway" |
24 | | -version = "1.3.3" |
25 | | -description = "API Gateway client library" |
26 | | -release_status = "Development Status :: 5 - Production/Stable" |
27 | | -url = "https://github.com/googleapis/python-api-gateway" |
| 24 | + |
| 25 | + |
| 26 | +description = "Google Cloud Api Gateway API client library" |
| 27 | + |
| 28 | +version = {} |
| 29 | +with open(os.path.join(package_root, "google/cloud/apigateway/gapic_version.py")) as fp: |
| 30 | + exec(fp.read(), version) |
| 31 | +version = version["__version__"] |
| 32 | + |
| 33 | +if version[0] == "0": |
| 34 | + release_status = "Development Status :: 4 - Beta" |
| 35 | +else: |
| 36 | + release_status = "Development Status :: 5 - Production/Stable" |
| 37 | + |
28 | 38 | dependencies = [ |
29 | | - "google-api-core[grpc] >= 1.32.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*", |
| 39 | + "google-api-core[grpc] >= 1.33.2, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*", |
30 | 40 | "proto-plus >= 1.22.0, <2.0.0dev", |
31 | 41 | "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", |
32 | 42 | ] |
| 43 | +url = "https://github.com/googleapis/python-api-gateway" |
33 | 44 |
|
34 | 45 | package_root = os.path.abspath(os.path.dirname(__file__)) |
35 | 46 |
|
36 | 47 | readme_filename = os.path.join(package_root, "README.rst") |
37 | 48 | with io.open(readme_filename, encoding="utf-8") as readme_file: |
38 | 49 | readme = readme_file.read() |
39 | 50 |
|
| 51 | +packages = [ |
| 52 | + package |
| 53 | + for package in setuptools.PEP420PackageFinder.find() |
| 54 | + if package.startswith("google") |
| 55 | +] |
| 56 | + |
| 57 | +namespaces = ["google"] |
| 58 | +if "google.cloud" in packages: |
| 59 | + namespaces.append("google.cloud") |
| 60 | + |
40 | 61 | setuptools.setup( |
41 | 62 | name=name, |
42 | 63 | version=version, |
|
46 | 67 | author_email="googleapis-packages@google.com", |
47 | 68 | license="Apache 2.0", |
48 | 69 | url=url, |
49 | | - packages=[ |
50 | | - package |
51 | | - for package in setuptools.PEP420PackageFinder.find() |
52 | | - if package.startswith("google") |
53 | | - ], |
54 | | - namespace_packages=("google", "google.cloud"), |
55 | | - platforms="Posix; MacOS X; Windows", |
56 | | - include_package_data=True, |
57 | | - install_requires=dependencies, |
58 | | - python_requires=">=3.7", |
59 | 70 | classifiers=[ |
60 | 71 | release_status, |
61 | 72 | "Intended Audience :: Developers", |
62 | | - "Operating System :: OS Independent", |
| 73 | + "License :: OSI Approved :: Apache Software License", |
| 74 | + "Programming Language :: Python", |
| 75 | + "Programming Language :: Python :: 3", |
63 | 76 | "Programming Language :: Python :: 3.7", |
64 | 77 | "Programming Language :: Python :: 3.8", |
65 | 78 | "Programming Language :: Python :: 3.9", |
66 | 79 | "Programming Language :: Python :: 3.10", |
| 80 | + "Operating System :: OS Independent", |
67 | 81 | "Topic :: Internet", |
68 | | - "Topic :: Software Development :: Libraries :: Python Modules", |
69 | 82 | ], |
| 83 | + platforms="Posix; MacOS X; Windows", |
| 84 | + packages=packages, |
| 85 | + python_requires=">=3.7", |
| 86 | + namespace_packages=namespaces, |
| 87 | + install_requires=dependencies, |
| 88 | + include_package_data=True, |
70 | 89 | zip_safe=False, |
71 | 90 | ) |
0 commit comments