Skip to content

Commit

Permalink
build: pin opentelemetry dependencies (#133)
Browse files Browse the repository at this point in the history
The unit tests on master are failing due to the 0.13b0 release of opentelemetry. This PR pins the dependency to the latest working version.
  • Loading branch information
larkee committed Aug 17, 2020
1 parent 6851bb8 commit b6b0348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 0 additions & 12 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ def default(session):
# Install all test dependencies, then install this package in-place.
session.install("mock", "pytest", "pytest-cov")

# Install opentelemetry dependencies if python3+
if session.python != "2.7":
session.install(
"opentelemetry-api", "opentelemetry-sdk", "opentelemetry-instrumentation"
)

session.install("-e", ".")

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

# Install opentelemetry dependencies if not 2.7
if session.python != "2.7":
session.install(
"opentelemetry-api", "opentelemetry-sdk", "opentelemetry-instrumentation"
)

session.install("-e", ".")
session.install("-e", "test_utils/")

Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
"google-cloud-core >= 1.4.1, < 2.0dev",
"grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
]
extras = {}
extras = {
"tracing": [
"opentelemetry-api==0.11b0",
"opentelemetry-sdk==0.11b0",
"opentelemetry-instrumentation==0.11b0",
]
}


# Setup boilerplate below this line.
Expand Down

0 comments on commit b6b0348

Please sign in to comment.