Skip to content

Commit b46725a

Browse files
chore(python): update dependencies in .kokoro/docker/docs (#1135)
* chore(python): update dependencies in .kokoro/docker/docs Source-Link: googleapis/synthtool@59171c8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2ed982f884312e4883e01b5ab8af8b6935f0216a5a2d82928d273081fc3be562 * Adds constraint.txt file for python 3.13 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: chalmer lowe <[email protected]>
1 parent 150143c commit b46725a

File tree

13 files changed

+122
-38
lines changed

13 files changed

+122
-38
lines changed

.github/.OwlBot.lock.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:e8dcfd7cbfd8beac3a3ff8d3f3185287ea0625d859168cc80faccfc9a7a00455
17-
# created: 2024-09-16T21:04:09.091105552Z
16+
digest: sha256:2ed982f884312e4883e01b5ab8af8b6935f0216a5a2d82928d273081fc3be562
17+
# created: 2024-11-12T12:09:45.821174897Z

.github/release-trigger.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
enabled: true
2+
multiScmName: python-bigquery-sqlalchemy

.kokoro/docker/docs/requirements.txt

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
55
# pip-compile --allow-unsafe --generate-hashes requirements.in
66
#
7-
argcomplete==3.4.0 \
8-
--hash=sha256:69a79e083a716173e5532e0fa3bef45f793f4e61096cf52b5a42c0211c8b8aa5 \
9-
--hash=sha256:c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f
7+
argcomplete==3.5.1 \
8+
--hash=sha256:1a1d148bdaa3e3b93454900163403df41448a248af01b6e849edc5ac08e6c363 \
9+
--hash=sha256:eb1ee355aa2557bd3d0145de7b06b2a45b0ce461e1e7813f5d066039ab4177b4
1010
# via nox
11-
colorlog==6.8.2 \
12-
--hash=sha256:3e3e079a41feb5a1b64f978b5ea4f46040a94f11f0e8bbb8261e3dbbeca64d44 \
13-
--hash=sha256:4dcbb62368e2800cb3c5abd348da7e53f6c362dda502ec27c560b2e58a66bd33
11+
colorlog==6.9.0 \
12+
--hash=sha256:5906e71acd67cb07a71e779c47c4bcb45fb8c2993eebe9e5adcd6a6f1b283eff \
13+
--hash=sha256:bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2
1414
# via nox
15-
distlib==0.3.8 \
16-
--hash=sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784 \
17-
--hash=sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64
15+
distlib==0.3.9 \
16+
--hash=sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87 \
17+
--hash=sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403
1818
# via virtualenv
19-
filelock==3.15.4 \
20-
--hash=sha256:2207938cbc1844345cb01a5a95524dae30f0ce089eba5b00378295a17e3e90cb \
21-
--hash=sha256:6ca1fffae96225dab4c6eaf1c4f4f28cd2568d3ec2a44e15a08520504de468e7
19+
filelock==3.16.1 \
20+
--hash=sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0 \
21+
--hash=sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435
2222
# via virtualenv
23-
nox==2024.4.15 \
24-
--hash=sha256:6492236efa15a460ecb98e7b67562a28b70da006ab0be164e8821177577c0565 \
25-
--hash=sha256:ecf6700199cdfa9e5ea0a41ff5e6ef4641d09508eda6edb89d9987864115817f
23+
nox==2024.10.9 \
24+
--hash=sha256:1d36f309a0a2a853e9bccb76bbef6bb118ba92fa92674d15604ca99adeb29eab \
25+
--hash=sha256:7aa9dc8d1c27e9f45ab046ffd1c3b2c4f7c91755304769df231308849ebded95
2626
# via -r requirements.in
27-
packaging==24.1 \
28-
--hash=sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002 \
29-
--hash=sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
27+
packaging==24.2 \
28+
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
29+
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
3030
# via nox
31-
platformdirs==4.2.2 \
32-
--hash=sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee \
33-
--hash=sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3
31+
platformdirs==4.3.6 \
32+
--hash=sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907 \
33+
--hash=sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb
3434
# via virtualenv
35-
tomli==2.0.1 \
36-
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
37-
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
35+
tomli==2.0.2 \
36+
--hash=sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38 \
37+
--hash=sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed
3838
# via nox
39-
virtualenv==20.26.3 \
40-
--hash=sha256:4c43a2a236279d9ea36a0d76f98d84bd6ca94ac4e0f4a3b9d46d05e10fea542a \
41-
--hash=sha256:8cc4a31139e796e9a7de2cd5cf2489de1217193116a8fd42328f1bd65f434589
39+
virtualenv==20.27.1 \
40+
--hash=sha256:142c6be10212543b32c6c45d3d3893dff89112cc588b7d0879ae5a1ec03a47ba \
41+
--hash=sha256:f11f1b8a29525562925f745563bfd48b189450f61fb34c4f9cc79dd5aa32a1f4
4242
# via nox

.kokoro/docs/common.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ env_vars: {
3030

3131
env_vars: {
3232
key: "V2_STAGING_BUCKET"
33-
# Push non-cloud library docs to `docs-staging-v2-staging` instead of the
33+
# Push non-cloud library docs to `docs-staging-v2-dev` instead of the
3434
# Cloud RAD bucket `docs-staging-v2`
35-
value: "docs-staging-v2-staging"
35+
value: "docs-staging-v2-dev"
3636
}
3737

3838
# It will upload the docker image after successful builds.
@@ -64,4 +64,4 @@ before_action {
6464
keyname: "docuploader_service_account"
6565
}
6666
}
67-
}
67+
}

