Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40b522a

Browse filesBrowse files
authored
feat: regenerate google-cloud-s packages (#17086)
This Pull Request drops support for Python <=3.9 in generated packages. This is part of our ongoing effort to modernize the Cloud Python SDK libraries and remove support for End-of-Life (EOL) Python versions. - Removed Python <=3.9 from testing, configuration, and constraints files. - Resolved dependency conflicts arising from dropping Python <=3.9 support. - Cleaned up obsolete code related to Python <=3.9 support. - Updated select copyright dates - Updated some autogenerated headings - Updated some tests to resolve issues discovered during this migration.
1 parent 5239b18 commit 40b522a
Copy full SHA for 40b522a

263 files changed

+1,662-3,181Lines changed: 1662 additions & 3181 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-saasplatform-saasservicemgmt/docs/conf.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-saasplatform-saasservicemgmt/docs/conf.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 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.
@@ -83,7 +83,7 @@
8383

8484
# General information about the project.
8585
project = "google-cloud-saasplatform-saasservicemgmt"
86-
copyright = "2025, Google, LLC"
86+
copyright = "2026, Google, LLC"
8787
author = "Google APIs"
8888

8989
# The version info for the project you're documenting, acts as replacement for
Collapse file

‎packages/google-cloud-saasplatform-saasservicemgmt/google/cloud/saasplatform_saasservicemgmt_v1beta1/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-saasplatform-saasservicemgmt/google/cloud/saasplatform_saasservicemgmt_v1beta1/__init__.py
+4-21Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 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.
@@ -23,13 +23,7 @@
2323

2424
__version__ = package_version.__version__
2525

26-
if sys.version_info >= (3, 8): # pragma: NO COVER
27-
from importlib import metadata
28-
else: # pragma: NO COVER
29-
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
30-
# this code path once we drop support for Python 3.7
31-
import importlib_metadata as metadata
32-
26+
from importlib import metadata
3327

3428
from .services.saas_deployments import SaasDeploymentsAsyncClient, SaasDeploymentsClient
3529
from .services.saas_rollouts import SaasRolloutsAsyncClient, SaasRolloutsClient
@@ -131,28 +125,17 @@
131125
# An older version of api_core is installed which does not define the
132126
# functions above. We do equivalent checks manually.
133127
try:
134-
import sys
135128
import warnings
136129

137130
_py_version_str = sys.version.split()[0]
138131
_package_label = "google.cloud.saasplatform_saasservicemgmt_v1beta1"
139-
if sys.version_info < (3, 9):
132+
if sys.version_info < (3, 10):
140133
warnings.warn(
141134
"You are using a non-supported Python version "
142135
+ f"({_py_version_str}). Google will not post any further "
143136
+ f"updates to {_package_label} supporting this Python version. "
144137
+ "Please upgrade to the latest Python version, or at "
145-
+ f"least to Python 3.9, and then update {_package_label}.",
146-
FutureWarning,
147-
)
148-
if sys.version_info[:2] == (3, 9):
149-
warnings.warn(
150-
f"You are using a Python version ({_py_version_str}) "
151-
+ f"which Google will stop supporting in {_package_label} in "
152-
+ "January 2026. Please "
153-
+ "upgrade to the latest Python version, or at "
154-
+ "least to Python 3.10, before then, and "
155-
+ f"then update {_package_label}.",
138+
+ f"least to Python 3.10, and then update {_package_label}.",
156139
FutureWarning,
157140
)
158141

Collapse file

‎packages/google-cloud-saasplatform-saasservicemgmt/noxfile.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-saasplatform-saasservicemgmt/noxfile.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 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.
@@ -31,7 +31,6 @@
3131
LINT_PATHS.append("samples")
3232

3333
ALL_PYTHON = [
34-
"3.9",
3534
"3.10",
3635
"3.11",
3736
"3.12",
@@ -390,7 +389,6 @@ def docs(session):
390389
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
391390
session.run(
392391
"sphinx-build",
393-
"-W", # warnings as errors
394392
"-T", # show full traceback on exception
395393
"-N", # no colors
396394
"-b",
Collapse file

‎packages/google-cloud-saasplatform-saasservicemgmt/setup.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-saasplatform-saasservicemgmt/setup.py
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 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.
@@ -43,11 +43,11 @@
4343
release_status = "Development Status :: 5 - Production/Stable"
4444

4545
dependencies = [
46-
"google-api-core[grpc] >= 2.11.0, <3.0.0",
46+
"google-api-core[grpc] >= 2.17.1, <3.0.0",
4747
# Exclude incompatible versions of `google-auth`
4848
# See https://github.com/googleapis/google-cloud-python/issues/12364
4949
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
50-
"grpcio >= 1.33.2, < 2.0.0",
50+
"grpcio >= 1.44.0, < 2.0.0",
5151
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
5252
"proto-plus >= 1.22.3, <2.0.0",
5353
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
@@ -75,15 +75,14 @@
7575
long_description=readme,
7676
author="Google LLC",
7777
author_email="googleapis-packages@google.com",
78-
license="Apache 2.0",
78+
license="Apache-2.0",
7979
url=url,
8080
classifiers=[
8181
release_status,
8282
"Intended Audience :: Developers",
8383
"License :: OSI Approved :: Apache Software License",
8484
"Programming Language :: Python",
8585
"Programming Language :: Python :: 3",
86-
"Programming Language :: Python :: 3.9",
8786
"Programming Language :: Python :: 3.10",
8887
"Programming Language :: Python :: 3.11",
8988
"Programming Language :: Python :: 3.12",
@@ -94,7 +93,7 @@
9493
],
9594
platforms="Posix; MacOS X; Windows",
9695
packages=packages,
97-
python_requires=">=3.9",
96+
python_requires=">=3.10",
9897
install_requires=dependencies,
9998
extras_require=extras,
10099
include_package_data=True,
Collapse file
+11-10Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
3-
# List all library dependencies and extras in this file.
4-
google-api-core
5-
google-auth
6-
grpcio
7-
proto-plus
8-
protobuf
9-
# cryptography is a direct dependency of google-auth
10-
cryptography
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py
3+
# List all library dependencies and extras in this file,
4+
# pinning their versions to their lower bounds.
5+
# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# then this file should have google-cloud-foo==1.14.0
7+
google-api-core==2.17.1
8+
google-auth==2.14.1
9+
grpcio==1.44.0
10+
proto-plus==1.22.3
11+
protobuf==4.25.8
Collapse file

‎packages/google-cloud-saasplatform-saasservicemgmt/testing/constraints-3.9.txt‎

Copy file name to clipboardExpand all lines: packages/google-cloud-saasplatform-saasservicemgmt/testing/constraints-3.9.txt
-13Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.