1 | import os |
---|
2 | from setuptools import setup, find_packages |
---|
3 | |
---|
4 | version = '0.2dev' |
---|
5 | |
---|
6 | install_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.app.undo', |
---|
30 | 'zope.file', |
---|
31 | 'zope.interface >= 3.6.0', |
---|
32 | 'zope.testbrowser', # XXX: test_permissions needs this |
---|
33 | 'zope.i18n', |
---|
34 | 'zope.mimetype', |
---|
35 | 'zope.errorview', |
---|
36 | 'zope.schema >= 3.8.0', |
---|
37 | 'zope.sendmail', |
---|
38 | 'ulif.loghandlers', |
---|
39 | 'zc.async[z3]', |
---|
40 | ], |
---|
41 | |
---|
42 | # Having beaker installed additionally is a feature very recommended |
---|
43 | # for production use. The default buildout includes beaker for tests, |
---|
44 | # start scripts, and other parts that can benefit from it. The windows |
---|
45 | # buildout does not include it due to compiling problems with the |
---|
46 | # beaker package. |
---|
47 | beaker_require = [ |
---|
48 | 'dolmen.beaker', |
---|
49 | ] |
---|
50 | |
---|
51 | tests_require = [ |
---|
52 | 'z3c.testsetup', |
---|
53 | 'zope.app.testing', |
---|
54 | 'zope.testbrowser', |
---|
55 | 'zope.testing', |
---|
56 | 'unittest2', |
---|
57 | ] |
---|
58 | |
---|
59 | docs_require = [ |
---|
60 | 'Sphinx', |
---|
61 | 'collective.recipe.sphinxbuilder', |
---|
62 | 'docutils', |
---|
63 | 'roman', |
---|
64 | 'repoze.sphinx.autointerface', |
---|
65 | ] |
---|
66 | |
---|
67 | def read(*rnames): |
---|
68 | return open(os.path.join(os.path.dirname(__file__), *rnames)).read() |
---|
69 | |
---|
70 | long_description = ( |
---|
71 | read('README.txt') |
---|
72 | + '\n\n' |
---|
73 | + read('src', 'waeup', 'kofa', 'app.txt') |
---|
74 | + '\n\n' |
---|
75 | + read('CHANGES.txt') |
---|
76 | + '\n\n' |
---|
77 | + 'Download\n' |
---|
78 | + '********\n' |
---|
79 | ) |
---|
80 | |
---|
81 | setup(name = 'waeup.kofa', |
---|
82 | version = version, |
---|
83 | description = "A student online information and registration portal", |
---|
84 | long_description = long_description, |
---|
85 | |
---|
86 | keywords = "portal waeup kofa student university registration grok zope", |
---|
87 | # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
---|
88 | classifiers = [ |
---|
89 | 'Development Status :: 3 - Alpha', |
---|
90 | 'Environment :: Web Environment', |
---|
91 | 'Intended Audience :: Education', |
---|
92 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
---|
93 | 'Programming Language :: Python', |
---|
94 | 'Operating System :: POSIX', |
---|
95 | 'Operating System :: POSIX :: Linux', |
---|
96 | 'Framework :: Zope3', |
---|
97 | 'Topic :: Education', |
---|
98 | 'Topic :: Internet :: WWW/HTTP', |
---|
99 | ], |
---|
100 | author = "The WAeUP team.", |
---|
101 | author_email = "", |
---|
102 | url = "http://www.waeup.org/", |
---|
103 | license = "GPL", |
---|
104 | package_dir = {'': 'src'}, |
---|
105 | packages= find_packages('src'), |
---|
106 | namespace_packages = ['waeup',], |
---|
107 | include_package_data = True, |
---|
108 | zip_safe = False, |
---|
109 | install_requires = install_requires, |
---|
110 | tests_require = tests_require, |
---|
111 | extras_require = dict( |
---|
112 | test = tests_require, |
---|
113 | docs = docs_require, |
---|
114 | beaker = beaker_require, |
---|
115 | ), |
---|
116 | entry_points=""" |
---|
117 | # Add entry points here |
---|
118 | [hurry.resource.libraries] |
---|
119 | waeup_kofa = waeup.kofa.browser.resources:waeup_kofa |
---|
120 | [console_scripts] |
---|
121 | kofa-debug = grokcore.startup:interactive_debug_prompt |
---|
122 | kofactl = grokcore.startup:zdaemon_controller |
---|
123 | analyze = waeup.kofa.maintenance:db_analyze |
---|
124 | [paste.app_factory] |
---|
125 | main = grokcore.startup:application_factory |
---|
126 | debug = grokcore.startup:debug_application_factory |
---|
127 | |
---|
128 | """, |
---|
129 | ) |
---|