2
# This program is free software; you can redistribute it and/or modify
3
# it under the terms of the GNU General Public License as published by
4
# the Free Software Foundation; either version 2 of the License, or
5
# (at your option) any later version.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
"""Loggerhead is a web viewer for projects in bazaar"""
1
from setuptools import setup, find_packages
2
from turbogears.finddata import find_package_data
17
from distutils.core import setup, Command
18
from distutils.command.install_data import install_data
19
from distutils.dep_util import newer
20
from distutils.log import info
27
if sys.version_info < (2, 4):
28
sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
31
class InstallData(install_data):
33
install_data.run(self)
5
execfile(os.path.join("loggerhead", "release.py"))
37
version = loggerhead.__version__,
38
description = "Loggerhead is a web viewer for projects in bazaar",
39
license = "GNU GPL v2 or later",
40
maintainer = "Michael Hudson",
41
maintainer_email = "michael.hudson@canonical.com",
42
scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
43
packages = ["loggerhead",
45
package_data = {"loggerhead":["templates/*"]},
47
('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
48
('share/doc/loggerhead', ['loggerhead.conf.example'])
50
cmdclass={'install_data':InstallData}
11
# uncomment the following lines if you fill them out in release.py
12
#description=description,
16
#download_url=download_url,
20
"TurboGears >= 1.0b1",
22
scripts = ["start-loggerhead.py"],
24
packages=find_packages(),
25
package_data = find_package_data(where='loggerhead',
26
package='loggerhead'),
28
# Use keywords if you'll be adding your package to the
31
# if this has widgets, uncomment the next line
32
# 'turbogears.widgets',
34
# if this has a tg-admin command, uncomment the next line
35
# 'turbogears.command',
37
# if this has identity providers, uncomment the next line
38
# 'turbogears.identity.provider',
40
# If this is a template plugin, uncomment the next line
41
# 'python.templating.engines',
43
# If this is a full application, uncomment the next line
47
'Development Status :: 3 - Alpha',
48
'Operating System :: OS Independent',
49
'Programming Language :: Python',
50
'Topic :: Software Development :: Libraries :: Python Modules',
51
'Framework :: TurboGears',
52
# if this is an application that you'll distribute through
53
# the Cheeseshop, uncomment the next line
54
# 'Framework :: TurboGears :: Applications',
56
# if this is a package that includes widgets that you'll distribute
57
# through the Cheeseshop, uncomment the next line
58
# 'Framework :: TurboGears :: Widgets',
60
test_suite = 'nose.collector',