source: main/waeup.sirp/trunk/setup.py @ 7657

Last change on this file since 7657 was 7570, checked in by uli, 13 years ago

Make beaker support a feature, setup.py-wise.

File size: 3.4 KB
Line 
1import os
2from setuptools import setup, find_packages
3
4version = '0.2dev'
5
6install_requires =[
7    'setuptools',
8    #'gp.fileupload',
9    'grok',
10    'grokcore.startup',
11    'grokui.admin',
12    'hurry.query',
13    'hurry.jquery',
14    'hurry.jqueryui',
15    'hurry.workflow >= 0.11',
16    # Add extra requirements here
17    'docutils', # For RST-processing...
18    'zope.xmlpickle',
19    'hurry.file',
20    #'hurry.yui',
21    'hurry.zoperesource',
22    'zc.sourcefactory',
23    'megrok.layout',
24    'reportlab',
25    'PIL',
26    'zope.app.authentication', # BBB: During switch to grok 1.1
27    'zope.app.file',
28    'zope.app.testing',        # XXX: test_permissions needs this
29    'zope.file',
30    'zope.interface >= 3.6.0',
31    'zope.testbrowser',        # XXX: test_permissions needs this
32    'zope.i18n',
33    'zope.mimetype',
34    'zope.errorview',
35    'zope.schema >= 3.8.0',
36    'zope.sendmail',
37    ],
38
39# Having beaker installed additionally is a feature very recommended
40# for production use. The default buildout includes beaker for tests,
41# start scripts, and other parts that can benefit from it. The windows
42# buildout does not include it due to compiling problems with the
43# beaker package.
44beaker_require = [
45    'dolmen.beaker',
46    ]
47
48tests_require = [
49    'z3c.testsetup',
50    'zope.app.testing',
51    'zope.testbrowser',
52    'zope.testing',
53    'unittest2',
54    ]
55
56docs_require = [
57    'Sphinx',
58    'collective.recipe.sphinxbuilder',
59    'docutils',
60    'roman',
61    'repoze.sphinx.autointerface',
62    ]
63
64def read(*rnames):
65    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
66
67long_description = (
68    read('README.txt')
69    + '\n\n'
70    + read('src', 'waeup', 'sirp', 'app.txt')
71    + '\n\n'
72    + read('CHANGES.txt')
73    + '\n\n'
74    + 'Download\n'
75    + '********\n'
76    )
77
78setup(name = 'waeup.sirp',
79      version = version,
80      description = "A student online information and  registration portal",
81      long_description = long_description,
82
83      keywords = "portal waeup sirp student university registration grok zope",
84      # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
85      classifiers = [
86        'Development Status :: 3 - Alpha',
87        'Environment :: Web Environment',
88        'Intended Audience :: Education',
89        'License :: OSI Approved :: GNU General Public License (GPL)',
90        'Programming Language :: Python',
91        'Operating System :: POSIX',
92        'Operating System :: POSIX :: Linux',
93        'Framework :: Zope3',
94        'Topic :: Education',
95        'Topic :: Internet :: WWW/HTTP',
96        ],
97      author = "The WAeUP team.",
98      author_email = "",
99      url = "http://www.waeup.org/",
100      license = "GPL",
101      package_dir = {'': 'src'},
102      packages= find_packages('src'),
103      namespace_packages = ['waeup',],
104      include_package_data = True,
105      zip_safe = False,
106      install_requires = install_requires,
107      tests_require = tests_require,
108      extras_require = dict(
109        test = tests_require,
110        docs = docs_require,
111        beaker = beaker_require,
112        ),
113      entry_points="""
114      # Add entry points here
115      [hurry.resource.libraries]
116      waeup_sirp = waeup.sirp.browser.resources:waeup_sirp
117      [console_scripts]
118      sirp-debug = grokcore.startup:interactive_debug_prompt
119      sirpctl = grokcore.startup:zdaemon_controller
120      [paste.app_factory]
121      main = grokcore.startup:application_factory
122      debug = grokcore.startup:debug_application_factory
123
124      """,
125      )
Note: See TracBrowser for help on using the repository browser.