Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c773864

Browse filesBrowse files
authored
Merge branch 'main' into postgresql_dialect
2 parents e112a1d + 1493040 commit c773864
Copy full SHA for c773864

File tree

Expand file treeCollapse file tree

4 files changed

+80
-2
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+80
-2
lines changed

‎.github/.OwlBot.lock.yaml

Copy file name to clipboardExpand all lines: .github/.OwlBot.lock.yaml
+2-2Lines changed: 2 additions & 2 deletions
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:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32
17-
# created: 2022-05-05T22:08:23.383410683Z
16+
digest: sha256:65e656411895bff71cffcae97246966460160028f253c2e45b7a25d805a5b142
17+
# created: 2022-06-12T13:11:45.905884945Z
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "prerelease_deps"
7+
}

‎.kokoro/presubmit/prerelease-deps.cfg

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "prerelease_deps"
7+
}

‎noxfile.py

Copy file name to clipboardExpand all lines: noxfile.py
+64Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,67 @@ def docfx(session):
355355
os.path.join("docs", ""),
356356
os.path.join("docs", "_build", "html", ""),
357357
)
358+
359+
360+
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
361+
def prerelease_deps(session):
362+
"""Run all tests with prerelease versions of dependencies installed."""
363+
364+
prerel_deps = [
365+
"protobuf",
366+
"googleapis-common-protos",
367+
"google-auth",
368+
"grpcio",
369+
"grpcio-status",
370+
"google-api-core",
371+
"proto-plus",
372+
# dependencies of google-auth
373+
"cryptography",
374+
"pyasn1",
375+
]
376+
377+
for dep in prerel_deps:
378+
session.install("--pre", "--no-deps", "--upgrade", dep)
379+
380+
# Remaining dependencies
381+
other_deps = ["requests"]
382+
session.install(*other_deps)
383+
384+
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
385+
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES)
386+
387+
# Because we test minimum dependency versions on the minimum Python
388+
# version, the first version we test with in the unit tests sessions has a
389+
# constraints file containing all dependencies and extras.
390+
with open(
391+
CURRENT_DIRECTORY
392+
/ "testing"
393+
/ f"constraints-{UNIT_TEST_PYTHON_VERSIONS[0]}.txt",
394+
encoding="utf-8",
395+
) as constraints_file:
396+
constraints_text = constraints_file.read()
397+
398+
# Ignore leading whitespace and comment lines.
399+
deps = [
400+
match.group(1)
401+
for match in re.finditer(
402+
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
403+
)
404+
]
405+
406+
# Don't overwrite prerelease packages.
407+
deps = [dep for dep in deps if dep not in prerel_deps]
408+
# We use --no-deps to ensure that pre-release versions aren't overwritten
409+
# by the version ranges in setup.py.
410+
session.install(*deps)
411+
session.install("--no-deps", "-e", ".[all]")
412+
413+
# Print out prerelease package versions
414+
session.run(
415+
"python", "-c", "import google.protobuf; print(google.protobuf.__version__)"
416+
)
417+
session.run("python", "-c", "import grpc; print(grpc.__version__)")
418+
419+
session.run("py.test", "tests/unit")
420+
session.run("py.test", "tests/system")
421+
session.run("py.test", "samples/snippets")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.