-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
91 lines (85 loc) · 2.54 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
86
87
88
89
90
91
from setuptools import setup, find_packages
import os
version = '1.2dev'
def read(rnames):
setupdir = os.path.dirname(os.path.abspath(__file__))
return open(
os.path.join(setupdir, *rnames)
).read()
README = read((os.path.dirname(__file__), 'README.rst'))
INSTALL = read((os.path.dirname(__file__), 'docs', 'INSTALL.rst'))
CHANGELOG = read((os.path.dirname(__file__), 'docs', 'CHANGES.txt'))
TESTS_DIR = (
os.path.dirname(__file__), 'src',
'collective', 'generic', 'webbuilder', 'tests'
)
tdt = """
Tests & docs
==============
"""
TESTS = '%s' % (
'\n' + tdt +
read(TESTS_DIR + ('test_zcml.txt',)) + '\n' +
read(TESTS_DIR + ('test_paster.txt',)) + '\n' +
read(TESTS_DIR + ('test_plugins.txt',)) + '\n' +
read(TESTS_DIR + ('browser.txt',)) + '\n' +
'\n'
)
long_description = '\n'.join([README,
INSTALL,
TESTS,
CHANGELOG]) + '\n'
APP_requires = [
'collective.generic.skel',
'collective.generic.devmode',
'WebOb',
'zope.component',
'pyramid',
'pyramid_zcml',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'iniparse',
'repoze.vhm',
'waitress',
'PasteDeploy',
'Paste',
'Pastescript',
]
setup(
name='collective.generic.webbuilder',
version=version,
description="Yet another WSGI Paste factory for paste by Makina Corpus",
long_description=long_description,
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='',
author='Mathieu Pasquet, Jean-Philippe Camguilhem',
author_email=(
'kiorky@cryptelium.net, '
'jean-philippe.camguilhem@makina-corpus.com'),
url='http://pypi.python.org/pypi/collective.generic.webbuilder',
license='BSD',
namespace_packages=['collective',
'collective.generic',
],
include_package_data=True,
zip_safe=False,
extras_require={
'app': APP_requires,
'test': ['ipython',
'zope.testing',
'lxml',
'zope.testbrowser']},
packages=find_packages('src'),
package_dir = {'': 'src'},
# do not add directly deps here to have a mean with
# sed to remove them on openshift before deploy hook
install_requires=['setuptools'] + APP_requires,
entry_points={
'paste.app_factory': ['cgwb=collective.generic.webbuilder:main'],
'paste.paster_create_template': [
],
},
)