Commits

Raimon Esteve (Zikzakmedia)  committed f595ed8

Mistake setup test

  • Participants
  • Parent commits 8d95a8b

Comments (0)

Files changed (1)

 
 from setuptools import setup
 import re
+import ConfigParser
 
-info = eval(open('__tryton__.py').read())
+config = ConfigParser.ConfigParser()
+config.readfp(open('tryton.cfg'))
+info = dict(config.items('tryton'))
+for key in ('depends', 'extras_depend', 'xml'):
+    if key in info:
+        info[key] = info[key].strip().splitlines()
 major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
 major_version = int(major_version)
 minor_version = int(minor_version)