Skip to content
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

Add and expose at runtime in a standard format the __version__ attribute #27

Open
filipecosta90 opened this issue May 11, 2021 · 0 comments
Labels
x:quality Code-Quality related (performance, test, etc. -not directly affecting functionality)

Comments

@filipecosta90
Copy link

We should be able expose the package version at runtime via __version__ attribute while ensuring a single source of truth for version number.

Here's a discussion on how to standardize this info: https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package

Example of redistimeseries-py:

attribute
https://github.com/RedisTimeSeries/redistimeseries-py/blob/master/redistimeseries/_version.py

setup.py way of reading it:
https://github.com/RedisTimeSeries/redistimeseries-py/blob/master/setup.py#L8

@filipecosta90 filipecosta90 added the x:quality Code-Quality related (performance, test, etc. -not directly affecting functionality) label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:quality Code-Quality related (performance, test, etc. -not directly affecting functionality)
Projects
None yet
Development

No branches or pull requests

1 participant