Skip to content

Commit c3ca179

Browse files
authored
chore: update librarian to v0.14.1-0.20260522151051-433d9e6211ad (#17235)
Using Librarian revision [433d9e6211ade41965f4be8b8fe8ca33c1d820ee](googleapis/librarian@433d9e6). ``` google-cloud-python$ go run github.com/googleapis/librarian/tool/cmd/builddockerimages@latest --language python --version=433d9e6211ade41965f4be8b8fe8ca33c1d820ee ... google-cloud-python$ docker run -u $(id -u):$(id -g) -v .:/repo -v ~/.cache:/.cache -w /repo docker.io/library/librarian-python:433d9e6211ade41965f4be8b8fe8ca33c1d820ee generate -v --all ... ```
1 parent eaed04b commit c3ca179

884 files changed

Lines changed: 16266 additions & 7427 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

librarian.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
language: python
15-
version: v0.14.0
15+
version: v0.14.1-0.20260522151051-433d9e6211ad
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:

packages/google-ads-admanager/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.9, including 3.14
64+
Python >= 3.10, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
6868

6969
Unsupported Python Versions
7070
^^^^^^^^^^^^^^^^^^^^^^^^^^^
71-
Python <= 3.8
71+
Python <= 3.9
72+
7273

7374
If you are using an `end-of-life`_
7475
version of Python, we recommend that you update as soon as possible to an actively supported version.

packages/google-ads-admanager/docs/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.9, including 3.14
64+
Python >= 3.10, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
6868

6969
Unsupported Python Versions
7070
^^^^^^^^^^^^^^^^^^^^^^^^^^^
71-
Python <= 3.8
71+
Python <= 3.9
72+
7273

7374
If you are using an `end-of-life`_
7475
version of Python, we recommend that you update as soon as possible to an actively supported version.

packages/google-ads-admanager/noxfile.py

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -509,24 +509,50 @@ def prerelease_deps(session, protobuf_implementation):
509509
"proto-plus",
510510
]
511511

