add version_info

Bug #614245 reported by Eike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeode
New
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

Tags: interpreter
Eike (eike-welk)
tags: added: interpreter
Changed in freeode:
importance: Undecided → Wishlist
Eike (eike-welk)
description: updated
Eike (eike-welk)
Changed in freeode:
milestone: none → 0.4.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.