redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.12k stars 112 forks source link

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

Open wiseaidev opened 2 years ago

wiseaidev commented 2 years ago

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.