LEFT | RIGHT |
(no file at all) | |
| 1 #!/usr/bin/env python |
| 2 # -*- coding: utf-8 -*- |
| 3 # Copyright (C) 2011 Cédric Krier |
| 4 |
| 5 # This program is free software: you can redistribute it and/or modify |
| 6 # it under the terms of the GNU General Public License as published by |
| 7 # the Free Software Foundation, either version 3 of the License, or |
| 8 # (at your option) any later version. |
| 9 |
| 10 # This program is distributed in the hope that it will be useful, |
| 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 # GNU General Public License for more details. |
| 14 |
| 15 # You should have received a copy of the GNU General Public License |
| 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
| 18 import re |
| 19 from setuptools import setup |
| 20 |
| 21 info = eval(open('__tryton__.py').read()) |
| 22 major_version, minor_version = 2, 0 |
| 23 |
| 24 requires = [] |
| 25 for dep in info.get('depends', []): |
| 26 if dep.startswith('health'): |
| 27 requires.append('trytond_%s == %s' % |
| 28 (dep, info.get('version'))) |
| 29 elif not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep): |
| 30 requires.append('trytond_%s >= %s.%s, < %s.%s' % |
| 31 (dep, major_version, minor_version, major_version, |
| 32 minor_version + 1)) |
| 33 requires.append('trytond >= %s.%s, < %s.%s' % |
| 34 (major_version, minor_version, major_version, minor_version + 1)) |
| 35 |
| 36 setup(name='trytond_health', |
| 37 version=info.get('version', '0.0.1'), |
| 38 description=info.get('description', ''), |
| 39 author=info.get('author', ''), |
| 40 author_email=info.get('email', ''), |
| 41 url=info.get('website', ''), |
| 42 download_url='http://ftp.gnu.org/gnu/health/', |
| 43 package_dir={'trytond.modules.health': '.'}, |
| 44 packages=[ |
| 45 'trytond.modules.health', |
| 46 'trytond.modules.health.tests', |
| 47 ], |
| 48 package_data={ |
| 49 'trytond.modules.health': info.get('xml', []) \ |
| 50 + info.get('translation', []) \ |
| 51 + ['report/*.odt', 'icons/*.svg'], |
| 52 }, |
| 53 classifiers=[ |
| 54 'Development Status :: 5 - Production/Stable', |
| 55 'Environment :: Plugins', |
| 56 'Framework :: Tryton', |
| 57 'Intended Audience :: Developers', |
| 58 'Intended Audience :: Healthcare Industry', |
| 59 'License :: OSI Approved :: GNU General Public License (GPL)', |
| 60 'Natural Language :: English', |
| 61 'Natural Language :: Spanish', |
| 62 'Operating System :: OS Independent', |
| 63 'Programming Language :: Python :: 2.6', |
| 64 'Programming Language :: Python :: 2.7', |
| 65 'Topic :: Scientific/Engineering :: Bio-Informatics', |
| 66 'Topic :: Scientific/Engineering :: Medical Science Apps.', |
| 67 ], |
| 68 license='GPL-3', |
| 69 install_requires=requires, |
| 70 zip_safe=False, |
| 71 entry_points=""" |
| 72 [trytond.modules] |
| 73 health = trytond.modules.health |
| 74 """, |
| 75 test_suite='tests', |
| 76 test_loader='trytond.test_loader:Loader', |
| 77 ) |
LEFT | RIGHT |