/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk
498.3.1 by Jelmer Vernooij
Use python3 by default.
1
#!/usr/bin/env python3
181.1.6 by Martin Albisetti
* Removed unused file
2
#
3
# Copyright (C) 2008  Canonical Ltd.
4
#                     (Authored by Martin Albisetti <argentina@gmail.com>)
183.2.1 by John Arbash Meinel
Add Copyright information to most files.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
9
#
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
181.1.9 by Michael Hudson
some tweaks
18
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
19
"""Loggerhead is a web viewer for projects in bazaar"""
20
491.2.29 by Jelmer Vernooij
Use setuptools.
21
from setuptools import setup
389.2.1 by Matt Nordhoff
Some random PEP 8 and otehr stylistic changes.
22
181.1.5 by Martin Albisetti
Move version to __init__
23
import loggerhead
181.1.8 by Martin Albisetti
* Removed unused imports
24
58 by Robey Pointer
add setup.py info so an sdist tarball can be made
25
495 by Colin Watson
Add setup metadata for long description.
26
with open("README.rst") as readme:
27
    long_description = readme.read()
28
29
1 by Robey Pointer
initial checkin
30
setup(
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
31
    name = "loggerhead",
181.1.5 by Martin Albisetti
Move version to __init__
32
    version = loggerhead.__version__,
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
33
    description = "Loggerhead is a web viewer for projects in bazaar",
495 by Colin Watson
Add setup metadata for long description.
34
    long_description=long_description,
35
    long_description_content_type="text/x-rst",
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
36
    license = "GNU GPL v2 or later",
37
    maintainer = "Michael Hudson",
38
    maintainer_email = "michael.hudson@canonical.com",
464.1.1 by Robert Collins
Fix conflicts.
39
    scripts = [
491.2.45 by Jelmer Vernooij
Rename serve-branches to loggerhead-serve.
40
        "loggerhead-serve",
464.1.1 by Robert Collins
Fix conflicts.
41
        ],
230.1.1 by Steve 'Ashcrow' Milner
Updated to follow pep8.
42
    packages = ["loggerhead",
43
                "loggerhead/apps",
44
                "loggerhead/controllers",
467.3.1 by Toshio Kuratomi
Include new files in the sdist and install
45
                "loggerhead/middleware",
359.1.1 by Jelmer Vernooij
Install the bzr plugin for loggerhead in setup.py.
46
                "loggerhead/templates",
491.2.1 by Jelmer Vernooij
s/bzrlib/breezy/
47
                "breezy.plugins.loggerhead"],
48
    package_dir={'breezy.plugins.loggerhead':'.'},
230.1.1 by Steve 'Ashcrow' Milner
Updated to follow pep8.
49
    package_data = {"loggerhead": ["templates/*.pt",
50
                                   "static/css/*.css",
245 by Martin Albisetti
Fixed setup to install YUI
51
                                   "static/javascript/*.js",
230.1.1 by Steve 'Ashcrow' Milner
Updated to follow pep8.
52
                                   "static/images/*"]},
181.1.9 by Michael Hudson
some tweaks
53
    data_files = [
491.2.45 by Jelmer Vernooij
Rename serve-branches to loggerhead-serve.
54
        ('share/man/man1', ['loggerhead-serve.1']),
468.1.1 by Jelmer Vernooij
Stop trying to install loggerhead.conf.example from setup.py after it has been removed.
55
        ('share/doc/loggerhead', ['apache-loggerhead.conf',
467.3.1 by Toshio Kuratomi
Include new files in the sdist and install
56
                                  'loggerheadd',
491.2.19 by Jelmer Vernooij
s/bazaar.conf/breezy.conf.
57
                                  'breezy.conf']),
181.1.9 by Michael Hudson
some tweaks
58
        ],
503.1.1 by Colin Watson
Drop dependency on simplejson.
59
    install_requires=['paste', 'bleach'],
491.2.40 by Jelmer Vernooij
Fix some more tests on Python 3.
60
    testsuite='loggerhead.tests.test_suite',
1 by Robey Pointer
initial checkin
61
    )