Fix setup for test and python3

This commit is contained in:
C?dric Krier 2018-01-08 19:07:30 +01:00
parent 1adbe90c91
commit b2b578e302
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
if key in info:
info[key] = info[key].strip().splitlines()
version = info.get('version', '0.0.1')
major_version, minor_version, _ = version.split('.', 2)
major_version = int(major_version)
@ -115,4 +116,6 @@ setup(name='%s_%s' % (PREFIX, MODULE),
""" % (MODULE, MODULE),
test_suite='tests',
test_loader='trytond.test_loader:Loader',
tests_require=tests_require,
use_2to3=True,
)