Skip to content

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

Open
@filipecosta90

Description

@filipecosta90

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    x:qualityCode-Quality related (performance, test, etc. -not directly affecting functionality)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions