Skip to content

Commit 59230c4

Browse files
authored
chore: first migration to librarian (#16614)
This migrates google-area120-tables and google-cloud-config to librarian.
1 parent 85ab92f commit 59230c4

File tree

5 files changed

+133
-70
lines changed

5 files changed

+133
-70
lines changed

.librarian/config.yaml

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,28 @@
1-
# This repo is now in legacylibrarian "release-only mode"
2-
# as part of the migration to librarian.
3-
#
4-
# Attempting to regenerate using legacylibrarian will fail,
5-
# and releasing will not expect commits to be generated by
6-
# legacylibrarian.
7-
release_only_mode: true
1+
# This file is being migrated to librarian@latest, and is no longer maintained by hand.
82

3+
release_only_mode: true
94
global_files_allowlist:
10-
# Allow the container to read and write the root `CHANGELOG.md`
11-
# file during the `release` step to update the latest client library
12-
# versions which are hardcoded in the file.
13-
- path: "CHANGELOG.md"
14-
permissions: "read-write"
15-
5+
- path: CHANGELOG.md
6+
permissions: read-write
167
libraries:
17-
# libraries have "release_blocked: true" so that releases are
18-
# explicitly initiated.
19-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16180):
20-
# `google-django-spanner` is blocked until the presubmits are green.
21-
- id: "google-django-spanner"
8+
- id: google-django-spanner
229
release_blocked: true
23-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16487):
24-
# Allow releases for google-cloud-storage once this bug is fixed.
25-
- id: "google-cloud-storage"
10+
- id: google-cloud-storage
2611
release_blocked: true
27-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16494):
28-
# Allow generation for google-cloud-bigtable once this bug is fixed.
29-
- id: "google-cloud-bigtable"
30-
generate_blocked: true
31-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16489):
32-
# Allow releases for bigframes once the bug above is fixed.
33-
- id: "bigframes"
12+
- generate_blocked: true
13+
id: google-cloud-bigtable
14+
- id: bigframes
3415
release_blocked: true
35-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16506):
36-
# Allow generation/release for google-cloud-firestore once this bug is fixed.
37-
- id: "google-cloud-firestore"
38-
generate_blocked: true
16+
- generate_blocked: true
17+
id: google-cloud-firestore
3918
release_blocked: true
40-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16165):
41-
# Allow generation for google-cloud-dialogflow once this bug is fixed.
42-
- id: "google-cloud-dialogflow"
43-
generate_blocked: true
44-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16520):
45-
# Allow release for google-crc32c once this bug is fixed.
46-
- id: "google-crc32c"
19+
- generate_blocked: true
20+
id: google-cloud-dialogflow
21+
- id: google-crc32c
4722
release_blocked: true
48-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16600):
49-
# Allow release for google-cloud-spanner after tests are fixed.
50-
- id: "google-cloud-spanner"
23+
- id: google-cloud-spanner
5124
release_blocked: true
25+
- generate_blocked: true
26+
id: google-area120-tables
27+
- generate_blocked: true
28+
id: google-cloud-config

.librarian/state.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ libraries:
271271
- docs/CHANGELOG.md
272272
remove_regex:
273273
- packages/google-area120-tables/
274+
release_exclude_paths:
275+
- packages/google-area120-tables/.repo-metadata.json
276+
- packages/google-area120-tables/docs/README.rst
274277
tag_format: '{id}-v{version}'
275278
- id: google-auth
276279
version: 2.49.2
@@ -1274,6 +1277,9 @@ libraries:
12741277
- docs/CHANGELOG.md
12751278
remove_regex:
12761279
- packages/google-cloud-config/
1280+
release_exclude_paths:
1281+
- packages/google-cloud-config/.repo-metadata.json
1282+
- packages/google-cloud-config/docs/README.rst
12771283
tag_format: '{id}-v{version}'
12781284
- id: google-cloud-configdelivery
12791285
version: 0.4.0

