-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
85 lines (75 loc) · 3.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
# Copyright © 2014-2018 Dmytro Katyukha <[email protected]>
#######################################################################
# This Source Code Form is subject to the terms of the Mozilla Public #
# License, v. 2.0. If a copy of the MPL was not distributed with this #
# file, You can obtain one at http://mozilla.org/MPL/2.0/. #
#######################################################################
import os.path
import sys
from setuptools import setup
# workaround for: https://github.com/travis-ci/travis-ci/issues/1778
import multiprocessing # noqa
# load version info
version_file = os.path.join(os.path.dirname(__file__),
'odoo_rpc_client',
'version.py')
requirements_file = os.path.join(os.path.dirname(__file__),
'requirements.txt')
test_requirements_file = os.path.join(os.path.dirname(__file__),
'requirements-test.txt')
readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
if sys.version_info < (3,):
execfile(version_file)
else:
with open(version_file, 'rb') as f:
exec(compile(f.read(), version_file, 'exec'))
with open(requirements_file, 'rt') as f:
requirements = f.readlines()
with open(test_requirements_file, 'rt') as f:
test_requirements = f.readlines()
setup(
name='odoo_rpc_client',
version=version,
description='Odoo library for RPC',
author='Dmytro Katyukha',
author_email='[email protected]',
url='https://gitlab.com/katyukha/odoo-rpc-client',
long_description=open(readme_file).read(),
packages=[
'odoo_rpc_client',
'odoo_rpc_client.connection',
'odoo_rpc_client.service',
'odoo_rpc_client.orm',
'odoo_rpc_client.tests',
'odoo_rpc_client.plugins',
],
license="MPL 2.0",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=[
'odoo', 'odoo-rpc', 'rpc', 'xmlrpc',
'xml-rpc', 'json-rpc', 'jsonrpc', 'odoo-client', 'openerp'],
extras_require={
'all': ['anyfield'],
},
install_requires=requirements,
tests_require=test_requirements,
test_suite='odoo_rpc_client.tests.all',
)