source: main/waeup.sirp/branches/ulif-paster/setup.py @ 11107

Last change on this file since 11107 was 5491, checked in by uli, 14 years ago
  • Depend also on grokcore.startup. This package contains the code to interact with the paster server.
  • Define needed entry-points to generate scripts based on grokcore.startup and paster. These scripts replace the former zopectl script.

As we can choose the names of the scripts ourselves, I've chosen
sirp-debug for the debugger script and sirpctl for the main
zopectl replacement. sirpctl sounds like zopectl but
also marks a difference by its name.

Instead of zopectl fg you now can start an instance by doing:

$ ./bin/sirpctl fg

File size: 2.6 KB
Line 
1import os
2from setuptools import setup, find_packages
3
4version = '0.2dev'
5
6install_requires =[
7    'setuptools',
8    'grok',
9    'grokcore.startup',
10    'grokui.admin',
11    'hurry.query',
12    'hurry.workflow',
13    # Add extra requirements here
14    'zope.xmlpickle',
15    'hurry.yui',
16    'hurry.zoperesource',
17    'zc.sourcefactory',
18    'megrok.layout',
19    'zope.app.authentication', # BBB: During switch to grok 1.1
20    'zope.app.testing',        # XXX: test_permissions needs this
21    'zope.testbrowser',        # XXX: test_permissions needs this
22    'zope.i18n',
23    ],
24
25tests_require = [
26    'z3c.testsetup',
27    'zope.app.testing',
28    'zope.testbrowser',
29    'zope.testing',
30    ]
31
32def read(*rnames):
33    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
34
35long_description = (
36    read('README.txt')
37    + '\n\n'
38    + read('src', 'waeup', 'sirp', 'README.txt')
39    + '\n\n'
40    + read('CHANGES.txt')
41    + '\n\n'
42    + 'Download\n'
43    + '********\n'
44    )
45
46setup(name = 'waeup.sirp',
47      version = version,
48      description = "A student online information and  registration portal",
49      long_description = long_description,
50
51      keywords = "portal waeup sirp student university registration grok zope",
52      # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
53      classifiers = [
54        'Development Status :: 3 - Alpha',
55        'Environment :: Web Environment',
56        'Intended Audience :: Education',
57        'License :: OSI Approved :: GNU General Public License (GPL)',
58        'Programming Language :: Python',
59        'Operating System :: POSIX',
60        'Operating System :: POSIX :: Linux',
61        'Framework :: Zope3',
62        'Topic :: Education',
63        'Topic :: Internet :: WWW/HTTP',
64        ],
65      author = "The WAeUP team.",
66      author_email = "",
67      url = "http://www.waeup.org/",
68      license = "GPL",
69      package_dir = {'': 'src'},
70      packages= find_packages('src'),
71      namespace_packages = ['waeup',],
72      include_package_data = True,
73      zip_safe = False,
74      install_requires = install_requires,
75      tests_require = tests_require,
76      extras_require = dict(
77        test = tests_require,
78        docs = ['Sphinx',
79                'z3c.recipe.sphinxdoc',
80                ],
81        ),
82      entry_points="""
83      # Add entry points here
84      [console_scripts]
85      sirp-debug = grokcore.startup:interactive_debug_prompt
86      sirpctl = grokcore.startup:zdaemon_controller
87      [paste.app_factory]
88      main = grokcore.startup:application_factory
89      debug = grokcore.startup:debug_application_factory
90
91      """,
92      )
Note: See TracBrowser for help on using the repository browser.