Fix version number

Add trytond requires
This commit is contained in:
Cédric Krier
2008-10-23 16:17:28 +02:00
parent cb7b1c622c
commit 4e38134ff4
2 changed files with 9 additions and 4 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms.
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
{
'name': 'Analytic Sale',
'version': '0.1',
'version': '0.0.1',
'author': 'B2CK',
'email': 'info@b2ck.com',
'website': 'http://www.tryton.org/',
+6 -2
View File
@@ -12,13 +12,17 @@ for dep in info.get('depends', []):
match = re.compile(
'(ir|res|workflow|webdav)((\s|$|<|>|<=|>=|==|!=).*?$)').match(dep)
if match:
dep = 'trytond' + match.group(2)
continue
else:
dep = 'trytond_' + dep
requires.append(dep)
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
requires.append('trytond >= %s.%s' % (major_version, minor_version))
requires.append('trytond < %s.%s' % (major_version, str(int(minor_version) + 1)))
setup(name='trytond_' + info['name'].lower(),
version=info.get('version', '0'),
version=info.get('version', '0.0.1'),
description=info.get('description', ''),
author=info.get('author', ''),
author_email=info.get('email', ''),