enthought / enthought/ets

Introduce version info as a tuple of int

Open
#44 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
33
Forks
10
PR merge metrics
No merged PRs in 30d

Description

ETS packages have `__version__` as a string, e.g. `"4.5.0"`. That is fine and is an expected format.

But sometimes we want to use the version information for things like skipping a test for a specific version range (e.g. https://github.com/enthought/pyface/pull/656), then we have to resort to parsing the version string. It is not hard to do, but it would have been easier if a `version_info` or `__version_info__` as a tuple of int is provided by the package already along with `__version__`.

e.g.
```
__version__ = "6.1.0"
__version_info__ = (6, 1, 0)
```

A similar topic was discussed a long time ago: https://github.com/enthought/distributed-array-protocol/issues/16

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.