Thread: python - lo: Add PG version utility.

python - lo: Add PG version utility.

From
jwp@pgfoundry.org (James William Pye)
Date:
Log Message:
-----------
Add PG version utility. Parses PG versions to a sys.version_info style tuple and
can output in XML, sh, or python(tuple.__repr__) formats.
(/be will probably depend on this instead of its internal version parser)

Provides command line interface as well:
$ python -m postgresql/utility/version 8.1devel
PG_VERSION_MAJOR=8
PG_VERSION_MINOR=1
PG_VERSION_PATCH=0
PG_VERSION_STATE=devel
PG_VERSION_LEVEL=0

Added Files:
-----------
    lo/postgresql/utility:
        version.py (r1.1)

(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/lo/postgresql/utility/version.py?rev=1.1&content-type=text/x-cvsweb-markup)