mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Updated to separate the version in an easily-machine-replaceable variable.
This commit is contained in:
parent
f63445d39d
commit
efb9b80ab5
@ -120,6 +120,7 @@ def main():
|
|||||||
log.info('Total CPU time taken: %s seconds.', user+system)
|
log.info('Total CPU time taken: %s seconds.', user+system)
|
||||||
log.info('No more Irc objects, exiting.')
|
log.info('No more Irc objects, exiting.')
|
||||||
|
|
||||||
|
version = '0.80.0pre2'
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
###
|
###
|
||||||
# Options:
|
# Options:
|
||||||
@ -130,7 +131,7 @@ if __name__ == '__main__':
|
|||||||
# --connect (commands to run afterConnect)
|
# --connect (commands to run afterConnect)
|
||||||
# --config (configuration values)
|
# --config (configuration values)
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
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',
|
parser.add_option('-P', '--profile', action='store_true', dest='profile',
|
||||||
help='enables profiling')
|
help='enables profiling')
|
||||||
parser.add_option('-O', action='count', dest='optimize',
|
parser.add_option('-O', action='count', dest='optimize',
|
||||||
|
3
setup.py
3
setup.py
@ -79,10 +79,11 @@ if clean:
|
|||||||
print 'Couldn\'t remove former installation: %s' % e
|
print 'Couldn\'t remove former installation: %s' % e
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
version = '0.80.0pre2'
|
||||||
setup(
|
setup(
|
||||||
# Metadata
|
# Metadata
|
||||||
name='supybot',
|
name='supybot',
|
||||||
version='0.80.0pre2',
|
version=version,
|
||||||
author='Jeremy Fincher',
|
author='Jeremy Fincher',
|
||||||
url='http://supybot.sf.net/',
|
url='http://supybot.sf.net/',
|
||||||
author_email='jemfinch@users.sf.net',
|
author_email='jemfinch@users.sf.net',
|
||||||
|
Loading…
Reference in New Issue
Block a user