librarian.yaml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
language: python
15+
version: v0.10.1
16+
repo: googleapis/google-cloud-python
17+
sources:
18+
googleapis:
19+
commit: 2233f63baf69c2a481f30180045fcf036242781d
20+
sha256: fe0d4bb6d640fa6e0b48aa828c833c458f6835b6643b664062a288995b244c3c
21+
release:
22+
ignored_changes:
23+
- .repo-metadata.json
24+
- docs/README.rst
25+
default:
26+
output: packages
27+
tag_format: '{name}: v{version}'
28+
python:
29+
common_gapic_paths:
30+
- samples/generated_samples
31+
- tests/unit/gapic
32+
- testing
33+
- '{neutral-source}/__init__.py'
34+
- '{neutral-source}/gapic_version.py'
35+
- '{neutral-source}/py.typed'
36+
- tests/unit/__init__.py
37+
- tests/__init__.py
38+
- setup.py
39+
- noxfile.py
40+
- .coveragerc
41+
- .flake8
42+
- .repo-metadata.json
43+
- mypy.ini
44+
- README.rst
45+
- LICENSE
46+
- MANIFEST.in
47+
- docs/_static/custom.css
48+
- docs/_templates/layout.html
49+
- docs/conf.py
50+
- docs/index.rst
51+
- docs/multiprocessing.rst
52+
- docs/README.rst
53+
- docs/summary_overview.md
54+
library_type: GAPIC_AUTO
55+
libraries:
56+
- name: google-area120-tables
57+
version: 0.14.0
58+
apis:
59+
- path: google/area120/tables/v1alpha1
60+
description_override: provides programmatic methods to the Area 120 Tables API.
61+
keep:
62+
- CHANGELOG.md
63+
- docs/CHANGELOG.md
64+
python:
65+
name_pretty_override: Area 120 Tables
66+
metadata_name_override: area120tables
67+
default_version: v1alpha1
68+
- name: google-cloud-config
69+
version: 0.5.0
70+
apis:
71+
- path: google/cloud/config/v1
72+
description_override: Infrastructure Manager API
73+
keep:
74+
- CHANGELOG.md
75+
- docs/CHANGELOG.md
76+
python:
77+
name_pretty_override: Infrastructure Manager API
78+
product_documentation_override: https://cloud.google.com/infrastructure-manager/docs/overview
79+
api_shortname_override: config
80+
metadata_name_override: config
81+
default_version: v1
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2-
"api_description": "provides programmatic methods to the Area 120 Tables API.",
3-
"api_id": "area120tables.googleapis.com",
4-
"api_shortname": "area120tables",
5-
"client_documentation": "https://googleapis.dev/python/area120tables/latest",
6-
"default_version": "v1alpha1",
7-
"distribution_name": "google-area120-tables",
8-
"issue_tracker": "",
9-
"language": "python",
10-
"library_type": "GAPIC_AUTO",
11-
"name": "area120tables",
12-
"name_pretty": "Area 120 Tables",
13-
"product_documentation": "https://area120.google.com",
14-
"release_level": "preview",
15-
"repo": "googleapis/google-cloud-python"
2+
"api_description": "provides programmatic methods to the Area 120 Tables API.",
3+
"api_id": "area120tables.googleapis.com",
4+
"api_shortname": "area120tables",
5+
"client_documentation": "https://googleapis.dev/python/area120tables/latest",
6+
"default_version": "v1alpha1",
7+
"distribution_name": "google-area120-tables",
8+
"language": "python",
9+
"library_type": "GAPIC_AUTO",
10+
"name": "area120tables",
11+
"name_pretty": "Area 120 Tables",
12+
"product_documentation": "https://area120.google.com",
13+
"release_level": "preview",
14+
"repo": "googleapis/google-cloud-python"
1615
}
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"api_description": "Infrastructure Manager API",
3-
"api_id": "config.googleapis.com",
4-
"api_shortname": "config",
5-
"client_documentation": "https://cloud.google.com/python/docs/reference/config/latest",
6-
"default_version": "v1",
7-
"distribution_name": "google-cloud-config",
8-
"issue_tracker": "https://issuetracker.google.com/issues/new?component=536700",
9-
"language": "python",
10-
"library_type": "GAPIC_AUTO",
11-
"name": "config",
12-
"name_pretty": "Infrastructure Manager API",
13-
"product_documentation": "https://cloud.google.com/infrastructure-manager/docs/overview",
14-
"release_level": "preview",
15-
"repo": "googleapis/google-cloud-python"
2+
"api_description": "Infrastructure Manager API",
3+
"api_id": "config.googleapis.com",
4+
"api_shortname": "config",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/config/latest",
6+
"default_version": "v1",
7+
"distribution_name": "google-cloud-config",
8+
"issue_tracker": "https://issuetracker.google.com/issues/new?component=536700",
9+
"language": "python",
10+
"library_type": "GAPIC_AUTO",
11+
"name": "config",
12+
"name_pretty": "Infrastructure Manager API",
13+
"product_documentation": "https://cloud.google.com/infrastructure-manager/docs/overview",
14+
"release_level": "preview",
15+
"repo": "googleapis/google-cloud-python"
1616
}

0 commit comments

Comments
 (0)