forked from tinyerp/erppeek
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (51 loc) · 1.6 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
def get_version(source='erppeek.py'):
with open(source) as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
with open('README.rst') as f:
readme = f.read()
# with open('CHANGES.rst') as f:
# readme += '\n\n\n' + f.read()
if sys.version_info < (3,):
tests_require = ['mock', 'unittest2'],
test_suite = 'unittest2.collector'
else:
tests_require = ['mock', 'unittest2py3k']
test_suite = 'unittest2.collector.collector'
setup(
name='ERPpeek',
version=get_version(),
license='BSD',
description='Versatile tool for browsing Odoo / OpenERP data',
long_description=readme,
url='http://erppeek.readthedocs.org/',
author='Florent Xicluna',
author_email='[email protected]',
py_modules=['erppeek'],
zip_safe=False,
platforms='any',
entry_points={
'console_scripts': [
'erppeek = erppeek:main',
]
},
keywords="odoo openerp xml-rpc xmlrpc",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
],
tests_require=tests_require,
test_suite=test_suite,
)