##// END OF EJS Templates
Commiting fixes for running our test suite using trial and nose....
Commiting fixes for running our test suite using trial and nose. We are moving towards a model that allows trial and nose to each run different parts of our test suite. I have added __test__ = {} to modules that nose should skip. I have added new decorators that trial can use to skip tests. See this ticket for more information: https://bugs.launchpad.net/bugs/362142

File last commit:

r1527:8271f193
r1963:c3537344
Show More
make_tarball.py
36 lines | 797 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Simple script to create a tarball with proper bzr version info.
"""
import os,sys,shutil
basever = '0.9.0'
def oscmd(c):
print ">",c
s = os.system(c)
if s:
print "Error",s
sys.exit(s)
def verinfo():
out = os.popen('bzr version-info')
pairs = (l.split(':',1) for l in out)
d = dict(((k,v.strip()) for (k,v) in pairs))
return d
basename = 'ipython'
#tarname = '%s.r%s.tgz' % (basename, ver)
oscmd('python update_revnum.py')
ver = verinfo()
if ver['branch-nick'] == 'ipython':
tarname = 'ipython-%s.bzr.r%s.tgz' % (basever, ver['revno'])
else:
tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'],
ver['branch-nick'])
oscmd('bzr export ' + tarname)