-
Notifications
You must be signed in to change notification settings - Fork 711
Check that API package installs #34
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
Conversation
@@ -0,0 +1,12 @@ | |||
[tox] |
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.
Curious, given we will have other packages (e.g. opentelemetry-sdk) under this repo, do we want to have a single global tox, or a tox file per package?
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 don't know what best practises are here, but I'd imagine we will have quite some code/config duplication with multiple toxfiles 🤔 I think OpenCensus-python used nox, maybe that tool is better in this regard?
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.
From a conversation with @reyang: nox gives us a combined coverage report if we have branches that depend on python version, but tox made it easier to run tests in parallel on travis. We'll stick with tox and burn the coverage bridge when we come to it.
I don't know whether it'll be easier to have one or multiple tox files. It does make it easier now to have it under opentelemetry-api
since there's no code yet to check in the SDK.
@@ -1,12 +1,14 @@ | |||
[tox] | |||
skipsdist = True | |||
envlist = py37-lint, py37-mypy | |||
envlist = py{34,35,36,37}-unit, py37-lint, py37-mypy |
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.
If there is going to be multiple tox files, is the idea to have a different build per package? I think we need to define what makes sense in the project structure to "build differently".
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.
Still TBD, I don't have an opinion on this.
@@ -9,7 +9,7 @@ install: | |||
- pip install tox-travis | |||
|
|||
script: | |||
- tox | |||
- (cd opentelemetry-api; tox) |
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.
Just wondering, is this part of the WIP or are we only building what is inside the api package?
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.
We'll eventually build everything, for now only API has code to build.
…en-telemetry#34) * reorder compiler options * update target to ensure compilation does not alter generated code
WIP for now to test travis builds, don't merge this!