Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 5b60dd4

Browse files
authored
fix(deps): require google-api-core >= 1.34.1 (#978)
1 parent 2a6daa1 commit 5b60dd4

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

setup.py

Lines changed: 14 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.
@@ -15,6 +15,7 @@
1515
#
1616
import io
1717
import os
18+
import re
1819

1920
import setuptools # type: ignore
2021

@@ -25,25 +26,28 @@
2526

2627
description = "Google Cloud Bigquery Storage API client library"
2728

28-
version = {}
29+
version = None
30+
2931
with open(
3032
os.path.join(package_root, "google/cloud/bigquery_storage/gapic_version.py")
3133
) as fp:
32-
exec(fp.read(), version)
33-
version = version["__version__"]
34+
version_candidates = re.findall(r"(?<=\")\d+.\d+.\d+(?=\")", fp.read())
35+
assert len(version_candidates) == 1
36+
version = version_candidates[0]
3437

3538
if version[0] == "0":
3639
release_status = "Development Status :: 4 - Beta"
3740
else:
3841
release_status = "Development Status :: 5 - Production/Stable"
3942

4043
dependencies = [
41-
"google-api-core[grpc] >= 1.34.0, <3.0.0,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
42-
"google-auth >= 2.14.1, <3.0.0",
43-
"proto-plus >= 1.22.0, <2.0.0",
44-
"proto-plus >= 1.22.2, <2.0.0; python_version>='3.11'",
45-
"proto-plus >= 1.25.0, <2.0.0; python_version>='3.13'",
46-
"protobuf>=3.20.2,<7.0.0,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
44+
"google-api-core[grpc] >= 1.34.1, <3.0.0,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
45+
# Exclude incompatible versions of `google-auth`
46+
# See https://github.com/googleapis/google-cloud-python/issues/12364
47+
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
48+
"proto-plus >= 1.22.3, <2.0.0",
49+
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
4751
]
4852
extras = {
4953
# 'importlib-metadata' is required for Python 3.7 compatibility
@@ -95,7 +99,6 @@
9599
python_requires=">=3.7",
96100
install_requires=dependencies,
97101
extras_require=extras,
98-
scripts=["scripts/fixup_bigquery_storage_v1_keywords.py"],
99102
include_package_data=True,
100103
zip_safe=False,
101104
)

testing/constraints-3.7.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# are correct in setup.py
33
# List all library dependencies and extras in this file.
44
# Pin the version to the lower bound.
5-
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
66
# Then this file should have google-cloud-foo==1.14.0
7-
google-api-core==1.34.0
7+
google-api-core==1.34.1
88
google-auth==2.14.1
9-
proto-plus==1.22.0
9+
proto-plus==1.22.3
1010
libcst==0.2.5
1111
fastavro==0.21.2
1212
pandas==1.0.5

0 commit comments

Comments
 (0)