LEFT | RIGHT |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 #This file is part of Tryton. The COPYRIGHT file at the top level of | 2 #This file is part of Tryton. The COPYRIGHT file at the top level of |
3 #this repository contains the full copyright notices and license terms. | 3 #this repository contains the full copyright notices and license terms. |
4 | 4 |
5 from setuptools import setup | 5 from setuptools import setup |
6 import re | 6 import re |
7 | 7 |
8 info = eval(open('__tryton__.py').read()) | 8 info = eval(open('__tryton__.py').read()) |
9 major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2) | 9 major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2) |
10 major_version = int(major_version) | 10 major_version = int(major_version) |
11 minor_version = int(minor_version) | 11 minor_version = int(minor_version) |
12 | 12 |
13 requires = ['python-dateutil'] | 13 requires = [] |
14 for dep in info.get('depends', []): | 14 for dep in info.get('depends', []): |
15 if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep): | 15 if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep): |
16 requires.append('trytond_%s >= %s.%s, < %s.%s' % | 16 requires.append('trytond_%s >= %s.%s, < %s.%s' % |
17 (dep, major_version, minor_version, major_version, | 17 (dep, major_version, minor_version, major_version, |
18 minor_version + 1)) | 18 minor_version + 1)) |
19 requires.append('trytond >= %s.%s, < %s.%s' % | 19 requires.append('trytond >= %s.%s, < %s.%s' % |
20 (major_version, minor_version, major_version, minor_version + 1)) | 20 (major_version, minor_version, major_version, minor_version + 1)) |
21 | 21 |
22 setup(name='trytond_account_stock_continental', | 22 setup(name='trytond_account_stock_continental', |
23 version=info.get('version', '0.0.1'), | 23 version=info.get('version', '0.0.1'), |
24 description=info.get('description', ''), | 24 description=info.get('description', ''), |
25 author=info.get('author', ''), | 25 author=info.get('author', ''), |
26 author_email=info.get('email', ''), | 26 author_email=info.get('email', ''), |
27 url=info.get('website', ''), | 27 url=info.get('website', ''), |
28 download_url="http://downloads.tryton.org/" + \ | 28 download_url="http://downloads.tryton.org/" + \ |
29 info.get('version', '0.0.1').rsplit('.', 1)[0] + '/', | 29 info.get('version', '0.0.1').rsplit('.', 1)[0] + '/', |
30 package_dir={'trytond.modules.account_stock_continental': '.'}, | 30 package_dir={'trytond.modules.account_stock_continental': '.'}, |
31 packages=[ | 31 packages=[ |
32 'trytond.modules.account_stock_continental', | 32 'trytond.modules.account_stock_continental', |
33 'trytond.modules.account.tests', | 33 'trytond.modules.account_stock_continental.tests', |
34 ], | 34 ], |
35 package_data={ | 35 package_data={ |
36 'trytond.modules.account_stock_continental': info.get('xml', []) \ | 36 'trytond.modules.account_stock_continental': info.get('xml', []) \ |
37 + info.get('translation', []), | 37 + info.get('translation', []), |
38 }, | 38 }, |
39 classifiers=[ | 39 classifiers=[ |
40 'Development Status :: 5 - Production/Stable', | 40 'Development Status :: 5 - Production/Stable', |
41 'Environment :: Plugins', | 41 'Environment :: Plugins', |
42 'Intended Audience :: Developers', | 42 'Intended Audience :: Developers', |
43 'Intended Audience :: Financial and Insurance Industry', | 43 'Intended Audience :: Financial and Insurance Industry', |
44 'Intended Audience :: Legal Industry', | 44 'Intended Audience :: Legal Industry', |
45 'License :: OSI Approved :: GNU General Public License (GPL)', | 45 'License :: OSI Approved :: GNU General Public License (GPL)', |
46 'Natural Language :: English', | 46 'Natural Language :: English', |
47 'Operating System :: OS Independent', | 47 'Operating System :: OS Independent', |
48 'Programming Language :: Python', | 48 'Programming Language :: Python', |
49 'Topic :: Office/Business', | 49 'Topic :: Office/Business', |
50 'Topic :: Office/Business :: Financial :: Accounting', | 50 'Topic :: Office/Business :: Financial :: Accounting', |
51 ], | 51 ], |
52 license='GPL-3', | 52 license='GPL-3', |
53 install_requires=requires, | 53 install_requires=requires, |
54 zip_safe=False, | 54 zip_safe=False, |
55 entry_points=""" | 55 entry_points=""" |
56 [trytond.modules] | 56 [trytond.modules] |
57 account_stock_continental = trytond.modules.account_stock_continental | 57 account_stock_continental = trytond.modules.account_stock_continental |
58 """, | 58 """, |
59 test_suite='tests', | 59 test_suite='tests', |
60 test_loader='trytond.test_loader:Loader', | 60 test_loader='trytond.test_loader:Loader', |
| 61 tests_require='proteus', |
61 ) | 62 ) |
LEFT | RIGHT |