Updated to separate the version in an easily-machine-replaceable variable.

This commit is contained in:
Jeremy Fincher 2004-10-01 04:21:28 +00:00
parent f63445d39d
commit efb9b80ab5
2 changed files with 4 additions and 2 deletions

View File

@ -120,6 +120,7 @@ def main():
log.info('Total CPU time taken: %s seconds.', user+system)
log.info('No more Irc objects, exiting.')
version = '0.80.0pre2'
if __name__ == '__main__':
###
# Options:
@ -130,7 +131,7 @@ if __name__ == '__main__':
# --connect (commands to run afterConnect)
# --config (configuration values)
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
version='supybot 0.80.0pre2')
version='supybot %s' % version)
parser.add_option('-P', '--profile', action='store_true', dest='profile',
help='enables profiling')
parser.add_option('-O', action='count', dest='optimize',

View File

@ -79,10 +79,11 @@ if clean:
print 'Couldn\'t remove former installation: %s' % e
sys.exit(-1)
version = '0.80.0pre2'
setup(
# Metadata
name='supybot',
version='0.80.0pre2',
version=version,
author='Jeremy Fincher',
url='http://supybot.sf.net/',
author_email='jemfinch@users.sf.net',