-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
75 lines (71 loc) · 2.71 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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
from distutils.core import setup
name = 'OdooRPC'
version = '0.6.0'
description = ("OdooRPC is a Python module providing an easy way to "
"pilot your Odoo servers through RPC.")
keywords = ("openerp odoo server rpc client xml-rpc xmlrpc jsonrpc json-rpc "
"odoorpc oerplib communication lib library python "
"service web webservice")
author = "ABF Osiell - Sebastien Alix"
author_email = '[email protected]'
url = 'http://pythonhosted.org/OdooRPC/'
download_url = 'http://pypi.python.org/packages/source/O/OdoORPC/OdooRPC-%s.tar.gz' % version
license = 'LGPL v3'
doc_build_dir = 'doc/build'
doc_source_dir = 'doc/source'
cmdclass = {}
command_options = {}
# 'build_doc' option
try:
from sphinx.setup_command import BuildDoc
if not os.path.exists(doc_build_dir):
os.mkdir(doc_build_dir)
cmdclass.update({'build_doc': BuildDoc})
command_options.update({
'build_doc': {
#'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', version),
'source_dir': ('setup.py', doc_source_dir),
'build_dir': ('setup.py', doc_build_dir),
'builder': ('setup.py', 'html'),
}})
except Exception:
print("No Sphinx module found. You have to install Sphinx "
"to be able to generate the documentation.")
setup(name=name,
version=version,
description=description,
long_description=open('README.rst').read(),
keywords=keywords,
author=author,
author_email=author_email,
url=url,
download_url=download_url,
packages=['odoorpc',
'odoorpc.rpc'],
license=license,
cmdclass=cmdclass,
command_options=command_options,
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Odoo",
],
)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: