-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Parse pyro.__version__ and README.md in setup.py #557
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
|
|
||
| # Find pyro version. | ||
| for line in open('pyro/__init__.py'): | ||
| if line.startswith('__version__ = '): |
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.
Would pyro.__version__ not work here?
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.
This is avoided since the pyro module would requires setup.py would require pyro ...
Also text parsing is faster than loading all of pyro as is done in pyro/__init__.py.
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.
| version='0.1.1', | ||
| version=version, | ||
| description='A Python library for probabilistic modeling and inference', | ||
| long_description=long_description, |
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.
|
Ok, I'm ready to merge. I'd like to get this in before the 0.1.2 patch release so we can have a nice pypi page 😃 |
| [Getting Started](http://pyro.ai/examples) | [Documentation](http://docs.pyro.ai/) | [Contributing](CONTRIBUTING.md) | ||
| [Getting Started](http://pyro.ai/examples) | | ||
| [Documentation](http://docs.pyro.ai/) | | ||
| [Contributing](https://github.com/uber/pyro/blob/master/CONTRIBUTING.md) |
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.
changed this to an absolute link so it still works on pypi.python.org
|
@neerajprad would you mind merging this so I can rebase #553 ? |
|
Thanks! |
setup.pytopyro.__init__.pyso it is available aspyro.__version__. (This is common practice.)README.mdinsetup.pyso it can display on https://pypi.python.org/pypi/pyro-ppl (Also common practice)Tests cancelled after linting.