Single sourcing the package version#3220
Single sourcing the package version#3220pcmoritz merged 1 commit intoray-project:masterfrom xutianming:master
Conversation
|
Test PASSed. |
|
This seems to cause some issues, e.g., for our linting build in Travis. How about we do something like what Celery does? E.g., they have the version string in Then in https://github.com/celery/celery/blob/9559045b8fd5cb4d6a99b02c39aff77ab537f234/setup.py#L116-L129 Ours can be simpler though. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
What do these changes do?
Single sourcing the package version in setup.py and retrieve the version using package_resources in init.py.
Currently, package version strings are hard-coded in both setup.py and init.py. It leads to potential inconsistency.