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 = [] |
| 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_product_attributes', |
| 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 package_dir={'trytond.modules.product_attributes': '.'}, |
| 29 packages=[ |
| 30 'trytond.modules.product_attributes', |
| 31 ], |
| 32 package_data={ |
| 33 'trytond.modules.product_attributes': info.get('xml', []) \ |
| 34 + info.get('translation', []), |
| 35 }, |
| 36 classifiers=[ |
| 37 'Development Status :: 5 - Production/Stable', |
| 38 'Environment :: Plugins', |
| 39 'Intended Audience :: Developers', |
| 40 'Intended Audience :: Financial and Insurance Industry', |
| 41 'Intended Audience :: Legal Industry', |
| 42 'Intended Audience :: Manufacturing', |
| 43 'License :: OSI Approved :: GNU General Public License (GPL)', |
| 44 'Natural Language :: English', |
| 45 'Operating System :: OS Independent', |
| 46 'Programming Language :: Python', |
| 47 'Topic :: Office/Business', |
| 48 ], |
| 49 license='GPL-3', |
| 50 install_requires=requires, |
| 51 zip_safe=False, |
| 52 entry_points=""" |
| 53 [trytond.modules] |
| 54 product_attributes = trytond.modules.product_attributes |
| 55 """, |
| 56 test_suite='tests', |
| 57 test_loader='trytond.test_loader:Loader', |
| 58 ) |
OLD | NEW |