-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (52 loc) · 1.73 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
#!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.account'
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 ''
class develop(_develop):
pass
setup(name=project_name,
version=version,
description="Merchise's Extensions to OpenERP's Accounting",
long_description=safe_read('README.rst'),
cmdclass={'develop': develop},
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>=0.33.0,<1.0',
'xoutil>=1.8.4,<2.0',
],
entry_points="""
[xoeuf.addons]
xopgi_account = xopgi.xopgi_account
""",
)