Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Conversation

@c24t
Copy link
Member

@c24t c24t commented Oct 26, 2018

Fixes #296 by adding a top-level version file and removing hardcoded version numbers in the stackdriver and ocagent exporters.

I'm execing the version file in setup.py to avoid importing the opencensus package during setup. This isn't strictly necessary now, but I think this solution is simpler and likely to save us some headaches in the future.

cc @lmolkova

@c24t c24t self-assigned this Oct 26, 2018
@c24t c24t requested a review from liyanhui1228 October 26, 2018 20:15
Copy link

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Could you please also test the exact ocagent exporter version? It was only checked for not being empty here:

https://github.com/census-instrumentation/opencensus-python/blob/master/tests/unit/trace/exporters/ocagent/test_trace_exporter.py#L82

But now we can check that is actually correct.

@c24t
Copy link
Member Author

c24t commented Oct 26, 2018

Thanks @lmolkova, I updated the test.

@c24t c24t merged commit fc42d70 into census-instrumentation:master Oct 26, 2018
@c24t c24t deleted the add-version-file branch October 26, 2018 23:30
c24t added a commit to c24t/opencensus-python that referenced this pull request Oct 29, 2018
c24t added a commit that referenced this pull request Oct 30, 2018
@c24t c24t mentioned this pull request Nov 16, 2018
c24t added a commit to c24t/opencensus-python that referenced this pull request Dec 10, 2018
Pick up census-instrumentation#369 to replace hardcoded version with __version__ file and bump
the version number.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants