Skip to content

Commit 23f1e85

Browse files
committed
Merge branch 'main' into shuowei-deprecate-blob-notebook-updates
2 parents fdd33c0 + 71b73e5 commit 23f1e85

129 files changed

Lines changed: 31702 additions & 8136 deletions

File tree

Some content is hidden

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

.generator/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ RUN unzip protoc-25.3-linux-x86_64.zip -d protoc
6666

6767
# Download/extract pandoc
6868
# Pandoc is required by gapic-generator-python for parsing documentation
69+
# version-scanner: ignore-next-line
6970
ENV PANDOC_VERSION=3.8.2
7071
RUN mkdir pandoc-binary
7172
RUN wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz

.generator/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def _run_post_processor(output: str, library_id: str, is_mono_repo: bool):
354354
# TODO(https://github.com/googleapis/google-cloud-python/issues/15538):
355355
# Investigate if a `target_version needs to be maintained
356356
# or can be eliminated.
357-
target_version = "py39"
357+
target_version = "py310"
358358
common_args = [
359359
f"--target-version={target_version}",
360360
"--line-length=88",

.generator/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ def test_run_individual_session_success(mocker, caplog, is_mono_repo):
741741
"cli.subprocess.run", return_value=MagicMock(returncode=0)
742742
)
743743

744-
test_session = "unit-3.9"
744+
test_session = "unit-3.10"
745745
test_library_id = "test-library"
746746
repo = "repo"
747747
_run_individual_session(test_session, test_library_id, repo, is_mono_repo)

.github/workflows/gapic-generator-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
SHOWCASE_VERSION: 0.35.0
1919
PROTOC_VERSION: 3.20.2
2020
LATEST_STABLE_PYTHON: 3.14
21-
ALL_PYTHON: "['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']"
21+
ALL_PYTHON: "['3.10', '3.11', '3.12', '3.13', '3.14']"
2222

2323
jobs:
2424
check_changes:

.kokoro/system.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,24 @@ for path in `find 'packages' \
133133
package_path="packages/${package_name}"
134134

135135
# Determine if we should skip based on git diff
136-
files_to_check="${package_path}/CHANGELOG.md"
136+
# We always check for changes in these specific versioning/config files
137+
files_to_check=(
138+
"${package_path}/CHANGELOG.md"
139+
"${package_path}/setup.py"
140+
"${package_path}/pyproject.toml"
141+
"${package_path}/**/gapic_version.py"
142+
"${package_path}/**/version.py"
143+
)
144+
145+
# If the package is in our "always run full system tests" list, check the whole directory
137146
if [[ $package_name == @($packages_with_system_tests_pattern) ]]; then
138-
files_to_check="${package_path}"
147+
files_to_check=("${package_path}")
139148
fi
140149

141-
echo "checking changes with 'git diff "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}" -- ${files_to_check}'"
150+
echo "checking changes with 'git diff ${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT} -- ${files_to_check[*]}'"
142151
set +e
143-
package_modified=$(git diff "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}" -- ${files_to_check} | wc -l)
152+
# Passing the array expanded as arguments to git diff
153+
package_modified=$(git diff "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}" -- "${files_to_check[@]}" | wc -l)
144154
set -e
145155

146156
if [[ "${package_modified}" -gt 0 || "$KOKORO_BUILD_ARTIFACTS_SUBDIR" == *"continuous"* ]]; then

.librarian/config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ libraries:
2727
# Allow release for google-crc32c once this bug is fixed.
2828
- id: "google-crc32c"
2929
release_blocked: true
30-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16780):
31-
# Allow release for google-cloud-compute (and beta) after we've checked that
32-
# the gRPC service config is okay.
33-
- id: "google-cloud-compute"
34-
release_blocked: true
35-
- id: "google-cloud-compute-v1beta"
36-
release_blocked: true
3730
# TODO(b/501132869): Disabling automatic releases until resolved.
3831
- id: "google-cloud-bigtable"
3932
release_blocked: true
33+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16780): Disabling automatic releases until resolved.
34+
- id: "google-cloud-compute"
35+
release_blocked: true
36+

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ repos:
2626
hooks:
2727
- id: black
2828
- repo: https://github.com/pycqa/flake8
29-
rev: 3.9.2
29+
rev: 3.9.2 # version-scanner: ignore
3030
hooks:
3131
- id: flake8

ci/run_conditional_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# `BUILD_TYPE` should be one of ["presubmit", "continuous"]
1818
# `TEST_TYPE` should be one of ["docs", "docfx", "prerelease", "unit"]
1919
# or match the name of the nox session that you want to run.
20-
# `PY_VERSION` should be one of ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
20+
# `PY_VERSION` should be one of ["3.10", "3.11", "3.12"]
2121

2222
# `TEST_TYPE` and `PY_VERSION` are required by the script `ci/run_single_test.sh`
2323

ci/run_single_test.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# This script requires the following environment variables to be set:
1818
# `TEST_TYPE` should be one of ["lint", "lint_setup_py", "docs", "docfx", "prerelease"]
19-
# `PY_VERSION` should be one of ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
19+
# `PY_VERSION` should be one of ["3.10", "3.11", "3.12", "3.13"]
2020

2121
# This script is called by the `ci/run_conditional_tests.sh` script.
2222
# A specific `nox` session will be run, depending on the value of
@@ -70,14 +70,6 @@ case ${TEST_TYPE} in
7070
;;
7171
unit)
7272
case ${PY_VERSION} in
73-
"3.7")
74-
nox -s unit-3.7
75-
retval=$?
76-
;;
77-
"3.8")
78-
nox -s unit-3.8
79-
retval=$?
80-
;;
8173
"3.9")
8274
nox -s unit-3.9
8375
retval=$?

librarian.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
language: python
15-
version: v0.11.0
15+
version: v0.12.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
@@ -747,6 +747,8 @@ libraries:
747747
python:
748748
metadata_name_override: compute
749749
default_version: v1
750+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16780): Disabling automatic releases until resolved.
751+
skip_release: true
750752
- name: google-cloud-compute-v1beta
751753
version: 0.10.0
752754
apis:

0 commit comments

Comments
 (0)