| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d8d1119 commit 2a7b9d0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,9 +15,9 @@ | |||
| 15 | 15 | """Google Cloud Runtime Configurator API package.""" | |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | - from pkg_resources import get_distribution | ||
| 18 | + from google.cloud.runtimeconfig import version as runtimeconfig_version | ||
| 19 | 19 | ||
| 20 | - __version__ = get_distribution("google-cloud-runtimeconfig").version | ||
| 20 | + __version__ = runtimeconfig_version.__version__ | ||
| 21 | 21 | ||
| 22 | 22 | from google.cloud.runtimeconfig.client import Client | |
| 23 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + # Copyright 2023 Google LLC | ||
| 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 | + __version__ = "0.33.3" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,13 @@ | |||
| 22 | 22 | ||
| 23 | 23 | name = "google-cloud-runtimeconfig" | |
| 24 | 24 | description = "Google Cloud RuntimeConfig API client library" | |
| 25 | - version = "0.33.3" | ||
| 25 | + | ||
| 26 | + version = {} | ||
| 27 | + with open("google/cloud/runtimeconfig/version.py") as fp: | ||
| 28 | + exec(fp.read(), version) | ||
| 29 | + version = version["__version__"] | ||
| 30 | + | ||
| 31 | + | ||
| 26 | 32 | # Should be one of: | |
| 27 | 33 | # 'Development Status :: 3 - Alpha' | |
| 28 | 34 | # 'Development Status :: 4 - Beta' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments