[Spambayes] Version information

Mark Hammond mhammond at skippinet.com.au
Tue May 27 09:54:10 EDT 2003


I'm wondering how we can store version information that applications can
read to give some idea of what is running.

I propose a single file, spambayes\Version.py.  This would be a file in the
spirit of Options.py - ie, an "ini" file embedded in a Python script.  The
embedded section would look like:

"""
# Version information for spambayes
[Default]
# Non app specific - changed when "spambayes\*" changes significantly
Version=0.2 # Simple major.minor
Description=SpamBayes Beta1
Date=May 2003
Full Description=%(Description)s, version %(Version)s (%(Date)s)

# Apps can define their own sections
[Outlook]
Binary=003
Description=SpamBayes Outlook Plugin

[pop3proxy]
# Whatever makes sense, etc
"""

And there would be one or two function to extract a useful version string.

Other options include a file per directory, or a simple file with a single
line, or no centralised verison information at all.  I'm not bothered, but
this seems the best compromise to me.  Binaries etc that are clever can use
this info at build time, while CVS versions of the apps could do whatever
they like.

Thoughts?

Mark.




More information about the Spambayes mailing list