-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix setup for ext packages. #122
Fix setup for ext packages. #122
Conversation
Previously the wheels would contain the metadata but not the actual code.
@@ -30,8 +30,8 @@ commands_pre = | |||
test: pip install -e {toxinidir}/opentelemetry-api | |||
test-sdk: pip install -e {toxinidir}/opentelemetry-sdk | |||
ext: pip install -e {toxinidir}/opentelemetry-api | |||
wsgi: pip install -e {toxinidir}/ext/opentelemetry-ext-wsgi | |||
http-requests: pip install -e {toxinidir}/ext/opentelemetry-ext-http-requests | |||
wsgi: pip install {toxinidir}/ext/opentelemetry-ext-wsgi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to remove -e
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is done to expose the packaging problem. With the -e
flag enabled, the tests will pass regardless of what appears in the package since all tests are just pointing at the existing directory structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense. would be great to verify and comment as such, this type of configuration can get really hard to understand without some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ln32 is using -e
, what's the difference here?
ext: pip install -e {toxinidir}/opentelemetry-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One build without -e
should be enough to detect the problem, was my thinking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see this is a different package. You are right, we could remove the -e
there too to increase coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment and removed the -e
also from the other pip calls (but only in the test environments, lint keeps it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
I'm going ahead and merging this, I hope I addressed your comments properly, @reyang. |
Previously the wheels would contain the metadata but not the actual
code.