Skip to content

Commit 8524072

Browse files
feat: generate libraries
1 parent 11a1844 commit 8524072

File tree

603 files changed

+8615
-3440
lines changed

Some content is hidden

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

603 files changed

+8615
-3440
lines changed

.librarian/state.yaml

Lines changed: 200 additions & 88 deletions
Large diffs are not rendered by default.

packages/google-ads-admanager/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"api_id": "admanager.googleapis.com",
1414
"default_version": "v1",
1515
"api_shortname": "admanager"
16-
}
16+
}

packages/google-ads-admanager/noxfile.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@
3535
"3.11",
3636
"3.12",
3737
"3.13",
38+
"3.14",
3839
]
3940

40-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
41+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
42+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4143

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

@@ -57,7 +59,7 @@
5759
UNIT_TEST_EXTRAS: List[str] = []
5860
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
5961

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

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

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

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

422431

423-
@nox.session(python=DEFAULT_PYTHON_VERSION)
432+
@nox.session(python=PRE_RELEASE_PYTHON)
424433
@nox.parametrize(
425434
"protobuf_implementation",
426435
["python", "upb", "cpp"],
@@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
433442
`pip install --pre <package>`.
434443
"""
435444

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

439455
# Install all dependencies
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
proto-plus>=1
11+
protobuf>=6

packages/google-ads-marketingplatform-admin/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"api_id": "marketingplatformadmin.googleapis.com",
1414
"default_version": "v1alpha",
1515
"api_shortname": "marketingplatformadmin"
16-
}
16+
}

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

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@
3535
"3.11",
3636
"3.12",
3737
"3.13",
38+
"3.14",
3839
]
3940

40-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
41+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
42+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4143

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

@@ -57,7 +59,7 @@
5759
UNIT_TEST_EXTRAS: List[str] = []
5860
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
5961

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

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

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

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

422431

423-
@nox.session(python=DEFAULT_PYTHON_VERSION)
432+
@nox.session(python=PRE_RELEASE_PYTHON)
424433
@nox.parametrize(
425434
"protobuf_implementation",
426435
["python", "upb", "cpp"],
@@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
433442
`pip install --pre <package>`.
434443
"""
435444

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

439455
# Install all dependencies
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
proto-plus>=1
11+
protobuf>=6

packages/google-ai-generativelanguage/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"api_id": "generativelanguage.googleapis.com",
1414
"default_version": "v1beta",
1515
"api_shortname": "generativelanguage"
16-
}
16+
}

packages/google-ai-generativelanguage/noxfile.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@
3535
"3.11",
3636
"3.12",
3737
"3.13",
38+
"3.14",
3839
]
3940

40-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
41+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
42+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4143

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

@@ -57,7 +59,7 @@
5759
UNIT_TEST_EXTRAS: List[str] = []
5860
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
5961

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

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

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

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

422431

423-
@nox.session(python=DEFAULT_PYTHON_VERSION)
432+
@nox.session(python=PRE_RELEASE_PYTHON)
424433
@nox.parametrize(
425434
"protobuf_implementation",
426435
["python", "upb", "cpp"],
@@ -433,7 +442,14 @@ def prerelease_deps(session, protobuf_implementation):
433442
`pip install --pre <package>`.
434443
"""
435444

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

439455
# Install all dependencies
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
proto-plus>=1
11+
protobuf>=6

0 commit comments

Comments
 (0)