Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
288 changes: 200 additions & 88 deletions .librarian/state.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/google-ads-admanager/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"api_id": "admanager.googleapis.com",
"default_version": "v1",
"api_shortname": "admanager"
}
}
28 changes: 22 additions & 6 deletions packages/google-ads-admanager/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"3.11",
"3.12",
"3.13",
"3.14",
]

DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

Expand All @@ -57,7 +59,7 @@
UNIT_TEST_EXTRAS: List[str] = []
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
"mock",
"pytest",
Expand Down Expand Up @@ -222,15 +224,22 @@ def install_unittest_dependencies(session, *constraints):
def unit(session, protobuf_implementation):
# Install all test dependencies, then install this package in-place.

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
install_unittest_dependencies(session, "-c", constraints_path)

# TODO(https://github.com/googleapis/synthtool/issues/1976):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
# The 'cpp' implementation requires Protobuf<4.
if protobuf_implementation == "cpp":
Expand Down Expand Up @@ -420,7 +429,7 @@ def docfx(session):
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=PRE_RELEASE_PYTHON)
@nox.parametrize(
"protobuf_implementation",
["python", "upb", "cpp"],
Expand All @@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
`pip install --pre <package>`.
"""

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

# Install all dependencies
Expand Down
11 changes: 11 additions & 0 deletions packages/google-ads-admanager/testing/constraints-3.14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# We use the constraints file for the latest Python version
# (currently this file) to check that the latest
# major versions of dependencies are supported in setup.py.
# List all library dependencies and extras in this file.
# Require the latest major version be installed for each dependency.
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
# Then this file should have google-cloud-foo>=1
google-api-core>=2
google-auth>=2
proto-plus>=1
protobuf>=6
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"api_id": "marketingplatformadmin.googleapis.com",
"default_version": "v1alpha",
"api_shortname": "marketingplatformadmin"
}
}
28 changes: 22 additions & 6 deletions packages/google-ads-marketingplatform-admin/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"3.11",
"3.12",
"3.13",
"3.14",
]

DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

Expand All @@ -57,7 +59,7 @@
UNIT_TEST_EXTRAS: List[str] = []
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
"mock",
"pytest",
Expand Down Expand Up @@ -222,15 +224,22 @@ def install_unittest_dependencies(session, *constraints):
def unit(session, protobuf_implementation):
# Install all test dependencies, then install this package in-place.

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
install_unittest_dependencies(session, "-c", constraints_path)

# TODO(https://github.com/googleapis/synthtool/issues/1976):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
# The 'cpp' implementation requires Protobuf<4.
if protobuf_implementation == "cpp":
Expand Down Expand Up @@ -420,7 +429,7 @@ def docfx(session):
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=PRE_RELEASE_PYTHON)
@nox.parametrize(
"protobuf_implementation",
["python", "upb", "cpp"],
Expand All @@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
`pip install --pre <package>`.
"""

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

# Install all dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# We use the constraints file for the latest Python version
# (currently this file) to check that the latest
# major versions of dependencies are supported in setup.py.
# List all library dependencies and extras in this file.
# Require the latest major version be installed for each dependency.
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
# Then this file should have google-cloud-foo>=1
google-api-core>=2
google-auth>=2
proto-plus>=1
protobuf>=6
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"api_id": "generativelanguage.googleapis.com",
"default_version": "v1beta",
"api_shortname": "generativelanguage"
}
}
28 changes: 22 additions & 6 deletions packages/google-ai-generativelanguage/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"3.11",
"3.12",
"3.13",
"3.14",
]

DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

Expand All @@ -57,7 +59,7 @@
UNIT_TEST_EXTRAS: List[str] = []
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
"mock",
"pytest",
Expand Down Expand Up @@ -222,15 +224,22 @@ def install_unittest_dependencies(session, *constraints):
def unit(session, protobuf_implementation):
# Install all test dependencies, then install this package in-place.

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
install_unittest_dependencies(session, "-c", constraints_path)

# TODO(https://github.com/googleapis/synthtool/issues/1976):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
# The 'cpp' implementation requires Protobuf<4.
if protobuf_implementation == "cpp":
Expand Down Expand Up @@ -420,7 +429,7 @@ def docfx(session):
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=PRE_RELEASE_PYTHON)
@nox.parametrize(
"protobuf_implementation",
["python", "upb", "cpp"],
Expand All @@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
`pip install --pre <package>`.
"""

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

# Install all dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# We use the constraints file for the latest Python version
# (currently this file) to check that the latest
# major versions of dependencies are supported in setup.py.
# List all library dependencies and extras in this file.
# Require the latest major version be installed for each dependency.
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
# Then this file should have google-cloud-foo>=1
google-api-core>=2
google-auth>=2
proto-plus>=1
protobuf>=6
2 changes: 1 addition & 1 deletion packages/google-analytics-admin/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"default_version": "v1alpha",
"api_shortname": "analyticsadmin",
"api_description": "allows you to manage Google Analytics accounts and properties."
}
}
28 changes: 22 additions & 6 deletions packages/google-analytics-admin/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"3.11",
"3.12",
"3.13",
"3.14",
]

DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

Expand All @@ -57,7 +59,7 @@
UNIT_TEST_EXTRAS: List[str] = []
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
"mock",
"pytest",
Expand Down Expand Up @@ -222,15 +224,22 @@ def install_unittest_dependencies(session, *constraints):
def unit(session, protobuf_implementation):
# Install all test dependencies, then install this package in-place.

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
install_unittest_dependencies(session, "-c", constraints_path)

# TODO(https://github.com/googleapis/synthtool/issues/1976):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
# The 'cpp' implementation requires Protobuf<4.
if protobuf_implementation == "cpp":
Expand Down Expand Up @@ -420,7 +429,7 @@ def docfx(session):
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=PRE_RELEASE_PYTHON)
@nox.parametrize(
"protobuf_implementation",
["python", "upb", "cpp"],
Expand All @@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
`pip install --pre <package>`.
"""

if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
# Remove this check once support for Protobuf 3.x is dropped.
if protobuf_implementation == "cpp" and session.python in (
"3.11",
"3.12",
"3.13",
"3.14",
):
session.skip("cpp implementation is not supported in python 3.11+")

# Install all dependencies
Expand Down
11 changes: 11 additions & 0 deletions packages/google-analytics-admin/testing/constraints-3.14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# We use the constraints file for the latest Python version
# (currently this file) to check that the latest
# major versions of dependencies are supported in setup.py.
# List all library dependencies and extras in this file.
# Require the latest major version be installed for each dependency.
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
# Then this file should have google-cloud-foo>=1
google-api-core>=2
google-auth>=2
proto-plus>=1
protobuf>=6
Loading
Loading