-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce version info as a tuple of int #44
Comments
sounds like https://docs.python.org/3/library/sys.html#sys.version and https://docs.python.org/3/library/sys.html#sys.version_info. Additionally, |
Note that |
We have had release-candidate releases of Traits - the We'd also ideally want the Having said that, version comparison becomes very messy if you want to include the |
I'd drop the |
The other part of this is that where possible we should do direct tests for the thing we care about rather than using version numbers as a proxy. For example, prefer a |
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. enthought/pyface#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.
A similar topic was discussed a long time ago: enthought/distributed-array-protocol#16
The text was updated successfully, but these errors were encountered: