~sielibre/schooltool.isli/2.10_packaging

1 by Douglas Cerna
Initial commit
1
#!/usr/bin/env python
2
#
3
# SchoolTool - common information systems platform for school administration
4
# Copyright (c) 2008, 2009, 2010, 2011 Shuttleworth Foundation,
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
#
16
# You should have received a copy of the GNU General Public License
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
#
19
"""
20
SchoolTool ISLI setup script.
21
"""
22
23
import os
24
from setuptools import setup, find_packages
25
26
if os.path.exists("version.txt"):
27
    version = open("version.txt").read().strip()
28
else:
29
    version = open("version.txt.in").read().strip()
30
31
def read(*rnames):
32
    text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
33
    return text
34
35
setup(
36
    name="schooltool.isli",
37
    description="SchoolTool ISLI",
38
    long_description=(
39
        read('README.txt')
40
        + '\n\n' +
41
        read('CHANGES.txt')
42
        ),
43
    version=version,
44
    url='http://www.schooltool.org',
45
    license="GPL",
46
    maintainer="SchoolTool Developers",
47
    maintainer_email="schooltool-developers@lists.launchpad.net",
48
    platforms=["any"],
49
    classifiers=["Development Status :: 4 - Beta",
50
    "Environment :: Web Environment",
51
    "Intended Audience :: End Users/Desktop",
52
    "License :: OSI Approved :: GNU General Public License (GPL)",
53
    "Operating System :: OS Independent",
54
    "Programming Language :: Python",
55
    "Programming Language :: Python :: 2",
56
    "Programming Language :: Python :: 2.6",
57
    "Programming Language :: Python :: 2.7",
58
    "Programming Language :: Zope",
59
    "Topic :: Education"],
60
    package_dir={'': 'src'},
61
    packages=find_packages('src'),
62
    namespace_packages=["schooltool"],
63
    install_requires=['schooltool>=2.8',
64
                      'schooltool.gradebook>=2.8',
65
                      'schooltool.lyceum.journal>=2.8',
8 by Douglas Cerna
Copied schooltool.peas attendance and demographics reports
66
                      'schooltool.fee',
1 by Douglas Cerna
Initial commit
67
                      'schooltool.ark',
68
                      'setuptools',
69
                      'zope.i18n',
70
                      'zope.i18nmessageid'],
71
    extras_require={'test': ['schooltool.devtools>=0.6']},
72
    include_package_data=True,
73
    zip_safe=False,
74
    entry_points="""
75
        [z3c.autoinclude.plugin]
76
        target = schooltool
77
        """,
78
    )