Skip to content

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

Open
@wiseaidev

Description

@wiseaidev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions