~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Robert Collins
  • Date: 2012-02-02 07:42:24 UTC
  • Revision ID: robertc@robertcollins.net-20120202074224-ujea2ocm1u1ws1en
    - Make tz calculations consistent and use UTC in the UI everywhere we show
      a precise timestamp. (Robert Collins, #594591)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
 
2
#
 
3
# Copyright (C) 2008  Canonical Ltd.
 
4
#                     (Authored by Martin Albisetti <argentina@gmail.com>)
2
5
# This program is free software; you can redistribute it and/or modify
3
6
# it under the terms of the GNU General Public License as published by
4
7
# the Free Software Foundation; either version 2 of the License, or
12
15
# You should have received a copy of the GNU General Public License
13
16
# along with this program; if not, write to the Free Software
14
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 
15
19
"""Loggerhead is a web viewer for projects in bazaar"""
16
20
 
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
21
 
import glob
22
 
import os
23
 
import sys
 
21
from distutils.core import setup
 
22
 
24
23
import loggerhead
25
24
 
26
25
 
27
 
if sys.version_info < (2, 4):
28
 
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
29
 
    sys.exit(1)
30
 
 
31
 
class InstallData(install_data):
32
 
    def run(self):
33
 
        install_data.run(self)
34
 
 
35
26
setup(
36
27
    name = "loggerhead",
37
28
    version = loggerhead.__version__,
39
30
    license = "GNU GPL v2 or later",
40
31
    maintainer = "Michael Hudson",
41
32
    maintainer_email = "michael.hudson@canonical.com",
42
 
    scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
 
33
    scripts = [
 
34
        "serve-branches",
 
35
        "loggerhead.wsgi",
 
36
        ],
43
37
    packages = ["loggerhead",
44
 
               ],
45
 
    package_data = {"loggerhead":["templates/*"]},
46
 
    data_files=[
47
 
                ('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
48
 
                ('share/doc/loggerhead', ['loggerhead.conf.example'])
49
 
               ],
50
 
    cmdclass={'install_data':InstallData}
 
38
                "loggerhead/apps",
 
39
                "loggerhead/controllers",
 
40
                "loggerhead/templates",
 
41
                "bzrlib.plugins.loggerhead"],
 
42
    package_dir={'bzrlib.plugins.loggerhead':'.'},
 
43
    package_data = {"loggerhead": ["templates/*.pt",
 
44
                                   "static/css/*.css",
 
45
                                   "static/javascript/*.js",
 
46
                                   "static/javascript/yui/build/anim/*",
 
47
                                   "static/javascript/yui/build/base/*",
 
48
                                   "static/javascript/yui/build/cssbase/*",
 
49
                                   "static/javascript/yui/build/cssgrids/*",
 
50
                                   "static/javascript/yui/build/dd/*",
 
51
                                   "static/javascript/yui/build/dump/*",
 
52
                                   "static/javascript/yui/build/get/*",
 
53
                                   "static/javascript/yui/build/json/*",
 
54
                                   "static/javascript/yui/build/node/*",
 
55
                                   "static/javascript/yui/build/queue/*",
 
56
                                   "static/javascript/yui/build/yui/*",
 
57
                                   "static/javascript/yui/build/attribute/*",
 
58
                                   "static/javascript/yui/build/cookie/*",
 
59
                                   "static/javascript/yui/build/cssfonts/*",
 
60
                                   "static/javascript/yui/build/cssreset/*",
 
61
                                   "static/javascript/yui/build/dom/*",
 
62
                                   "static/javascript/yui/build/event/*",
 
63
                                   "static/javascript/yui/build/io/*",
 
64
                                   "static/javascript/yui/build/loader/*",
 
65
                                   "static/javascript/yui/build/oop/*",
 
66
                                   "static/javascript/yui/build/substitute/*",
 
67
                                   "static/javascript/yui/build/yui-base/*",
 
68
                                   "static/images/*"]},
 
69
    data_files = [
 
70
        ('share/man/man1', ['serve-branches.1']),
 
71
        ('share/doc/loggerhead', ['loggerhead.conf.example',
 
72
                                  'apache-loggerhead.conf',
 
73
                                  'bazaar.conf']),
 
74
        ],
51
75
    )
52