512-
for dep in prerel_deps:
513-
session.install("--pre", "--no-deps", "--ignore-installed", dep)
514-
# TODO(https://github.com/grpc/grpc/issues/38965): Add `grpcio-status``
515-
# to the dictionary below once this bug is fixed.
516-
# TODO(https://github.com/googleapis/google-cloud-python/issues/13643): Add
517-
# `googleapis-common-protos` and `grpc-google-iam-v1` to the dictionary below
518-
# once this bug is fixed.
519-
package_namespaces = {
520-
"google-api-core": "google.api_core",
521-
"google-auth": "google.auth",
522-
"grpcio": "grpc",
523-
"protobuf": "google.protobuf",
524-
"proto-plus": "proto",
525-
}
526-
527-
version_namespace = package_namespaces.get(dep)
528-
512+
deps_dir = CURRENT_DIRECTORY.parent
513+
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
514+
deps_dir = deps_dir.parent
515+
516+
# Extract the base package name, safely ignoring version bounds and spaces
517+
# (e.g., "grpcio>=1.75.1" becomes "grpcio")
518+
parsed_deps = {
519+
dep: re.match(r"^([a-zA-Z0-9_-]+)", dep).group(1) for dep in prerel_deps
520+
}
521+
522+
# Dynamically sort local packages vs PyPI dependencies
523+
local_paths = []
524+
pypi_deps = []
525+
526+
for dep, pkg_name in parsed_deps.items():
527+
if (deps_dir / pkg_name).exists():
528+
local_paths.append(str(deps_dir / pkg_name))
529+
else:
530+
pypi_deps.append(dep)
531+
532+
# Batch pip installations to avoid sequential overhead
533+
if local_paths:
534+
session.install(*local_paths, "--no-deps", "--ignore-installed")
535+
if pypi_deps:
536+
session.install(*pypi_deps, "--pre", "--no-deps", "--ignore-installed")
537+
538+
# TODO(https://github.com/grpc/grpc/issues/38965): Add `grpcio-status``
539+
# to the dictionary below once this bug is fixed.
540+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13643): Add
541+
# `googleapis-common-protos` and `grpc-google-iam-v1` to the dictionary below
542+
# once this bug is fixed.
543+
package_namespaces = {
544+
"google-api-core": "google.api_core",
545+
"google-auth": "google.auth",
546+
"grpcio": "grpc",
547+
"protobuf": "google.protobuf",
548+
"proto-plus": "proto",
549+
}
550+
551+
# Reuse the parsed names for logging and version verification
552+
for dep, pkg_name in parsed_deps.items():
529553
print(f"Installed {dep}")
554+
version_namespace = package_namespaces.get(pkg_name)
555+
530556
if version_namespace:
531557
session.run(
532558
"python",
@@ -596,16 +622,24 @@ def core_deps_from_source(session, protobuf_implementation):
596622
# Note: If a dependency is added to the `core_dependencies_from_source` list,
597623
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
598624
core_dependencies_from_source = [
599-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
600-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
601-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
602-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
603-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
625+
"googleapis-common-protos",
626+
"google-api-core",
627+
"google-auth",
628+
"grpc-google-iam-v1",
629+
"proto-plus",
604630
]
605631

606-
for dep in core_dependencies_from_source:
607-
session.install(dep, "--no-deps", "--ignore-installed")
608-
print(f"Installed {dep}")
632+
deps_dir = CURRENT_DIRECTORY.parent
633+
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
634+
deps_dir = deps_dir.parent
635+
636+
# Batch the pip installation to avoid sequential overhead
637+
dep_paths = [str(deps_dir / dep) for dep in core_dependencies_from_source]
638+
639+
session.install(*dep_paths, "--no-deps", "--ignore-installed")
640+
print(
641+
f"Installed {', '.join(core_dependencies_from_source)} locally from {deps_dir}"
642+
)
609643

610644
session.run(
611645
"py.test",

packages/google-ads-datamanager/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ Supported Python Versions
6262
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6363
Python.
6464

65-
Python >= 3.9, including 3.14
65+
Python >= 3.10, including 3.14
6666

6767
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6868
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
6969

7070
Unsupported Python Versions
7171
^^^^^^^^^^^^^^^^^^^^^^^^^^^
72-
Python <= 3.8
72+
Python <= 3.9
73+
7374

7475
If you are using an `end-of-life`_
7576
version of Python, we recommend that you update as soon as possible to an actively supported version.

packages/google-ads-datamanager/docs/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ Supported Python Versions
6262
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6363
Python.
6464

65-
Python >= 3.9, including 3.14
65+
Python >= 3.10, including 3.14
6666

6767
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6868
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
6969

7070
Unsupported Python Versions
7171
^^^^^^^^^^^^^^^^^^^^^^^^^^^
72-
Python <= 3.8
72+
Python <= 3.9
73+
7374

7475
If you are using an `end-of-life`_
7576
version of Python, we recommend that you update as soon as possible to an actively supported version.

packages/google-ads-datamanager/noxfile.py

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -509,24 +509,50 @@ def prerelease_deps(session, protobuf_implementation):
509509
"proto-plus",
510510
]
511511

512-
for dep in prerel_deps:
513-
session.install("--pre", "--no-deps", "--ignore-installed", dep)
514-
# TODO(https://github.com/grpc/grpc/issues/38965): Add `grpcio-status``
515-
# to the dictionary below once this bug is fixed.
516-
# TODO(https://github.com/googleapis/google-cloud-python/issues/13643): Add
517-
# `googleapis-common-protos` and `grpc-google-iam-v1` to the dictionary below
518-
# once this bug is fixed.
519-
package_namespaces = {
520-
"google-api-core": "google.api_core",
521-
"google-auth": "google.auth",
522-
"grpcio": "grpc",
523-
"protobuf": "google.protobuf",
524-
"proto-plus": "proto",
525-
}
526-
527-
version_namespace = package_namespaces.get(dep)
528-
512+
deps_dir = CURRENT_DIRECTORY.parent
513+
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
514+
deps_dir = deps_dir.parent
515+
516+
# Extract the base package name, safely ignoring version bounds and spaces
517+
# (e.g., "grpcio>=1.75.1" becomes "grpcio")
518+
parsed_deps = {
519+
dep: re.match(r"^([a-zA-Z0-9_-]+)", dep).group(1) for dep in prerel_deps
520+
}
521+
522+
# Dynamically sort local packages vs PyPI dependencies
523+
local_paths = []
524+
pypi_deps = []
525+
526+
for dep, pkg_name in parsed_deps.items():
527+
if (deps_dir / pkg_name).exists():
528+
local_paths.append(str(deps_dir / pkg_name))
529+
else:
530+
pypi_deps.append(dep)
531+
532+
# Batch pip installations to avoid sequential overhead
533+
if local_paths:
534+
session.install(*local_paths, "--no-deps", "--ignore-installed")
535+
if pypi_deps:
536+
session.install(*pypi_deps, "--pre", "--no-deps", "--ignore-installed")
537+
538+
# TODO(https://github.com/grpc/grpc/issues/38965): Add `grpcio-status``
539+
# to the dictionary below once this bug is fixed.
540+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13643): Add
541+
# `googleapis-common-protos` and `grpc-google-iam-v1` to the dictionary below
542+
# once this bug is fixed.
543+
package_namespaces = {
544+
"google-api-core": "google.api_core",
545+
"google-auth": "google.auth",
546+
"grpcio": "grpc",
547+
"protobuf": "google.protobuf",
548+
"proto-plus": "proto",
549+
}
550+
551+
# Reuse the parsed names for logging and version verification
552+
for dep, pkg_name in parsed_deps.items():
529553
print(f"Installed {dep}")
554+
version_namespace = package_namespaces.get(pkg_name)
555+
530556
if version_namespace:
531557
session.run(
532558
"python",
@@ -596,16 +622,24 @@ def core_deps_from_source(session, protobuf_implementation):
596622
# Note: If a dependency is added to the `core_dependencies_from_source` list,
597623
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
598624
core_dependencies_from_source = [
599-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
600-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
601-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
602-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
603-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
625+
"googleapis-common-protos",
626+
"google-api-core",
627+
"google-auth",
628+
"grpc-google-iam-v1",
629+
"proto-plus",
604630
]
605631

606-
for dep in core_dependencies_from_source:
607-
session.install(dep, "--no-deps", "--ignore-installed")
608-
print(f"Installed {dep}")
632+
deps_dir = CURRENT_DIRECTORY.parent
633+
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
634+
deps_dir = deps_dir.parent
635+
636+
# Batch the pip installation to avoid sequential overhead
637+
dep_paths = [str(deps_dir / dep) for dep in core_dependencies_from_source]
638+
639+
session.install(*dep_paths, "--no-deps", "--ignore-installed")
640+
print(
641+
f"Installed {', '.join(core_dependencies_from_source)} locally from {deps_dir}"
642+
)
609643

610644
session.run(
611645
"py.test",

packages/google-ads-marketingplatform-admin/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ Supported Python Versions
6565
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6666
Python.
6767

68-
Python >= 3.9, including 3.14
68+
Python >= 3.10, including 3.14
6969

7070
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
7171
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
7272

7373
Unsupported Python Versions
7474
^^^^^^^^^^^^^^^^^^^^^^^^^^^
75-
Python <= 3.8
75+
Python <= 3.9
76+
7677

7778
If you are using an `end-of-life`_
7879
version of Python, we recommend that you update as soon as possible to an actively supported version.

packages/google-ads-marketingplatform-admin/docs/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ Supported Python Versions
6565
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6666
Python.
6767

68-
Python >= 3.9, including 3.14
68+
Python >= 3.10, including 3.14
6969

7070
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
7171
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
7272

7373
Unsupported Python Versions
7474
^^^^^^^^^^^^^^^^^^^^^^^^^^^
75-
Python <= 3.8
75+
Python <= 3.9
76+
7677

7778
If you are using an `end-of-life`_
7879
version of Python, we recommend that you update as soon as possible to an actively supported version.

0 commit comments

Comments
 (0)