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.
Usually, I run the following command to get the package version:
However, the
__init__
file doesn't have an entry for this value. There should be a__version__
variable as described inpep8
. But, if you are looking for a Single-sourcing the package version in poetry, you can add__version__
in__init__
and use tools likebump2version
to update versions across multiple files as i did here.