mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Consolidate the version string to reside in one central place to ease change making.
This commit is contained in:
parent
8344166fa1
commit
05c9482759
@ -90,7 +90,7 @@ if __name__ == '__main__':
|
|||||||
error('Invalid third line in ChangeLog.')
|
error('Invalid third line in ChangeLog.')
|
||||||
|
|
||||||
print 'Updating version in version files.'
|
print 'Updating version in version files.'
|
||||||
versionFiles = ('src/conf.py', 'scripts/supybot', 'setup.py')
|
versionFiles = ('src/version.py')
|
||||||
for fn in versionFiles:
|
for fn in versionFiles:
|
||||||
sh = 'perl -pi -e "s/^version\s*=.*/version = \'%s\'/" %s' % (v, fn)
|
sh = 'perl -pi -e "s/^version\s*=.*/version = \'%s\'/" %s' % (v, fn)
|
||||||
system(sh, 'Error changing version in %s' % fn)
|
system(sh, 'Error changing version in %s' % fn)
|
||||||
|
@ -66,6 +66,8 @@ import supybot.utils as utils
|
|||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.questions as questions
|
import supybot.questions as questions
|
||||||
|
|
||||||
|
from supybot.version import version
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
@ -126,7 +128,6 @@ 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.83.4.1+git+fr3'
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
||||||
version='Supybot %s' % version)
|
version='Supybot %s' % version)
|
||||||
|
3
setup.py
3
setup.py
@ -47,6 +47,8 @@ import glob
|
|||||||
import shutil
|
import shutil
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
from src.version import version
|
||||||
|
|
||||||
plugins = [s for s in os.listdir('plugins') if
|
plugins = [s for s in os.listdir('plugins') if
|
||||||
os.path.exists(os.path.join('plugins', s, 'plugin.py'))]
|
os.path.exists(os.path.join('plugins', s, 'plugin.py'))]
|
||||||
|
|
||||||
@ -124,7 +126,6 @@ for plugin in plugins:
|
|||||||
if os.path.exists(locale_path):
|
if os.path.exists(locale_path):
|
||||||
package_data.update({locale_name: ['locale/'+s for s in os.listdir(locale_path)]})
|
package_data.update({locale_name: ['locale/'+s for s in os.listdir(locale_path)]})
|
||||||
|
|
||||||
version = '0.83.4.1+git+fr3'
|
|
||||||
setup(
|
setup(
|
||||||
# Metadata
|
# Metadata
|
||||||
name='supybot',
|
name='supybot',
|
||||||
|
@ -42,7 +42,7 @@ _ = PluginInternationalization()
|
|||||||
###
|
###
|
||||||
# version: This should be pretty obvious.
|
# version: This should be pretty obvious.
|
||||||
###
|
###
|
||||||
version = '0.83.4.1+git+fr3'
|
from supybot.version import version
|
||||||
|
|
||||||
###
|
###
|
||||||
# *** The following variables are affected by command-line options. They are
|
# *** The following variables are affected by command-line options. They are
|
||||||
|
3
src/version.py
Normal file
3
src/version.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
|
them once."""
|
||||||
|
version = '0.83.4.1+limnoria'
|
Loading…
Reference in New Issue
Block a user