apache / libcloud

Apache Libcloud is a Python library which hides differences between different cloud provider APIs and allows you to manage different cloud resources through a unified and easy to use API.
https://libcloud.apache.org
Apache License 2.0
2.04k stars 925 forks source link

Machine-parseable version number #1739

Open danielshahaf opened 2 years ago

danielshahaf commented 2 years ago

Feature Request

Please consider adding a tuple version of libcloud.__version__, so library consumers would be able to easily do comparisons and so on. Compare sys.version (string) and sys.version_info (named tuple).

aarushisoni commented 2 years ago

Hi my name is Aarushi Soni . I want to contribute to this issue . Is this issue still open ? I am first time contributor . Please guide me through this process.

Kami commented 2 years ago

@danielshahaf Thanks for submitting this feature request.

This request seems reasonable to me.

Do you happen to know how other libraries handle that? Most of the libraries I'm aware of just set <package>.__version__ to the version string in the same way Libcloud does it.

Is there some common / preferred way of setting a version tuple, e.g. <package>.__version__tuple__ or similar?