101
by Georges Racinet
Using check_call to have exceptions if vcs command failed |
1 |
import os |
2 |
import sys |
|
1
by Christophe Combelles
first attempt |
3 |
from setuptools import setup, find_packages |
4 |
||
415.1.2
by Georges Racinet
Init new dev cycle |
5 |
version = '1.7.2-dev' |
1
by Christophe Combelles
first attempt |
6 |
|
110
by Georges Racinet
Requiring python 2.6, as we've always had 'with' statements |
7 |
if sys.version_info < (2, 6): |
8 |
sys.stderr.write("This package requires Python 2.6 or newer. " |
|
101
by Georges Racinet
Using check_call to have exceptions if vcs command failed |
9 |
"Yours is " + sys.version + os.linesep) |
10 |
sys.exit(1) |
|
11 |
||
90
by Georges Racinet
Initiated unit tests |
12 |
requires = ['setuptools', 'zc.recipe.egg', 'zc.buildout'] |
13 |
||
332.1.2
by Guewen Baconnier
Replaced the included OrderedDict by the python library ordereddict when python 2.6 is used |
14 |
if sys.version_info < (2, 7): |
15 |
requires.append('ordereddict') |
|
16 |
||
1
by Christophe Combelles
first attempt |
17 |
setup( |
283
by Georges Racinet
flake8 pass on setup.py |
18 |
name="anybox.recipe.openerp", |
19 |
version=version, |
|
71
by Christophe Combelles
- Major refactoring of recipe options management |
20 |
author="Anybox", |
21 |
author_email="contact@anybox.fr", |
|
33
by Christophe Combelles
Use the same dotted notation for all config files (section.option) |
22 |
description="A buildout recipe to install and configure OpenERP", |
1
by Christophe Combelles
first attempt |
23 |
license="ZPL", |
283
by Georges Racinet
flake8 pass on setup.py |
24 |
long_description='\n'.join(( |
25 |
open('README.rst').read(), |
|
26 |
open('CHANGES.rst').read())), |
|
151
by Georges Racinet
Fixed project URL in setup.py |
27 |
url="https://launchpad.net/anybox.recipe.openerp", |
1
by Christophe Combelles
first attempt |
28 |
packages=find_packages(), |
29 |
zip_safe=False, |
|
30 |
include_package_data=True, |
|
90
by Georges Racinet
Initiated unit tests |
31 |
install_requires=requires, |
195
by Georges Racinet
launchpad #1041231: proper handling of lauchpad locations (lp:) |
32 |
tests_require=requires + ['nose', 'bzr'], |
1
by Christophe Combelles
first attempt |
33 |
classifiers=[ |
352
by Georges Racinet
Update classifiers (marked stable) |
34 |
'Development Status :: 5 - Production/Stable', |
283
by Georges Racinet
flake8 pass on setup.py |
35 |
'Framework :: Buildout :: Recipe', |
36 |
'Intended Audience :: Developers', |
|
352
by Georges Racinet
Update classifiers (marked stable) |
37 |
'Intended Audience :: System Administrators', |
38 |
'License :: OSI Approved :: Zope Public License', |
|
283
by Georges Racinet
flake8 pass on setup.py |
39 |
'Topic :: Software Development :: Build Tools', |
40 |
'Topic :: Software Development :: Libraries :: Python Modules', |
|
41 |
],
|
|
42 |
entry_points={'zc.buildout': [ |
|
156
by Georges Racinet
launchpad #1019886: full python startup script also for OpenERP 6.0 |
43 |
'server = anybox.recipe.openerp.server:ServerRecipe', |
44 |
'webclient = anybox.recipe.openerp.webclient:WebClientRecipe', |
|
45 |
'gtkclient = anybox.recipe.openerp.gtkclient:GtkClientRecipe', |
|
283
by Georges Racinet
flake8 pass on setup.py |
46 |
]},
|
357.1.1
by Laurent Mignon (Acsone)
Declare extras requires for optional dependencies |
47 |
extras_require = { |
48 |
'bzr' : ['bzr'] }, |
|
283
by Georges Racinet
flake8 pass on setup.py |
49 |
)
|