3
# Helper script to make it easier to maintain the tests run by
4
# $ python setup.py test
6
# Run this script when changing the entries of tests at the end of
7
# setup.cfg. This script will only change the line
13
for line in open('setup.cfg'):
14
if line.startswith('# test '):
15
tests.append(line[6:].strip())
19
for line in open('setup.cfg'):
20
if line.startswith('tests ='):
21
out.append('tests = %s\n' % ','.join(tests))
26
fo = open('setup.cfg', 'w')
27
fo.write(''.join(out))