2010-06-12 16:55:24 +02:00
|
|
|
#!/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
|
2010-11-11 17:57:54 +01:00
|
|
|
import os
|
2010-06-12 16:55:24 +02:00
|
|
|
import proteus
|
|
|
|
|
|
|
|
|
|
major_version, minor_version, _ = proteus.__version__.split('.', 2)
|
|
|
|
|
major_version = int(major_version)
|
|
|
|
|
minor_version = int(minor_version)
|
|
|
|
|
|
2012-04-03 20:09:39 +02:00
|
|
|
|
2010-11-11 17:57:54 +01:00
|
|
|
def read(fname):
|
|
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
|
2010-06-12 16:55:24 +02:00
|
|
|
setup(name='proteus',
|
|
|
|
|
version=proteus.__version__,
|
|
|
|
|
description='Library to access Tryton server as a client',
|
2010-11-11 17:57:54 +01:00
|
|
|
long_description=read('README'),
|
2010-06-12 16:55:24 +02:00
|
|
|
author='B2CK',
|
|
|
|
|
author_email='info@b2ck.com',
|
|
|
|
|
url='http://www.tryton.org/',
|
|
|
|
|
download_url="http://downloads.tryton.org/" + \
|
|
|
|
|
proteus.__version__.rsplit('.', 1)[0] + '/',
|
|
|
|
|
packages=find_packages(),
|
|
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Environment :: Plugins',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'Intended Audience :: Financial and Insurance Industry',
|
|
|
|
|
'Intended Audience :: Legal Industry',
|
2011-05-19 19:50:57 +02:00
|
|
|
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
|
2010-06-12 16:55:24 +02:00
|
|
|
'Operating System :: OS Independent',
|
2011-07-12 00:22:00 +02:00
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
2010-06-12 16:55:24 +02:00
|
|
|
'Topic :: Office/Business',
|
|
|
|
|
],
|
2011-05-19 19:50:57 +02:00
|
|
|
license='LGPL-3',
|
2012-03-05 10:19:20 +01:00
|
|
|
install_requires=[
|
|
|
|
|
"python-dateutil",
|
|
|
|
|
],
|
2010-06-12 16:55:24 +02:00
|
|
|
extras_require={
|
|
|
|
|
'trytond': ['trytond >= %s.%s, < %s.%s' %
|
|
|
|
|
(major_version, minor_version, major_version, minor_version + 1)],
|
2011-11-15 11:25:22 +01:00
|
|
|
'simplejson': ['simplejson'],
|
2012-01-04 19:54:58 +01:00
|
|
|
'cdecimal': ['cdecimal'],
|
2010-06-12 16:55:24 +02:00
|
|
|
},
|
|
|
|
|
test_suite='proteus.tests',
|
2010-12-24 23:55:05 +01:00
|
|
|
tests_require=('trytond >= %s.%s, < %s.%s' %
|
|
|
|
|
(major_version, minor_version, major_version, minor_version + 1))
|
2010-06-12 16:55:24 +02:00
|
|
|
)
|