~replaceafill/schooltool/cando-multi-term-gradebook

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Justas Sadzevicius
  • Date: 2012-02-04 15:24:01 UTC
  • Revision ID: justas@pov.lt-20120204152401-rhvnqks04hh6qxxg
Initial schooltool.cando egg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 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.
 
19
#
 
20
"""
 
21
SchoolTool CanDo setup script.
 
22
"""
 
23
 
 
24
import os
 
25
from setuptools import setup, find_packages
 
26
 
 
27
if os.path.exists("version.txt"):
 
28
    version = open("version.txt").read().strip()
 
29
else:
 
30
    version = open("version.txt.in").read().strip()
 
31
 
 
32
def read(*rnames):
 
33
    text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
34
    return text
 
35
 
 
36
setup(
 
37
    name="schooltool.cando",
 
38
    description="CanDo plugin for SchoolTool",
 
39
    long_description=(
 
40
        read('README.txt')
 
41
        + '\n\n' +
 
42
        read('CHANGES.txt')
 
43
        ),
 
44
    version=version,
 
45
    url='http://www.schooltool.org',
 
46
    license="GPL",
 
47
    maintainer="SchoolTool Developers",
 
48
    maintainer_email="schooltool-developers@lists.launchpad.net",
 
49
    platforms=["any"],
 
50
    classifiers=["Development Status :: 4 - Beta",
 
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",
 
56
    "Programming Language :: Python :: 2.5",
 
57
    "Programming Language :: Python :: 2.6",
 
58
    "Programming Language :: Python :: 2.7",
 
59
    "Programming Language :: Zope",
 
60
    "Topic :: Education"],
 
61
    package_dir={'': 'src'},
 
62
    packages=find_packages('src'),
 
63
    namespace_packages=["schooltool"],
 
64
    install_requires=['schooltool',
 
65
                      'schooltool.gradebook',
 
66
                      'setuptools',
 
67
                      'zope.i18n',
 
68
                      'zope.i18nmessageid'],
 
69
    extras_require={'test': []},
 
70
    include_package_data=True,
 
71
    zip_safe=False,
 
72
    entry_points="""
 
73
        [z3c.autoinclude.plugin]
 
74
        target = schooltool
 
75
        """,
 
76
    )