OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 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. |
| 4 |
| 5 from setuptools import setup |
| 6 import re |
| 7 |
| 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) |
| 12 |
| 13 requires = ['python-dateutil'] |
| 14 for dep in info.get('depends', []): |
| 15 if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep): |
| 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)) |
| 21 |
| 22 setup(name='trytond_account_stock_continental', |
| 23 version=info.get('version', '0.0.1'), |
| 24 description=info.get('description', ''), |
| 25 author=info.get('author', ''), |
| 26 author_email=info.get('email', ''), |
| 27 url=info.get('website', ''), |
| 28 download_url="http://downloads.tryton.org/" + \ |
| 29 info.get('version', '0.0.1').rsplit('.', 1)[0] + '/', |
| 30 package_dir={'trytond.modules.account_stock_continental': '.'}, |
| 31 packages=[ |
| 32 'trytond.modules.account_stock_continental', |
| 33 'trytond.modules.account.tests', |
| 34 ], |
| 35 package_data={ |
| 36 'trytond.modules.account_stock_continental': info.get('xml', []) \ |
| 37 + info.get('translation', []), |
| 38 }, |
| 39 classifiers=[ |
| 40 'Development Status :: 5 - Production/Stable', |
| 41 'Environment :: Plugins', |
| 42 'Intended Audience :: Developers', |
| 43 'Intended Audience :: Financial and Insurance Industry', |
| 44 'Intended Audience :: Legal Industry', |
| 45 'License :: OSI Approved :: GNU General Public License (GPL)', |
| 46 'Natural Language :: English', |
| 47 'Operating System :: OS Independent', |
| 48 'Programming Language :: Python', |
| 49 'Topic :: Office/Business', |
| 50 'Topic :: Office/Business :: Financial :: Accounting', |
| 51 ], |
| 52 license='GPL-3', |
| 53 install_requires=requires, |
| 54 zip_safe=False, |
| 55 entry_points=""" |
| 56 [trytond.modules] |
| 57 account_stock_continental = trytond.modules.account_stock_continental |
| 58 """, |
| 59 test_suite='tests', |
| 60 test_loader='trytond.test_loader:Loader', |
| 61 ) |
OLD | NEW |