2
by ignas
Initial commit for schooltool.gradebook |
1 |
#!/usr/bin/env python
|
2 |
#
|
|
3 |
# SchoolTool - common information systems platform for school administration
|
|
255.3.16
by Gediminas Paulauskas
Update copyright and FSF address |
4 |
# Copyright (c) 2008, 2009, 2010, 2011 Shuttleworth Foundation,
|
2
by ignas
Initial commit for schooltool.gradebook |
5 |
#
|
6 |
# This program is free software; you can redistribute it and/or modify
|
|
7 |
# it under the terms of the GNU General Public License as published by
|
|
8 |
# the Free Software Foundation; either version 2 of the License, or
|
|
9 |
# (at your option) any later version.
|
|
10 |
#
|
|
11 |
# This program is distributed in the hope that it will be useful,
|
|
12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
# GNU General Public License for more details.
|
|
15 |
#
|
|
255.3.16
by Gediminas Paulauskas
Update copyright and FSF address |
16 |
# You should have received a copy of the GNU General Public License along
|
17 |
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
18 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
2
by ignas
Initial commit for schooltool.gradebook |
19 |
#
|
20 |
"""
|
|
89
by Gediminas Paulauskas
Update copyright and description |
21 |
SchoolTool Gradebook setup script.
|
2
by ignas
Initial commit for schooltool.gradebook |
22 |
"""
|
23 |
||
24 |
import os |
|
25 |
from setuptools import setup, find_packages |
|
26 |
||
24.1.1
by Ignas Mikalajūnas
Switch version setting machinery to bzr specific one. |
27 |
if os.path.exists("version.txt"): |
28 |
version = open("version.txt").read().strip() |
|
29 |
else: |
|
30 |
version = open("version.txt.in").read().strip() |
|
3
by ignas
Add proper svn revision number to the version if it's a dev release. |
31 |
|
100
by Gediminas Paulauskas
Add CHANGES.txt describing changes since April. Include it in long_description |
32 |
def read(*rnames): |
33 |
text = open(os.path.join(os.path.dirname(__file__), *rnames)).read() |
|
34 |
return text |
|
35 |
||
2
by ignas
Initial commit for schooltool.gradebook |
36 |
setup( |
37 |
name="schooltool.gradebook", |
|
255.3.16
by Gediminas Paulauskas
Update copyright and FSF address |
38 |
description="Gradebook plugin for SchoolTool", |
100
by Gediminas Paulauskas
Add CHANGES.txt describing changes since April. Include it in long_description |
39 |
long_description=( |
40 |
read('README.txt') |
|
41 |
+ '\n\n' + |
|
42 |
read('CHANGES.txt') |
|
43 |
),
|
|
3
by ignas
Add proper svn revision number to the version if it's a dev release. |
44 |
version=version, |
2
by ignas
Initial commit for schooltool.gradebook |
45 |
url='http://www.schooltool.org', |
46 |
license="GPL", |
|
98
by Gediminas Paulauskas
Update maintainer |
47 |
maintainer="SchoolTool Developers", |
48 |
maintainer_email="schooltool-developers@lists.launchpad.net", |
|
2
by ignas
Initial commit for schooltool.gradebook |
49 |
platforms=["any"], |
548
by Gediminas Paulauskas
More build updates |
50 |
classifiers=["Development Status :: 5 - Production/Stable", |
2
by ignas
Initial commit for schooltool.gradebook |
51 |
"Environment :: Web Environment", |
52 |
"Intended Audience :: End Users/Desktop", |
|
53 |
"License :: OSI Approved :: GNU General Public License (GPL)", |
|
54 |
"Operating System :: OS Independent", |
|
55 |
"Programming Language :: Python", |
|
251
by Gediminas Paulauskas
Declare supported python versions (2.5-2.7) |
56 |
"Programming Language :: Python :: 2.6", |
57 |
"Programming Language :: Python :: 2.7", |
|
2
by ignas
Initial commit for schooltool.gradebook |
58 |
"Programming Language :: Zope", |
251
by Gediminas Paulauskas
Declare supported python versions (2.5-2.7) |
59 |
"Topic :: Education"], |
2
by ignas
Initial commit for schooltool.gradebook |
60 |
package_dir={'': 'src'}, |
251
by Gediminas Paulauskas
Declare supported python versions (2.5-2.7) |
61 |
packages=find_packages('src'), |
2
by ignas
Initial commit for schooltool.gradebook |
62 |
namespace_packages=["schooltool"], |
563
by Gediminas Paulauskas
Preparing release 2.4.1 |
63 |
install_requires=['schooltool>=2.4.1', |
549
by Gediminas Paulauskas
Add some direct dependencies. |
64 |
'lxml', |
65 |
'pytz', |
|
116
by Gediminas Paulauskas
Depend on z3c.optionstorage, gradebook uses it while schooltool doesn't |
66 |
'setuptools', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
67 |
'xlwt', |
68 |
'z3c.form', |
|
357
by Gediminas Paulauskas
Up version to 1.9.0, require schooltool>=1.9 |
69 |
'z3c.optionstorage', # BBB |
549
by Gediminas Paulauskas
Add some direct dependencies. |
70 |
'zc.table', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
71 |
'ZODB3', |
72 |
'zope.annotation', |
|
73 |
'zope.app.form', |
|
211
by Gediminas Paulauskas
Preparing release 0.8.1 |
74 |
'zope.app.generations>=3.5', |
124.1.4
by Gediminas Paulauskas
Replace zope.app.container with zope.container and zope.lifecycleevent |
75 |
'zope.browser', |
182
by Gediminas Paulauskas
Remove dependency on zope.app.pagetemplate by using zope.browserpage |
76 |
'zope.browserpage>=3.10.1', |
549
by Gediminas Paulauskas
Add some direct dependencies. |
77 |
'zope.cachedescriptors', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
78 |
'zope.component', |
124.1.5
by Gediminas Paulauskas
Replace zope.app.component with zope.site or zope.componentvocabulary |
79 |
'zope.componentvocabulary', |
124.1.4
by Gediminas Paulauskas
Replace zope.app.container with zope.container and zope.lifecycleevent |
80 |
'zope.container', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
81 |
'zope.event', |
217
by Gediminas Paulauskas
Update import that were moved to zope.formlib |
82 |
'zope.formlib>=4', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
83 |
'zope.html', |
84 |
'zope.i18n', |
|
85 |
'zope.i18nmessageid', |
|
86 |
'zope.interface', |
|
124
by Gediminas Paulauskas
Port to zope versions available in karmic (LP: #498803) |
87 |
'zope.keyreference', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
88 |
'zope.lifecycleevent', |
89 |
'zope.location', |
|
90 |
'zope.publisher', |
|
91 |
'zope.schema', |
|
92 |
'zope.security', |
|
93 |
'zope.traversing', |
|
94 |
'zope.viewlet'], |
|
124.1.6
by Gediminas Paulauskas
Remove zope.app.intid dependency |
95 |
extras_require={'test': ['zope.app.publication', |
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
96 |
'zope.app.testing', |
124.1.6
by Gediminas Paulauskas
Remove zope.app.intid dependency |
97 |
'zope.intid', |
98 |
'zope.site', |
|
124.1.3
by Gediminas Paulauskas
List all dependencies in setup.py |
99 |
'zope.testbrowser', |
247
by Gediminas Paulauskas
Make ``schooltool.lyceum.journal`` dependency optional. |
100 |
'zope.ucol', |
549
by Gediminas Paulauskas
Add some direct dependencies. |
101 |
'zc.datetimewidget', |
493
by Gediminas Paulauskas
Require schooltool 2.2 |
102 |
'schooltool.lyceum.journal>=2.2', |
477
by Douglas Cerna
Merged gradebook refactorings |
103 |
'schooltool.devtools>=0.6'], |
493
by Gediminas Paulauskas
Require schooltool 2.2 |
104 |
'journal': ['schooltool.lyceum.journal>=2.2'], |
247
by Gediminas Paulauskas
Make ``schooltool.lyceum.journal`` dependency optional. |
105 |
},
|
2
by ignas
Initial commit for schooltool.gradebook |
106 |
include_package_data=True, |
109.1.1
by Justas Sadzevicius
Enable automatic plugin inclusion. |
107 |
zip_safe=False, |
108 |
entry_points=""" |
|
109 |
[z3c.autoinclude.plugin]
|
|
110 |
target = schooltool
|
|
111 |
""", |
|
2
by ignas
Initial commit for schooltool.gradebook |
112 |
)
|