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

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

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

File size: 3.4 KB
RevLine 
[4945]1import os
[3518]2from setuptools import setup, find_packages
3
[4955]4version = '0.2dev'
[3518]5
[5057]6install_requires =[
7    'setuptools',
[7470]8    #'gp.fileupload',
[5057]9    'grok',
[5495]10    'grokcore.startup',
[5057]11    'grokui.admin',
12    'hurry.query',
[5836]13    'hurry.jquery',
14    'hurry.jqueryui',
[6349]15    'hurry.workflow >= 0.11',
[5057]16    # Add extra requirements here
[5854]17    'docutils', # For RST-processing...
[5057]18    'zope.xmlpickle',
[5632]19    'hurry.file',
[6028]20    #'hurry.yui',
[5057]21    'hurry.zoperesource',
22    'zc.sourcefactory',
23    'megrok.layout',
[6194]24    'reportlab',
[6360]25    'PIL',
[5057]26    'zope.app.authentication', # BBB: During switch to grok 1.1
[5632]27    'zope.app.file',
[5067]28    'zope.app.testing',        # XXX: test_permissions needs this
[5632]29    'zope.file',
[6287]30    'zope.interface >= 3.6.0',
[5067]31    'zope.testbrowser',        # XXX: test_permissions needs this
[5328]32    'zope.i18n',
[5632]33    'zope.mimetype',
[6200]34    'zope.errorview',
[6287]35    'zope.schema >= 3.8.0',
[7470]36    'zope.sendmail',
[5057]37    ],
38
[7570]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
[5057]48tests_require = [
49    'z3c.testsetup',
50    'zope.app.testing',
51    'zope.testbrowser',
52    'zope.testing',
[5836]53    'unittest2',
[5057]54    ]
55
[5632]56docs_require = [
57    'Sphinx',
58    'collective.recipe.sphinxbuilder',
59    'docutils',
60    'roman',
[5661]61    'repoze.sphinx.autointerface',
[5632]62    ]
63
[4945]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'
[6901]70    + read('src', 'waeup', 'sirp', 'app.txt')
[4945]71    + '\n\n'
72    + read('CHANGES.txt')
73    + '\n\n'
74    + 'Download\n'
75    + '********\n'
76    )
77
[5057]78setup(name = 'waeup.sirp',
79      version = version,
80      description = "A student online information and  registration portal",
81      long_description = long_description,
[4945]82
[5057]83      keywords = "portal waeup sirp student university registration grok zope",
[4945]84      # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
[5057]85      classifiers = [
[4945]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        ],
[5057]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'),
[4919]103      namespace_packages = ['waeup',],
[5057]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,
[5632]110        docs = docs_require,
[7570]111        beaker = beaker_require,
[4789]112        ),
[3518]113      entry_points="""
114      # Add entry points here
[5836]115      [hurry.resource.libraries]
116      waeup_sirp = waeup.sirp.browser.resources:waeup_sirp
[5495]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
[3518]124      """,
125      )
Note: See TracBrowser for help on using the repository browser.