Skip to content

Commit 4bb7b53

Browse files
committed
add placeholder session for core_deps_from_source
1 parent fc0260f commit 4bb7b53

1 file changed

Lines changed: 6 additions & 82 deletions

File tree

packages/google-cloud-pubsub/noxfile.py

Lines changed: 6 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -447,88 +447,12 @@ def docfx(session):
447447
)
448448

449449

450-
@nox.session(python="3.14")
450+
@nox.session(python=DEFAULT_PYTHON_VERSION)
451451
@nox.parametrize(
452452
"protobuf_implementation",
453-
["python", "upb", "cpp"],
453+
["python", "upb"],
454454
)
455-
def prerelease_deps(session, protobuf_implementation):
456-
"""Run all tests with prerelease versions of dependencies installed."""
457-
458-
if protobuf_implementation == "cpp" and session.python in (
459-
"3.11",
460-
"3.12",
461-
"3.13",
462-
"3.14",
463-
):
464-
session.skip("cpp implementation is not supported in python 3.11+")
465-
466-
# Install all dependencies
467-
session.install("-e", ".[all, tests, tracing]")
468-
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
469-
session.install(*unit_deps_all)
470-
system_deps_all = (
471-
SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES
472-
)
473-
session.install(*system_deps_all)
474-
475-
# Because we test minimum dependency versions on the minimum Python
476-
# version, the first version we test with in the unit tests sessions has a
477-
# constraints file containing all dependencies and extras.
478-
with open(
479-
CURRENT_DIRECTORY
480-
/ "testing"
481-
/ f"constraints-{UNIT_TEST_PYTHON_VERSIONS[0]}.txt",
482-
encoding="utf-8",
483-
) as constraints_file:
484-
constraints_text = constraints_file.read()
485-
486-
# Ignore leading whitespace and comment lines.
487-
constraints_deps = [
488-
match.group(1)
489-
for match in re.finditer(
490-
r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE
491-
)
492-
]
493-
494-
session.install(*constraints_deps)
495-
496-
prerel_deps = [
497-
"protobuf",
498-
# dependency of grpc
499-
"six",
500-
"grpc-google-iam-v1",
501-
"googleapis-common-protos",
502-
"grpcio",
503-
"grpcio-status",
504-
"google-api-core",
505-
"google-auth",
506-
"proto-plus",
507-
"google-cloud-testutils",
508-
# dependencies of google-cloud-testutils"
509-
"click",
510-
]
511-
512-
for dep in prerel_deps:
513-
session.install("--pre", "--no-deps", "--upgrade", dep)
514-
515-
# Remaining dependencies
516-
other_deps = [
517-
"requests",
518-
]
519-
session.install(*other_deps)
520-
521-
# Print out prerelease package versions
522-
session.run(
523-
"python", "-c", "import google.protobuf; print(google.protobuf.__version__)"
524-
)
525-
session.run("python", "-c", "import grpc; print(grpc.__version__)")
526-
session.run("python", "-c", "import google.auth; print(google.auth.__version__)")
527-
528-
session.run(
529-
"py.test",
530-
"tests/unit",
531-
env={
532-
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,
533-
},
534-
)
455+
def core_deps_from_source(session, protobuf_implementation):
456+
"""Skipping until Pub/Sub migration is complete.
457+
"""
458+
session.skip("Skipping core_deps_from_source for google-cloud-pubsub.")

0 commit comments

Comments
 (0)