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

No way to get the value of the package version. #334

Open
wiseaidev opened this issue Aug 7, 2022 · 0 comments
Open

No way to get the value of the package version. #334

wiseaidev opened this issue Aug 7, 2022 · 0 comments

Comments

@wiseaidev
Copy link
Contributor

wiseaidev commented Aug 7, 2022

Usually, I run the following command to get the package version:

python3 -c 'from redis_om import __version__; print(__version__)'

However, the __init__ file doesn't have an entry for this value. There should be a __version__ variable as described in pep8. But, if you are looking for a Single-sourcing the package version in poetry, you can add __version__ in __init__ and use tools like bump2version to update versions across multiple files as i did here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant