~ubuntu-branches/ubuntu/quantal/tryton-modules-account-product/quantal

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Behrle, Daniel Baumann, Mathias Behrle
  • Date: 2010-05-13 11:47:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100513114738-ugd8cbj91io7190p
Tags: 1.6.0-1
[ Daniel Baumann ]
* Adding Dm-Upload-Allowed in control in preparation for Mathias.

[ Mathias Behrle ]
* Merging upstream version 1.6.0.
* Updating copyright.
* Updating depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#This file is part of Tryton.  The COPYRIGHT file at the top level of
3
3
#this repository contains the full copyright notices and license terms.
4
4
 
5
 
from setuptools import setup, find_packages
 
5
from setuptools import setup
6
6
import re
7
7
 
8
 
info = eval(file('__tryton__.py').read())
 
8
info = eval(open('__tryton__.py').read())
 
9
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
 
10
major_version = int(major_version)
 
11
minor_version = int(minor_version)
9
12
 
10
13
requires = []
11
14
for dep in info.get('depends', []):
12
15
    if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep):
13
 
        requires.append('trytond_' + dep)
14
 
 
15
 
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
16
 
requires.append('trytond >= %s.%s' % (major_version, minor_version))
17
 
requires.append('trytond < %s.%s' % (major_version, int(minor_version) + 1))
 
16
        requires.append('trytond_%s >= %s.%s, < %s.%s' %
 
17
                (dep, major_version, minor_version, major_version,
 
18
                    minor_version + 1))
 
19
requires.append('trytond >= %s.%s, < %s.%s' %
 
20
        (major_version, minor_version, major_version, minor_version + 1))
18
21
 
19
22
setup(name='trytond_account_product',
20
23
    version=info.get('version', '0.0.1'),
27
30
    package_dir={'trytond.modules.account_product': '.'},
28
31
    packages=[
29
32
        'trytond.modules.account_product',
 
33
        'trytond.modules.account_product.tests',
30
34
    ],
31
35
    package_data={
32
36
        'trytond.modules.account_product': info.get('xml', []) \
55
59
    [trytond.modules]
56
60
    account_product = trytond.modules.account_product
57
61
    """,
 
62
    test_suite='tests',
 
63
    test_loader='trytond.test_loader:Loader',
58
64
)