Skip to content

Commit

Permalink
build: ensure tracing dependencies are installed for tests (#134)
Browse files Browse the repository at this point in the history
* build: ensure tracing dependencies are installed for tests

* build: opentelemetry is not available for py2.7

Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Aug 21, 2020
1 parent b6b0348 commit 1513e7e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions noxfile.py
Expand Up @@ -67,7 +67,10 @@ def default(session):
# Install all test dependencies, then install this package in-place.
session.install("mock", "pytest", "pytest-cov")

session.install("-e", ".")
if session.python != "2.7":
session.install("-e", ".[tracing]")
else:
session.install("-e", ".")

# Run py.test against the unit tests.
session.run(
Expand Down Expand Up @@ -116,7 +119,10 @@ def system(session):
# virtualenv's dist-packages.
session.install("mock", "pytest")

session.install("-e", ".")
if session.python != "2.7":
session.install("-e", ".[tracing]")
else:
session.install("-e", ".")
session.install("-e", "test_utils/")

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

0 comments on commit 1513e7e

Please sign in to comment.