Skip to content

Commit

Permalink
Demote test_utils from LOCAL_DEPS in noxfile
Browse files Browse the repository at this point in the history
The test_utils dependency is only nedeed for test sessions, but not
for some other nox sessions such as "lint" and "docs".
  • Loading branch information
plamut committed Oct 22, 2019
1 parent 0e0fcfb commit 4322bd7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bigquery/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
import nox


LOCAL_DEPS = (
os.path.join("..", "api_core[grpc]"),
os.path.join("..", "core"),
os.path.join("..", "test_utils"),
)
LOCAL_DEPS = (os.path.join("..", "api_core[grpc]"), os.path.join("..", "core"))

BLACK_PATHS = ("docs", "google", "samples", "tests", "noxfile.py", "setup.py")

Expand All @@ -42,6 +38,7 @@ def default(session):
for local_dep in LOCAL_DEPS:
session.install("-e", local_dep)

session.install("-e", os.path.join("..", "test_utils"))
dev_install = ".[all]"
session.install("-e", dev_install)

Expand Down Expand Up @@ -88,6 +85,7 @@ def system(session):
for local_dep in LOCAL_DEPS:
session.install("-e", local_dep)
session.install("-e", os.path.join("..", "storage"))
session.install("-e", os.path.join("..", "test_utils"))
session.install("-e", ".[all]")

# IPython does not support Python 2 after version 5.x
Expand Down Expand Up @@ -115,6 +113,7 @@ def snippets(session):
for local_dep in LOCAL_DEPS:
session.install("-e", local_dep)
session.install("-e", os.path.join("..", "storage"))
session.install("-e", os.path.join("..", "test_utils"))
session.install("-e", ".[all]")

# Run py.test against the snippets tests.
Expand Down

0 comments on commit 4322bd7

Please sign in to comment.