diff -r 9b4de34ad394 -r 97095348b3ee cubicweb/devtools/devctl.py --- a/cubicweb/devtools/devctl.py Thu Feb 11 21:59:49 2016 +0100 +++ b/cubicweb/devtools/devctl.py Wed Feb 17 13:45:34 2016 +0100 @@ -44,6 +44,11 @@ from cubicweb.server.serverconfig import ServerConfiguration +STD_BLACKLIST = set(STD_BLACKLIST) +STD_BLACKLIST.add('.tox') +STD_BLACKLIST.add('test') + + class DevConfiguration(ServerConfiguration, WebConfiguration): """dummy config to get full library schema and appobjects for a cube or for cubicweb (without a home) @@ -453,7 +458,7 @@ schemapotstream.close() print('TAL', end=' ') tali18nfile = osp.join(tempdir, 'tali18n.py') - ptfiles = find('.', ('.py', '.pt'), blacklist=STD_BLACKLIST+('test',)) + ptfiles = find('.', ('.py', '.pt'), blacklist=STD_BLACKLIST) extract_from_tal(ptfiles, tali18nfile) print('Javascript') jsfiles = [jsfile for jsfile in find('.', '.js') @@ -468,7 +473,7 @@ potfiles.append(tmppotfile) print('-> creating cube-specific catalog') tmppotfile = osp.join(tempdir, 'generated.pot') - cubefiles = find('.', '.py', blacklist=STD_BLACKLIST+('test',)) + cubefiles = find('.', '.py', blacklist=STD_BLACKLIST) cubefiles.append(tali18nfile) cmd = ['xgettext', '--no-location', '--omit-header', '-k_', '-o', tmppotfile] cmd.extend(cubefiles)