On Tue, 2003-02-11 at 08:29, Geoffrey Talvola wrote:
> Stuart Donaldson [mailto:[EMAIL PROTECTED]] wrote:
> > In preparing the 0.8 release, rolling the version numbers in 
> > the release 
> > was one of the painful parts, because of all the places that 
> > they occur. 
> >  I created a script to do this, but it was fairly specific.  
> > It would be 
> > nice to have a more general solution.
<snip>
> > This could be automagically fixed up by a script prior to 
> > doing a release.
> 
> Good idea.  Aren't there also release numbers that show up in Python source,
> too?  At the very least those could be tagged with a comment like
> ##version## so that they could be grep'ed easily.

Version numbers don't need to be hardcoded in the python code.  There is
an example in Application.initVersions():

        from MiscUtils.PropertiesObject import PropertiesObject
        props = PropertiesObject(os.path.join(self.webwarePath(),
'Properties.py'))
        self._webwareVersion = props['version']
        self._webwareVersionString = props['versionString']

This retrieves the version both as a tuple (e.g. 0,8,0) and as a string
from the Webware/Properties.py file.  I remember fixing up a few of
these last fall; we should continue to fix these wherever possible.

-- 
Jason D. Hildebrand
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to