Skip to content

Commit 28c02dd

Browse files
authored
fix: bump python-auth version to fix issue and remove workaround (#1158)
1 parent aefcdd4 commit 28c02dd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

google/cloud/storage/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def __init__(
127127
# are passed along, for use in __reduce__ defined elsewhere.
128128
self._initial_client_info = client_info
129129
self._initial_client_options = client_options
130-
self._initial_credentials = credentials
131130

132131
kw_args = {"client_info": client_info}
133132

google/cloud/storage/transfer_manager.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,14 @@ def _call_method_on_maybe_pickled_blob(
11541154

11551155

11561156
def _reduce_client(cl):
1157-
"""Replicate a Client by constructing a new one with the same params."""
1157+
"""Replicate a Client by constructing a new one with the same params.
1158+
1159+
LazyClient performs transparent caching for when the same client is needed
1160+
on the same process multiple times."""
11581161

11591162
client_object_id = id(cl)
11601163
project = cl.project
1161-
credentials = cl._initial_credentials
1164+
credentials = cl._credentials
11621165
_http = None # Can't carry this over
11631166
client_info = cl._initial_client_info
11641167
client_options = cl._initial_client_options

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# 'Development Status :: 5 - Production/Stable'
2929
release_status = "Development Status :: 5 - Production/Stable"
3030
dependencies = [
31-
"google-auth >= 1.25.0, < 3.0dev",
31+
"google-auth >= 2.23.3, < 3.0dev",
3232
"google-api-core >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
3333
"google-cloud-core >= 2.3.0, < 3.0dev",
3434
"google-resumable-media >= 2.6.0",

0 commit comments

Comments
 (0)