AgentJay / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

version info on source code #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It is great that webapp2.py is a single file and it makes it easy to include in 
projects wihtout installing it... but it gets hard to know which version I am 
using. 

It would be nice if you include something like into webapp2.py:

__version__ = "2.3.0"

Original issue reported on code.google.com by schettino72@gmail.com on 8 Feb 2012 at 4:20

GoogleCodeExporter commented 8 years ago
It is here:

http://code.google.com/p/webapp-improved/source/browse/webapp2.py#57

Original comment by rodrigo.moraes on 8 Feb 2012 at 8:24

GoogleCodeExporter commented 8 years ago
ooops. sorry I missed that. I was expecting it in the top of the file. 

pep8 (http://www.python.org/dev/peps/pep-0008/) mentions it in case it is done 
by subversion... I guess it still applies even if it is manually edited.

Version Bookkeeping

    If you have to have Subversion, CVS, or RCS crud in your source file, do
    it as follows.

        __version__ = "$Revision: 00f8e3bb1197 $"
        # $Source$

    These lines should be included after the module's docstring, before any
    other code, separated by a blank line above and below.

Original comment by schettino72@gmail.com on 8 Feb 2012 at 9:55

GoogleCodeExporter commented 8 years ago
I used to have that when I used Subversion. Currently the version number is 
updated when they are tagged in Mercurial. A new tag is a new release and a new 
version number.

Original comment by rodrigo.moraes on 8 Feb 2012 at 7:33