52 lines
1.8 KiB
Python
52 lines
1.8 KiB
Python
#!/usr/bin/env python
|
|
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
#this repository contains the full copyright notices and license terms.
|
|
|
|
from setuptools import setup, find_packages
|
|
import re
|
|
|
|
info = eval(file('__tryton__.py').read())
|
|
|
|
requires = ['egenix-mx-base']
|
|
for dep in info.get('depends', []):
|
|
if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep):
|
|
requires.append('trytond_' + dep)
|
|
|
|
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
|
|
requires.append('trytond >= %s.%s' % (major_version, minor_version))
|
|
requires.append('trytond < %s.%s' % (major_version, int(minor_version) + 1))
|
|
|
|
setup(name='trytond_stock_forecast',
|
|
version=info.get('version', '0.0.1'),
|
|
description=info.get('description', ''),
|
|
author=info.get('author', ''),
|
|
author_email=info.get('email', ''),
|
|
url=info.get('website', ''),
|
|
package_dir={'trytond.modules.stock_forecast': '.'},
|
|
packages=[
|
|
'trytond.modules.stock_forecast',
|
|
],
|
|
package_data={
|
|
'trytond.modules.stock_forecast': info.get('xml', []) \
|
|
+ info.get('translation', []),
|
|
},
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Environment :: Plugins',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: Financial and Insurance Industry',
|
|
'Intended Audience :: Legal Industry',
|
|
'Intended Audience :: Manufacturing',
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
'Natural Language :: English',
|
|
'Natural Language :: French',
|
|
'Natural Language :: German',
|
|
'Natural Language :: Spanish',
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python',
|
|
'Topic :: Office/Business',
|
|
],
|
|
license='GPL-3',
|
|
install_requires=requires,
|
|
)
|