|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Copyright 2022 Google LLC |
| 2 | +# Copyright 2025 Google LLC |
3 | 3 | # |
4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | # you may not use this file except in compliance with the License. |
|
13 | 13 | # See the License for the specific language governing permissions and |
14 | 14 | # limitations under the License. |
15 | 15 | # |
16 | | - |
17 | | -# DO NOT EDIT THIS FILE OUTSIDE OF `.librarian/generator-input` |
18 | | -# The source of truth for this file is `.librarian/generator-input` |
19 | | - |
20 | 16 | import io |
21 | 17 | import os |
| 18 | +import re |
22 | 19 |
|
23 | 20 | import setuptools # type: ignore |
24 | 21 |
|
|
29 | 26 |
|
30 | 27 | description = "Google Cloud Spanner API client library" |
31 | 28 |
|
32 | | -version = {} |
33 | | -with open(os.path.join(package_root, "google/cloud/spanner_v1/gapic_version.py")) as fp: |
34 | | - exec(fp.read(), version) |
35 | | -version = version["__version__"] |
| 29 | +version = None |
| 30 | + |
| 31 | +with open(os.path.join(package_root, "google/cloud/spanner/gapic_version.py")) as fp: |
| 32 | + version_candidates = re.findall(r"(?<=\")\d+.\d+.\d+(?=\")", fp.read()) |
| 33 | + assert len(version_candidates) == 1 |
| 34 | + version = version_candidates[0] |
36 | 35 |
|
37 | 36 | if version[0] == "0": |
38 | 37 | release_status = "Development Status :: 4 - Beta" |
|
87 | 86 | "License :: OSI Approved :: Apache Software License", |
88 | 87 | "Programming Language :: Python", |
89 | 88 | "Programming Language :: Python :: 3", |
90 | | - "Programming Language :: Python :: 3.8", |
91 | 89 | "Programming Language :: Python :: 3.9", |
92 | 90 | "Programming Language :: Python :: 3.10", |
93 | 91 | "Programming Language :: Python :: 3.11", |
94 | 92 | "Programming Language :: Python :: 3.12", |
| 93 | + "Programming Language :: Python :: 3.13", |
95 | 94 | "Programming Language :: Python :: 3.14", |
96 | 95 | "Operating System :: OS Independent", |
97 | 96 | "Topic :: Internet", |
98 | 97 | ], |
99 | 98 | platforms="Posix; MacOS X; Windows", |
100 | 99 | packages=packages, |
| 100 | + python_requires=">=3.9", |
101 | 101 | install_requires=dependencies, |
102 | 102 | extras_require=extras, |
103 | | - python_requires=">=3.8", |
104 | 103 | include_package_data=True, |
105 | 104 | zip_safe=False, |
106 | 105 | ) |
0 commit comments