Skip to content

Commit c6deeb3

Browse files
chore(python): update .kokoro/requirements.txt (#141)
Source-Link: googleapis/synthtool@703554a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 23d88d9 commit c6deeb3

File tree

10 files changed

+512
-32
lines changed

10 files changed

+512
-32
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c
17-
# created: 2022-07-05T18:31:20.838186805Z
16+
digest: sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212
- name: Setup Python
13-
uses: actions/setup-python@v3
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.10"
1616
- name: Install nox
@@ -26,7 +26,7 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v3
2828
- name: Setup Python
29-
uses: actions/setup-python@v3
29+
uses: actions/setup-python@v4
3030
with:
3131
python-version: "3.10"
3232
- name: Install nox

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212
- name: Setup Python
13-
uses: actions/setup-python@v3
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.10"
1616
- name: Install nox

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v3
1515
- name: Setup Python
16-
uses: actions/setup-python@v3
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: ${{ matrix.python }}
1919
- name: Install nox
@@ -39,7 +39,7 @@ jobs:
3939
- name: Checkout
4040
uses: actions/checkout@v3
4141
- name: Setup Python
42-
uses: actions/setup-python@v3
42+
uses: actions/setup-python@v4
4343
with:
4444
python-version: "3.10"
4545
- name: Install coverage

.kokoro/publish-docs.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ export PYTHONUNBUFFERED=1
2121
export PATH="${HOME}/.local/bin:${PATH}"
2222

2323
# Install nox
24-
python3 -m pip install --user --upgrade --quiet nox
24+
python3 -m pip install --require-hashes -r .kokoro/requirements.txt
2525
python3 -m nox --version
2626

2727
# build docs
2828
nox -s docs
2929

30-
python3 -m pip install --user gcp-docuploader
31-
3230
# create metadata
3331
python3 -m docuploader create-metadata \
3432
--name=$(jq --raw-output '.name // empty' .repo-metadata.json) \

.kokoro/release.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
set -eo pipefail
1717

1818
# Start the releasetool reporter
19-
python3 -m pip install gcp-releasetool
19+
python3 -m pip install --require-hashes -r github/python-db-dtypes-pandas/.kokoro/requirements.txt
2020
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
2121

22-
# Ensure that we have the latest versions of Twine, Wheel, and Setuptools.
23-
python3 -m pip install --upgrade twine wheel setuptools
24-
2522
# Disable buffering, so that the logs stream through.
2623
export PYTHONUNBUFFERED=1
2724

.kokoro/requirements.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
gcp-docuploader
2+
gcp-releasetool
3+
importlib-metadata
4+
typing-extensions
5+
twine
6+
wheel
7+
setuptools
8+
nox

.kokoro/requirements.txt

Lines changed: 472 additions & 0 deletions
Large diffs are not rendered by default.

noxfile.py

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ def unit_prerelease(session):
285285
def install_systemtest_dependencies(session, *constraints):
286286

287287
# Use pre-release gRPC for system tests.
288-
session.install("--pre", "grpcio")
288+
# Exclude version 1.49.0rc1 which has a known issue.
289+
# See https://github.com/grpc/grpc/pull/30642
290+
session.install("--pre", "grpcio!=1.49.0rc1")
289291

290292
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)
291293

@@ -430,7 +432,8 @@ def prerelease_deps(session):
430432

431433
# Install all dependencies
432434
session.install("-e", ".[all, tests, tracing]")
433-
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
435+
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
436+
session.install(*unit_deps_all)
434437
system_deps_all = (
435438
SYSTEM_TEST_STANDARD_DEPENDENCIES
436439
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -459,18 +462,13 @@ def prerelease_deps(session):
459462

460463
session.install(*constraints_deps)
461464

462-
if os.path.exists("samples/snippets/requirements.txt"):
463-
session.install("-r", "samples/snippets/requirements.txt")
464-
465-
if os.path.exists("samples/snippets/requirements-test.txt"):
466-
session.install("-r", "samples/snippets/requirements-test.txt")
467-
468465
prerel_deps = [
469466
"protobuf",
470467
# dependency of grpc
471468
"six",
472469
"googleapis-common-protos",
473-
"grpcio",
470+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
471+
"grpcio!=1.49.0rc1",
474472
"grpcio-status",
475473
"google-api-core",
476474
"proto-plus",
@@ -501,11 +499,19 @@ def prerelease_deps(session):
501499
system_test_folder_path = os.path.join("tests", "system")
502500

503501
# Only run system tests if found.
504-
if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
505-
session.run("py.test", "tests/system")
506-
507-
snippets_test_path = os.path.join("samples", "snippets")
508-
509-
# Only run samples tests if found.
510-
if os.path.exists(snippets_test_path):
511-
session.run("py.test", "samples/snippets")
502+
if os.path.exists(system_test_path):
503+
session.run(
504+
"py.test",
505+
"--verbose",
506+
f"--junitxml=system_{session.python}_sponge_log.xml",
507+
system_test_path,
508+
*session.posargs,
509+
)
510+
if os.path.exists(system_test_folder_path):
511+
session.run(
512+
"py.test",
513+
"--verbose",
514+
f"--junitxml=system_{session.python}_sponge_log.xml",
515+
system_test_folder_path,
516+
*session.posargs,
517+
)

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
":preserveSemverRanges",
66
":disableDependencyDashboard"
77
],
8-
"ignorePaths": [".pre-commit-config.yaml"],
8+
"ignorePaths": [".pre-commit-config.yaml", ".kokoro/requirements.txt"],
99
"pip_requirements": {
1010
"fileMatch": ["requirements-test.txt", "samples/[\\S/]*constraints.txt", "samples/[\\S/]*constraints-test.txt"]
1111
}

0 commit comments

Comments
 (0)