2 """Distutils installer for testtools."""
4 from distutils
.core
import setup
6 version
= '.'.join(str(component
) for component
in testtools
.__version
__[0:3])
7 phase
= testtools
.__version
__[3]
9 import bzrlib
.workingtree
10 t
= bzrlib
.workingtree
.WorkingTree
.open_containing(__file__
)[0]
12 # No idea what the next version will be
13 version
= 'next-%s' % t
.branch
.revno()
15 # Preserve the version number but give it a revno prefix
16 version
= version
+ '~%s' % t
.branch
.revno()
18 setup(name
='testtools',
19 author
='Jonathan M. Lange',
20 author_email
='jml+testtools@mumak.net',
21 url
='https://launchpad.net/testtools',
22 description
=('Extensions to the Python standard library unit testing '
25 packages
=['testtools', 'testtools.testresult', 'testtools.tests'])