From 20939758bb714497bdf9debbe799d771586653c6 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 8 Nov 2025 15:12:50 +0000 Subject: [PATCH 1/2] chore(librarian): clean up owlbot files and pin image sha --- .github/auto-approve.yml | 3 --- .librarian/config.yaml | 6 ----- .librarian/state.yaml | 2 +- owlbot.py | 50 ---------------------------------------- 4 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 .github/auto-approve.yml delete mode 100644 .librarian/config.yaml delete mode 100644 owlbot.py diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml deleted file mode 100644 index 311ebbb..0000000 --- a/.github/auto-approve.yml +++ /dev/null @@ -1,3 +0,0 @@ -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/auto-approve -processes: - - "OwlBotTemplateChanges" diff --git a/.librarian/config.yaml b/.librarian/config.yaml deleted file mode 100644 index 111f94d..0000000 --- a/.librarian/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -global_files_allowlist: - # Allow the container to read and write the root `CHANGELOG.md` - # file during the `release` step to update the latest client library - # versions which are hardcoded in the file. - - path: "CHANGELOG.md" - permissions: "read-write" diff --git a/.librarian/state.yaml b/.librarian/state.yaml index 037948c..1a8eb18 100644 --- a/.librarian/state.yaml +++ b/.librarian/state.yaml @@ -1,4 +1,4 @@ -image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator:latest +image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:39628f6e89c9cad27973b9a39a50f7052bec0435ee58c7027b4fa6b655943e31 libraries: - id: google-auth-oauthlib version: 1.2.3 diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 991c36c..0000000 --- a/owlbot.py +++ /dev/null @@ -1,50 +0,0 @@ -import synthtool as s -from synthtool import gcp - -common = gcp.CommonTemplates() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - microgenerator=True, - cov_level=99, - unit_test_external_dependencies=["click"], - unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"], - default_python_version="3.10", -) -s.move(templated_files, excludes=[ - "docs/multiprocessing.rst", - "README.rst", - "noxfile.py", - ".kokoro/samples/**", # this repository has no samples -]) - -# Change black paths -s.replace( - "noxfile.py", - """LINT_PATHS =.*""", - """LINT_PATHS = ["docs", "google_auth_oauthlib", "tests", "noxfile.py", "setup.py"]""", -) - -# Change flake8 paths -s.replace( - "noxfile.py", - 'session.run\("flake8", "google", "tests"\)', - 'session.run("flake8", *LINT_PATHS)', -) - -s.replace( - "noxfile.py", - '"--cov=google",', - '"--cov=google_auth_oauthlib",', -) - -# Skip Cpp Unittest in 3.11, 3.12, 3.13, and 3.14 -s.replace( - "noxfile.py", - '''session.python in \("3.11", "3.12", "3.13"\)''', - '''session.python in ("3.11", "3.12", "3.13", "3.14")''' -) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) From e2c9f7b617c142eb747cd7a71f3a42c05d7afc9f Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 10 Nov 2025 16:17:50 -0500 Subject: [PATCH 2/2] update sha to match https://github.com/googleapis/google-cloud-python/pull/14864 --- .librarian/state.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.librarian/state.yaml b/.librarian/state.yaml index 1a8eb18..b1de495 100644 --- a/.librarian/state.yaml +++ b/.librarian/state.yaml @@ -1,4 +1,4 @@ -image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:39628f6e89c9cad27973b9a39a50f7052bec0435ee58c7027b4fa6b655943e31 +image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620 libraries: - id: google-auth-oauthlib version: 1.2.3