-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (52 loc) · 1.74 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
#!python
# -*- encoding: utf-8 -*-
# flake8: noqa
from __future__ import absolute_import, print_function
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.develop import develop as _develop
# Import the version from the release module
project_name = 'xopgi.mail'
parts = project_name.split('.')
parts[-1] = '_'.join(parts) # Addons should be ns_named!!!
_current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(_current_dir, *parts))
from _release import VERSION as version
dev_classifier = 'Development Status :: 4 - Beta'
def safe_read(*paths):
try:
with open(os.path.join(_current_dir, *paths), 'rU') as fh:
return fh.read()
except (IOError, OSError):
return ''
setup(name=project_name,
version=version,
description="Extensions to `OpenERP` kernel for all dependant XOPGI components",
long_description=safe_read('README.rst'),
classifiers=[
# Get from http://pypi.python.org/pypi?%3Aaction=list_classifiers
dev_classifier,
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
keywords='',
author='Merchise Autrement [~º/~] and Contributors',
license='GPLv3+',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'xoeuf',
'xoutil>=1.9.4,<2.0',
'lxml',
'xopgi.mail_threads',
'flufl.bounce>=2.3,<3.0',
],
entry_points="""
[xoeuf.addons]
xopgi_mail = xopgi.xopgi_mail
""",
)