Skip to content

Commit 98591a9

Browse files
committed
generated changes for setup.py
1 parent 7203e03 commit 98591a9

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

packages/google-cloud-spanner/setup.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2022 Google LLC
2+
# Copyright 2025 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -13,12 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
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-
2016
import io
2117
import os
18+
import re
2219

2320
import setuptools # type: ignore
2421

@@ -29,10 +26,12 @@
2926

3027
description = "Google Cloud Spanner API client library"
3128

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]
3635

3736
if version[0] == "0":
3837
release_status = "Development Status :: 4 - Beta"
@@ -87,20 +86,20 @@
8786
"License :: OSI Approved :: Apache Software License",
8887
"Programming Language :: Python",
8988
"Programming Language :: Python :: 3",
90-
"Programming Language :: Python :: 3.8",
9189
"Programming Language :: Python :: 3.9",
9290
"Programming Language :: Python :: 3.10",
9391
"Programming Language :: Python :: 3.11",
9492
"Programming Language :: Python :: 3.12",
93+
"Programming Language :: Python :: 3.13",
9594
"Programming Language :: Python :: 3.14",
9695
"Operating System :: OS Independent",
9796
"Topic :: Internet",
9897
],
9998
platforms="Posix; MacOS X; Windows",
10099
packages=packages,
100+
python_requires=">=3.9",
101101
install_requires=dependencies,
102102
extras_require=extras,
103-
python_requires=">=3.8",
104103
include_package_data=True,
105104
zip_safe=False,
106105
)

0 commit comments

Comments
 (0)