chore: avoid duplicating pins of grpcio in noxfile (#246)
Rely on the pins in 'setup.py' as the Source of Truth.
See https://github.com/googleapis/python-api-core/pull/234#pullrequestreview-724669326
diff --git a/noxfile.py b/noxfile.py
index a8f464e..84470f5 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -80,8 +80,8 @@
)
# Install all test dependencies, then install this package in-place.
- session.install("mock", "pytest", "pytest-cov", "grpcio >= 1.0.2")
- session.install("-e", ".", "-c", constraints_path)
+ session.install("mock", "pytest", "pytest-cov")
+ session.install("-e", ".[grpc]", "-c", constraints_path)
pytest_args = [
"python",
@@ -124,7 +124,7 @@
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
# Install grpcio-gcp
- session.install("grpcio-gcp", "-c", constraints_path)
+ session.install("-e", ".[grpcgcp]", "-c", constraints_path)
default(session)
@@ -141,9 +141,7 @@
@nox.session(python="3.6")
def pytype(session):
"""Run type-checking."""
- session.install(
- ".", "grpcio >= 1.8.2", "grpcio-gcp >= 0.2.2", "pytype >= 2019.3.21"
- )
+ session.install(".[grpc, grpcgcp]", "pytype >= 2019.3.21")
session.run("pytype")
@@ -163,8 +161,7 @@
def docs(session):
"""Build the docs for this library."""
- session.install(".", "grpcio >= 1.8.2", "grpcio-gcp >= 0.2.2")
- session.install("-e", ".")
+ session.install("-e", ".[grpc, grpcgcp]")
session.install("sphinx==4.0.1", "alabaster", "recommonmark")
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)