Skip to content

Commit dcdd37b

Browse files
committed
update packages
1 parent 580a5d7 commit dcdd37b

263 files changed

Lines changed: 3418 additions & 2344 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.

packages/bigframes/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -999,17 +999,21 @@ def core_deps_from_source(session, protobuf_implementation):
999999
# added to the list below so that it is installed from source, rather than PyPI
10001000
# Note: If a dependency is added to the `core_dependencies_from_source` list,
10011001
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
1002-
core_dependencies_from_source = [
1003-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
1004-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
1005-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
1006-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
1007-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
1002+
core_packages = [
1003+
"googleapis-common-protos",
1004+
"google-api-core",
1005+
"google-auth",
1006+
"grpc-google-iam-v1",
1007+
"proto-plus",
10081008
]
10091009

1010-
for dep in core_dependencies_from_source:
1011-
session.install(dep, "--no-deps", "--ignore-installed")
1012-
print(f"Installed {dep}")
1010+
# Dynamically resolve sibling packages one level up in the monorepo
1011+
packages_dir = CURRENT_DIRECTORY.parent
1012+
1013+
for pkg in core_packages:
1014+
pkg_path = str(packages_dir / pkg)
1015+
session.install(pkg_path, "--no-deps", "--ignore-installed")
1016+
print(f"Installed {pkg} locally from {pkg_path}")
10131017

10141018
session.run(
10151019
"py.test",

packages/db-dtypes/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -497,17 +497,21 @@ def core_deps_from_source(session, protobuf_implementation):
497497
)
498498
install_unittest_dependencies(session, "-c", constraints_path)
499499

500-
core_dependencies_from_source = [
501-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
502-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
503-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
504-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
505-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
500+
core_packages = [
501+
"googleapis-common-protos",
502+
"google-api-core",
503+
"google-auth",
504+
"grpc-google-iam-v1",
505+
"proto-plus",
506506
]
507507

508-
for dep in core_dependencies_from_source:
509-
session.install(dep, "--no-deps", "--ignore-installed")
510-
print(f"Installed {dep}")
508+
# Dynamically resolve sibling packages one level up in the monorepo
509+
packages_dir = CURRENT_DIRECTORY.parent
510+
511+
for pkg in core_packages:
512+
pkg_path = str(packages_dir / pkg)
513+
session.install(pkg_path, "--no-deps", "--ignore-installed")
514+
print(f"Installed {pkg} locally from {pkg_path}")
511515

512516
tests_path = os.path.join("tests", "unit")
513517
session.run(

packages/gapic-generator/WORKSPACE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,12 @@ switched_rules_by_language(
123123
gapic = True,
124124
grpc = True,
125125
)
126+
127+
# BEGIN workaround
128+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
129+
130+
python_register_toolchains(
131+
name = "python311",
132+
python_version = "3.11",
133+
)
134+
# END workaround

packages/google-ads-admanager/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -596,17 +596,21 @@ def core_deps_from_source(session, protobuf_implementation):
596596
# added to the list below so that it is installed from source, rather than PyPI
597597
# Note: If a dependency is added to the `core_dependencies_from_source` list,
598598
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
599-
core_dependencies_from_source = [
600-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
601-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
602-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
603-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
604-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
599+
core_packages = [
600+
"googleapis-common-protos",
601+
"google-api-core",
602+
"google-auth",
603+
"grpc-google-iam-v1",
604+
"proto-plus",
605605
]
606606

607-
for dep in core_dependencies_from_source:
608-
session.install(dep, "--no-deps", "--ignore-installed")
609-
print(f"Installed {dep}")
607+
# Dynamically resolve sibling packages one level up in the monorepo
608+
packages_dir = CURRENT_DIRECTORY.parent
609+
610+
for pkg in core_packages:
611+
pkg_path = str(packages_dir / pkg)
612+
session.install(pkg_path, "--no-deps", "--ignore-installed")
613+
print(f"Installed {pkg} locally from {pkg_path}")
610614

611615
session.run(
612616
"py.test",

packages/google-ads-datamanager/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -597,17 +597,21 @@ def core_deps_from_source(session, protobuf_implementation):
597597
# added to the list below so that it is installed from source, rather than PyPI
598598
# Note: If a dependency is added to the `core_dependencies_from_source` list,
599599
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
600-
core_dependencies_from_source = [
601-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
602-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
603-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
604-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
605-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
600+
core_packages = [
601+
"googleapis-common-protos",
602+
"google-api-core",
603+
"google-auth",
604+
"grpc-google-iam-v1",
605+
"proto-plus",
606606
]
607607

608-
for dep in core_dependencies_from_source:
609-
session.install(dep, "--no-deps", "--ignore-installed")
610-
print(f"Installed {dep}")
608+
# Dynamically resolve sibling packages one level up in the monorepo
609+
packages_dir = CURRENT_DIRECTORY.parent
610+
611+
for pkg in core_packages:
612+
pkg_path = str(packages_dir / pkg)
613+
session.install(pkg_path, "--no-deps", "--ignore-installed")
614+
print(f"Installed {pkg} locally from {pkg_path}")
611615

612616
session.run(
613617
"py.test",

packages/google-ads-marketingplatform-admin/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -597,17 +597,21 @@ def core_deps_from_source(session, protobuf_implementation):
597597
# added to the list below so that it is installed from source, rather than PyPI
598598
# Note: If a dependency is added to the `core_dependencies_from_source` list,
599599
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
600-
core_dependencies_from_source = [
601-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
602-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
603-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
604-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
605-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
600+
core_packages = [
601+
"googleapis-common-protos",
602+
"google-api-core",
603+
"google-auth",
604+
"grpc-google-iam-v1",
605+
"proto-plus",
606606
]
607607

608-
for dep in core_dependencies_from_source:
609-
session.install(dep, "--no-deps", "--ignore-installed")
610-
print(f"Installed {dep}")
608+
# Dynamically resolve sibling packages one level up in the monorepo
609+
packages_dir = CURRENT_DIRECTORY.parent
610+
611+
for pkg in core_packages:
612+
pkg_path = str(packages_dir / pkg)
613+
session.install(pkg_path, "--no-deps", "--ignore-installed")
614+
print(f"Installed {pkg} locally from {pkg_path}")
611615

612616
session.run(
613617
"py.test",

packages/google-ai-generativelanguage/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -597,17 +597,21 @@ def core_deps_from_source(session, protobuf_implementation):
597597
# added to the list below so that it is installed from source, rather than PyPI
598598
# Note: If a dependency is added to the `core_dependencies_from_source` list,
599599
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
600-
core_dependencies_from_source = [
601-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
602-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
603-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
604-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
605-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
600+
core_packages = [
601+
"googleapis-common-protos",
602+
"google-api-core",
603+
"google-auth",
604+
"grpc-google-iam-v1",
605+
"proto-plus",
606606
]
607607

608-
for dep in core_dependencies_from_source:
609-
session.install(dep, "--no-deps", "--ignore-installed")
610-
print(f"Installed {dep}")
608+
# Dynamically resolve sibling packages one level up in the monorepo
609+
packages_dir = CURRENT_DIRECTORY.parent
610+
611+
for pkg in core_packages:
612+
pkg_path = str(packages_dir / pkg)
613+
session.install(pkg_path, "--no-deps", "--ignore-installed")
614+
print(f"Installed {pkg} locally from {pkg_path}")
611615

612616
session.run(
613617
"py.test",

packages/google-analytics-admin/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -597,17 +597,21 @@ def core_deps_from_source(session, protobuf_implementation):
597597
# added to the list below so that it is installed from source, rather than PyPI
598598
# Note: If a dependency is added to the `core_dependencies_from_source` list,
599599
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
600-
core_dependencies_from_source = [
601-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
602-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
603-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
604-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
605-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
600+
core_packages = [
601+
"googleapis-common-protos",
602+
"google-api-core",
603+
"google-auth",
604+
"grpc-google-iam-v1",
605+
"proto-plus",
606606
]
607607

608-
for dep in core_dependencies_from_source:
609-
session.install(dep, "--no-deps", "--ignore-installed")
610-
print(f"Installed {dep}")
608+
# Dynamically resolve sibling packages one level up in the monorepo
609+
packages_dir = CURRENT_DIRECTORY.parent
610+
611+
for pkg in core_packages:
612+
pkg_path = str(packages_dir / pkg)
613+
session.install(pkg_path, "--no-deps", "--ignore-installed")
614+
print(f"Installed {pkg} locally from {pkg_path}")
611615

612616
session.run(
613617
"py.test",

packages/google-analytics-data/noxfile.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -596,17 +596,21 @@ def core_deps_from_source(session, protobuf_implementation):
596596
# added to the list below so that it is installed from source, rather than PyPI
597597
# Note: If a dependency is added to the `core_dependencies_from_source` list,
598598
# the `prerel_deps` list in the `prerelease_deps` nox session should also be updated.
599-
core_dependencies_from_source = [
600-
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
601-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
602-
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
603-
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
604-
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
599+
core_packages = [
600+
"googleapis-common-protos",
601+
"google-api-core",
602+
"google-auth",
603+
"grpc-google-iam-v1",
604+
"proto-plus",
605605
]
606606

607-
for dep in core_dependencies_from_source:
608-
session.install(dep, "--no-deps", "--ignore-installed")
609-
print(f"Installed {dep}")
607+
# Dynamically resolve sibling packages one level up in the monorepo
608+
packages_dir = CURRENT_DIRECTORY.parent
609+
610+
for pkg in core_packages:
611+
pkg_path = str(packages_dir / pkg)
612+
session.install(pkg_path, "--no-deps", "--ignore-installed")
613+
print(f"Installed {pkg} locally from {pkg_path}")
610614

611615
session.run(
612616
"py.test",

packages/google-api-core/noxfile.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,21 @@ def install_core_deps_dependencies(session, constraints_path):
153153

154154
# Note: If a dependency is added to the `core_dependencies_from_source` list,
155155
# the `prerel_deps` list in the `install_prerelease_dependencies` method should also be updated.
156-
core_dependencies_from_source = [
157-
f"{CURRENT_DIRECTORY}/../googleapis-common-protos",
158-
f"{CURRENT_DIRECTORY}/../google-auth",
159-
f"{CURRENT_DIRECTORY}/../grpc-google-iam-v1",
160-
f"{CURRENT_DIRECTORY}/../proto-plus",
161-
]
156+
core_packages = [
157+
"googleapis-common-protos",
158+
"google-api-core",
159+
"google-auth",
160+
"grpc-google-iam-v1",
161+
"proto-plus",
162+
]
163+
164+
# Dynamically resolve sibling packages one level up in the monorepo
165+
packages_dir = CURRENT_DIRECTORY.parent
162166

163-
for dep in core_dependencies_from_source:
164-
session.install(dep, "--no-deps", "--ignore-installed")
165-
print(f"Installed {dep}")
167+
for pkg in core_packages:
168+
pkg_path = str(packages_dir / pkg)
169+
session.install(pkg_path, "--no-deps", "--ignore-installed")
170+
print(f"Installed {pkg} locally from {pkg_path}")
166171

167172
# Remaining dependencies
168173
other_deps = [

0 commit comments

Comments
 (0)