|
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. |
7 | 6 | # You may obtain a copy of the License at |
8 | 7 | # |
9 | | -# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
10 | 9 | # |
11 | 10 | # Unless required by applicable law or agreed to in writing, software |
12 | 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
13 | 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | 13 | # See the License for the specific language governing permissions and |
15 | 14 | # limitations under the License. |
16 | | - |
| 15 | +# |
17 | 16 | import io |
18 | 17 | import os |
19 | 18 |
|
20 | | -import setuptools |
| 19 | +import setuptools # type: ignore |
| 20 | + |
| 21 | +package_root = os.path.abspath(os.path.dirname(__file__)) |
21 | 22 |
|
22 | 23 | name = "google-cloud-apigee-connect" |
23 | | -description = "Apigee Connect API client library" |
24 | | -version = "1.4.3" |
25 | | -release_status = "Development Status :: 5 - Production/Stable" |
26 | | -url = "https://github.com/googleapis/python-apigee-connect" |
| 24 | + |
| 25 | + |
| 26 | +description = "Google Cloud Apigee Connect API client library" |
| 27 | + |
| 28 | +version = {} |
| 29 | +with open( |
| 30 | + os.path.join(package_root, "google/cloud/apigeeconnect/gapic_version.py") |
| 31 | +) as fp: |
| 32 | + exec(fp.read(), version) |
| 33 | +version = version["__version__"] |
| 34 | + |
| 35 | +if version[0] == "0": |
| 36 | + release_status = "Development Status :: 4 - Beta" |
| 37 | +else: |
| 38 | + release_status = "Development Status :: 5 - Production/Stable" |
| 39 | + |
27 | 40 | dependencies = [ |
28 | | - "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.*", |
| 41 | + "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.*", |
29 | 42 | "proto-plus >= 1.22.0, <2.0.0dev", |
30 | 43 | "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", |
31 | 44 | ] |
| 45 | +url = "https://github.com/googleapis/python-apigee-connect" |
32 | 46 |
|
33 | 47 | package_root = os.path.abspath(os.path.dirname(__file__)) |
34 | 48 |
|
|
46 | 60 | if "google.cloud" in packages: |
47 | 61 | namespaces.append("google.cloud") |
48 | 62 |
|
49 | | - |
50 | 63 | setuptools.setup( |
51 | 64 | name=name, |
52 | 65 | version=version, |
|
0 commit comments