Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 78de0d5

Browse files
authored
chore: librarian update image pull request: 20260122T185811Z (#1076)
feat: update image to us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
1 parent 00d69c9 commit 78de0d5

File tree

9 files changed

+29
-16
lines changed

9 files changed

+29
-16
lines changed

.librarian/generator-input/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def lint(session):
116116
session.run("flake8", "google", "tests")
117117

118118

119-
@nox.session(python="3.13")
119+
@nox.session(python="3.14")
120120
def blacken(session):
121121
"""Run black. Format code to uniform standard."""
122122
session.install(BLACK_VERSION)

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209
1+
image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
22
libraries:
33
- id: google-cloud-logging
44
version: 3.13.0

google/cloud/logging_v2/services/config_service_v2/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def __init__(
9191
be used for service account credentials.
9292
"""
9393

94-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
95-
9694
# Save the scopes.
9795
self._scopes = scopes
9896
if not hasattr(self, "_ignore_credentials"):
@@ -107,11 +105,16 @@ def __init__(
107105

108106
if credentials_file is not None:
109107
credentials, _ = google.auth.load_credentials_from_file(
110-
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
108+
credentials_file,
109+
scopes=scopes,
110+
quota_project_id=quota_project_id,
111+
default_scopes=self.AUTH_SCOPES,
111112
)
112113
elif credentials is None and not self._ignore_credentials:
113114
credentials, _ = google.auth.default(
114-
**scopes_kwargs, quota_project_id=quota_project_id
115+
scopes=scopes,
116+
quota_project_id=quota_project_id,
117+
default_scopes=self.AUTH_SCOPES,
115118
)
116119
# Don't apply audience if the credentials file passed from user.
117120
if hasattr(credentials, "with_gdch_audience"):

google/cloud/logging_v2/services/logging_service_v2/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def __init__(
9191
be used for service account credentials.
9292
"""
9393

94-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
95-
9694
# Save the scopes.
9795
self._scopes = scopes
9896
if not hasattr(self, "_ignore_credentials"):
@@ -107,11 +105,16 @@ def __init__(
107105

108106
if credentials_file is not None:
109107
credentials, _ = google.auth.load_credentials_from_file(
110-
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
108+
credentials_file,
109+
scopes=scopes,
110+
quota_project_id=quota_project_id,
111+
default_scopes=self.AUTH_SCOPES,
111112
)
112113
elif credentials is None and not self._ignore_credentials:
113114
credentials, _ = google.auth.default(
114-
**scopes_kwargs, quota_project_id=quota_project_id
115+
scopes=scopes,
116+
quota_project_id=quota_project_id,
117+
default_scopes=self.AUTH_SCOPES,
115118
)
116119
# Don't apply audience if the credentials file passed from user.
117120
if hasattr(credentials, "with_gdch_audience"):

google/cloud/logging_v2/services/metrics_service_v2/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def __init__(
9191
be used for service account credentials.
9292
"""
9393

94-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
95-
9694
# Save the scopes.
9795
self._scopes = scopes
9896
if not hasattr(self, "_ignore_credentials"):
@@ -107,11 +105,16 @@ def __init__(
107105

108106
if credentials_file is not None:
109107
credentials, _ = google.auth.load_credentials_from_file(
110-
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
108+
credentials_file,
109+
scopes=scopes,
110+
quota_project_id=quota_project_id,
111+
default_scopes=self.AUTH_SCOPES,
111112
)
112113
elif credentials is None and not self._ignore_credentials:
113114
credentials, _ = google.auth.default(
114-
**scopes_kwargs, quota_project_id=quota_project_id
115+
scopes=scopes,
116+
quota_project_id=quota_project_id,
117+
default_scopes=self.AUTH_SCOPES,
115118
)
116119
# Don't apply audience if the credentials file passed from user.
117120
if hasattr(credentials, "with_gdch_audience"):

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.7
2+
python_version = 3.14
33
namespace_packages = True

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def lint(session):
120120
session.run("flake8", "google", "tests")
121121

122122

123-
@nox.session(python="3.13")
123+
@nox.session(python="3.14")
124124
def blacken(session):
125125
"""Run black. Format code to uniform standard."""
126126
session.install(BLACK_VERSION)

testing/constraints-3.7.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
66
# Then this file should have google-cloud-foo==1.14.0
77
google-api-core==1.34.1
8+
# cryptography is a direct dependency of google-auth
9+
cryptography==38.0.3
810
google-auth==2.14.1
911
proto-plus==1.22.0
1012
protobuf==3.20.2

testing/constraints-3.9.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# List all library dependencies and extras in this file.
44
google-api-core
55
google-auth
6+
# cryptography is a direct dependency of google-auth
7+
cryptography==38.0.3
68
proto-plus
79
protobuf
810
google-cloud-core

0 commit comments

Comments
 (0)