Skip to content

Commit 74415a2

Browse files
feat: Add support for Python 3.14 (#1562)
* feat: Add support for Python 3.14 fix: Deprecate credentials_file argument chore: Update gapic-generator-python to 1.28.0 PiperOrigin-RevId: 816753840 Source-Link: googleapis/googleapis@d06cf27 Source-Link: googleapis/googleapis-gen@a524e73 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
1 parent faf8b83 commit 74415a2

File tree

10 files changed

+36
-9
lines changed

10 files changed

+36
-9
lines changed

google/cloud/_storage_v2/services/storage/transports/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ def __init__(
7777
credentials identify the application to the service; if none
7878
are specified, the client will attempt to ascertain the
7979
credentials from the environment.
80-
credentials_file (Optional[str]): A file with credentials that can
80+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
8181
be loaded with :func:`google.auth.load_credentials_from_file`.
82-
This argument is mutually exclusive with credentials.
82+
This argument is mutually exclusive with credentials. This argument will be
83+
removed in the next major version of this library.
8384
scopes (Optional[Sequence[str]]): A list of scopes.
8485
quota_project_id (Optional[str]): An optional project to use for billing
8586
and quota.

google/cloud/_storage_v2/services/storage/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@ def __init__(
180180
are specified, the client will attempt to ascertain the
181181
credentials from the environment.
182182
This argument is ignored if a ``channel`` instance is provided.
183-
credentials_file (Optional[str]): A file with credentials that can
183+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
184184
be loaded with :func:`google.auth.load_credentials_from_file`.
185185
This argument is ignored if a ``channel`` instance is provided.
186+
This argument will be removed in the next major version of this library.
186187
scopes (Optional(Sequence[str])): A list of scopes. This argument is
187188
ignored if a ``channel`` instance is provided.
188189
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -315,9 +316,10 @@ def create_channel(
315316
credentials identify this application to the service. If
316317
none are specified, the client will attempt to ascertain
317318
the credentials from the environment.
318-
credentials_file (Optional[str]): A file with credentials that can
319+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
319320
be loaded with :func:`google.auth.load_credentials_from_file`.
320-
This argument is mutually exclusive with credentials.
321+
This argument is mutually exclusive with credentials. This argument will be
322+
removed in the next major version of this library.
321323
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
322324
service. These are only used when credentials are not specified and
323325
are passed to :func:`google.auth.default`.

google/cloud/_storage_v2/services/storage/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ def create_channel(
177177
credentials identify this application to the service. If
178178
none are specified, the client will attempt to ascertain
179179
the credentials from the environment.
180-
credentials_file (Optional[str]): A file with credentials that can
181-
be loaded with :func:`google.auth.load_credentials_from_file`.
180+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
181+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
182+
removed in the next major version of this library.
182183
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
183184
service. These are only used when credentials are not specified and
184185
are passed to :func:`google.auth.default`.
@@ -229,9 +230,10 @@ def __init__(
229230
are specified, the client will attempt to ascertain the
230231
credentials from the environment.
231232
This argument is ignored if a ``channel`` instance is provided.
232-
credentials_file (Optional[str]): A file with credentials that can
233+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
233234
be loaded with :func:`google.auth.load_credentials_from_file`.
234235
This argument is ignored if a ``channel`` instance is provided.
236+
This argument will be removed in the next major version of this library.
235237
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
236238
service. These are only used when credentials are not specified and
237239
are passed to :func:`google.auth.default`.

samples/generated_samples/snippet_metadata_google.storage.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-storage",
11-
"version": "0.1.0"
11+
"version": "0.0.0"
1212
},
1313
"snippets": [
1414
{

testing/constraints-3.10.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
grpc-google-iam-v1

testing/constraints-3.11.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
grpc-google-iam-v1

testing/constraints-3.12.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
grpc-google-iam-v1

testing/constraints-3.13.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Then this file should have google-cloud-foo>=1
88
google-api-core>=2
99
google-auth>=2
10+
grpcio>=1
1011
proto-plus>=1
1112
protobuf>=6
1213
grpc-google-iam-v1>=0

testing/constraints-3.14.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# We use the constraints file for the latest Python version
2+
# (currently this file) to check that the latest
3+
# major versions of dependencies are supported in setup.py.
4+
# List all library dependencies and extras in this file.
5+
# Require the latest major version be installed for each dependency.
6+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
7+
# Then this file should have google-cloud-foo>=1
8+
google-api-core>=2
9+
google-auth>=2
10+
grpcio>=1
11+
proto-plus>=1
12+
protobuf>=6
13+
grpc-google-iam-v1>=0

testing/constraints-3.8.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
grpc-google-iam-v1

0 commit comments

Comments
 (0)