add version_info

Bug #614245 reported by Eike on 2010-08-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeode
Wishlist
Unassigned

Bug Description

Add a (named) tuple "version_info" which contains the the version information. The specification is below (taken from the Python documentation of "sys.version_info"):

The "VERSION" string should be generated from the "version_info". It should be investigated if ``setuptools`` understand the format of "version_info", and if this removes the problems that rpm thinks that "0.4.0.alpha.0" is later than "0.4.0.final.0"

version_info
---------------

A tuple containing the five components of the version number: major, minor, micro, releaselevel, and serial. All values except releaselevel are integers; the release level is 'alpha', 'beta', 'candidate', or 'final'. The version_info value corresponding to the Python version 2.0 is (2, 0, 0, 'final', 0). The components can also be accessed by name, so sys.version_info[0] is equivalent to sys.version_info.major and so on.
New in version 2.0.

https://sourceforge.net/apps/trac/freeode/ticket/39

Eike (eike-welk) on 2010-08-06
tags: added: interpreter
Changed in freeode:
importance: Undecided → Wishlist
Eike (eike-welk) on 2011-06-10
description: updated
Eike (eike-welk) on 2012-02-29
Changed in freeode:
milestone: none → 0.4.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers