Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 209] New - Python standard version information

pysvn
Discussion topic

Back to topic list

[Issue 209] New - Python standard version information

Author steve_barnes
Full name Steve Barnes
Date 2017-01-06 17:11:49 PST
Message http://pysvn.tigris.​org/issues/show_bug.​cgi?id=209
                 Issue #|209
                 Summary|Python standard version information
               Component|pysvn
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|extension
             Assigned to|barryscott
             Reported by|steve_barnes






------- Additional comments from steve_barnes at tigris dot org Fri Jan 6 05:23:50 -0800 2017 -------
The long standing standard for versioning libraries it to have a __version__
member containing a version string - pysvn currently has a version member which
returns a tupple such as (1, 9, 3, 1884) and a svn_api_version which returns (1,
9, 4, ' (r1740329)').

A two line change can permit this if __version__ was created by default as:

__version__ = '%d.%d.%d (svn %d)' % version
__version__ += ' SVN API %d.%d.%d %s' % svn_api_version

The version information would be where many python programmers expect to find it
and would return "1.9.3 (svn 1884) SVN API 1.9.4 (r1740329)"

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

[Issue 209] New - Python standard version information steve_barnes Steve Barnes 2017-01-06 17:11:49 PST
     [Issue 209] Python standard version information barryscott Barry Scott 2017-01-08 04:24:15 PST
Messages per page: