Add PEP 723 dependencies to tfdoc.py, versions.py and build_service_agents.py (#3203)
This commit is contained in:
@@ -13,6 +13,16 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# /// script
|
||||
# requires-python = ">=3.11"
|
||||
# dependencies = [
|
||||
# "BeautifulSoup4",
|
||||
# "click",
|
||||
# "requests",
|
||||
# "pyyaml",
|
||||
# ]
|
||||
# ///
|
||||
|
||||
from dataclasses import asdict, dataclass
|
||||
from itertools import chain
|
||||
@@ -43,6 +53,11 @@ ALIASES = {
|
||||
'serverless-robot-prod': ['cloudrun', 'run'],
|
||||
}
|
||||
|
||||
IGNORED_AGENTS = [
|
||||
# Alloydb has two agents. Ignore the non-primary one
|
||||
'c-PROJECT_NUMBER-IDENTIFIER@gcp-sa-alloydb.iam.gserviceaccount.com'
|
||||
]
|
||||
|
||||
E2E_SERVICES = [
|
||||
"alloydb.googleapis.com",
|
||||
"analyticshub.googleapis.com",
|
||||
@@ -110,6 +125,9 @@ def main(e2e=False):
|
||||
continue
|
||||
|
||||
identity = col1.p.get_text()
|
||||
if identity in IGNORED_AGENTS:
|
||||
continue
|
||||
|
||||
# skip agents that are not contained in a project
|
||||
if 'PROJECT_NUMBER' not in identity:
|
||||
continue
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
# Copyright 2025 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -13,6 +13,14 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# /// script
|
||||
# requires-python = ">=3.11"
|
||||
# dependencies = [
|
||||
# "click",
|
||||
# "marko",
|
||||
# ]
|
||||
# ///
|
||||
'''Generate tables for Terraform root module files, outputs and variables.
|
||||
|
||||
This tool generates nicely formatted Markdown tables from Terraform source
|
||||
|
||||
@@ -13,6 +13,13 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# /// script
|
||||
# requires-python = ">=3.11"
|
||||
# dependencies = [
|
||||
# "click",
|
||||
# ]
|
||||
# ///
|
||||
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
Reference in New Issue
Block a user