.kokoro/samples/python3.13/common.cfg

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Specify which tests to run
11+
env_vars: {
12+
key: "RUN_TESTS_SESSION"
13+
value: "py-3.13"
14+
}
15+
16+
# Declare build specific Cloud project.
17+
env_vars: {
18+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19+
value: "python-docs-samples-tests-313"
20+
}
21+
22+
env_vars: {
23+
key: "TRAMPOLINE_BUILD_FILE"
24+
value: "github/python-bigquery-sqlalchemy/.kokoro/test-samples.sh"
25+
}
26+
27+
# Configure the docker image for kokoro-trampoline.
28+
env_vars: {
29+
key: "TRAMPOLINE_IMAGE"
30+
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
31+
}
32+
33+
# Download secrets for samples
34+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
35+
36+
# Download trampoline resources.
37+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
38+
39+
# Use the trampoline script to run in docker.
40+
build_file: "python-bigquery-sqlalchemy/.kokoro/trampoline_v2.sh"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
7+
8+
env_vars: {
9+
key: "TRAMPOLINE_BUILD_FILE"
10+
value: "github/python-bigquery-sqlalchemy/.kokoro/test-samples-against-head.sh"
11+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "False"
6+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}

.kokoro/test-samples-impl.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export PYTHONUNBUFFERED=1
3333
env | grep KOKORO
3434

3535
# Install nox
36-
python3.9 -m pip install --upgrade --quiet nox
36+
# `virtualenv==20.26.6` is added for Python 3.7 compatibility
37+
python3.9 -m pip install --upgrade --quiet nox virtualenv==20.26.6
3738

3839
# Use secrets acessor service account to get secrets
3940
if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then

noxfile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106

107107
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
108108

109-
# 'docfx' is excluded since it only needs to run in 'docs-presubmit'
110109
nox.options.sessions = [
111110
"unit",
112111
"system",
@@ -115,6 +114,7 @@
115114
"lint_setup_py",
116115
"blacken",
117116
"docs",
117+
"docfx",
118118
"format",
119119
]
120120

@@ -212,7 +212,7 @@ def install_unittest_dependencies(session, *constraints):
212212
def unit(session, protobuf_implementation, install_extras=True):
213213
# Install all test dependencies, then install this package in-place.
214214

215-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12"):
215+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
216216
session.skip("cpp implementation is not supported in python 3.11+")
217217

218218
constraints_path = str(
@@ -531,7 +531,7 @@ def docfx(session):
531531
def prerelease_deps(session, protobuf_implementation):
532532
"""Run all tests with prerelease versions of dependencies installed."""
533533

534-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12"):
534+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
535535
session.skip("cpp implementation is not supported in python 3.11+")
536536

537537
# Install all dependencies

samples/snippets/noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
92+
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
9393

9494
# Any default versions that should be ignored.
9595
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]

testing/constraints-3.13.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py
3+
# List all library dependencies and extras in this file.
4+
# Pin the version to the lower bound.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
6+
# Then this file should have google-cloud-foo==1.14.0
7+
google-api-core == 1.31.5
8+
google-auth==1.25.0
9+
google-cloud-bigquery==3.3.6
10+
google-cloud-bigquery-storage == 2.0.0
11+
grpcio == 1.47.0
12+
pyarrow == 3.0.0
13+
sqlalchemy==1.4.16

0 commit comments

Comments
 (0)