~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: William Grant
  • Date: 2011-03-24 23:02:29 UTC
  • mfrom: (441.1.7 xss-fix)
  • Revision ID: william.grant@canonical.com-20110324230229-zq85fy6aqvlyylbu
Improve escaping of filenames in revision views. Fixes a couple of XSS holes.

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
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
15
18
 
16
 
from setuptools import setup, find_packages
17
 
from turbogears.finddata import find_package_data
18
 
 
19
 
import os
20
 
execfile(os.path.join("loggerhead", "release.py"))
 
19
"""Loggerhead is a web viewer for projects in bazaar"""
 
20
 
 
21
from distutils.core import setup
 
22
 
 
23
import loggerhead
21
24
 
22
25
 
23
26
setup(
24
 
    name="loggerhead",
25
 
    version=version,
26
 
    
27
 
    description=description,
28
 
    author=author,
29
 
    author_email=email,
30
 
    url=url,
31
 
    download_url=download_url,
32
 
    license=license,
33
 
    maintainer="Michael Hudson",
34
 
    maintainer_email="michael.hudson@canonical.com",
35
 
    
36
 
    install_requires = [
37
 
        "TurboGears >= 1.0b1",
38
 
# for some reason, distutils can't find bzr.
39
 
#        "bzr >= 0.13",
40
 
    ],
41
 
    scripts = ["start-loggerhead", "stop-loggerhead"],
42
 
    zip_safe=False,
43
 
    packages=find_packages(),
44
 
    package_data = find_package_data(where='loggerhead',
45
 
                                     package='loggerhead'),
46
 
#    data_files = find_package_data(where='loggerhead', package='loggerhead'),
47
 
    keywords = [
48
 
        'turbogears.app',
49
 
    ],
50
 
    classifiers = [
51
 
        'Development Status :: 3 - Alpha',
52
 
        'Operating System :: OS Independent',
53
 
        'Programming Language :: Python',
54
 
        'Framework :: TurboGears',
55
 
        'Framework :: TurboGears :: Applications',
56
 
    ],
57
 
    test_suite = 'nose.collector',
 
27
    name = "loggerhead",
 
28
    version = loggerhead.__version__,
 
29
    description = "Loggerhead is a web viewer for projects in bazaar",
 
30
    license = "GNU GPL v2 or later",
 
31
    maintainer = "Michael Hudson",
 
32
    maintainer_email = "michael.hudson@canonical.com",
 
33
    scripts = ["serve-branches"],
 
34
    packages = ["loggerhead",
 
35
                "loggerhead/apps",
 
36
                "loggerhead/controllers",
 
37
                "loggerhead/templates",
 
38
                "bzrlib.plugins.loggerhead"],
 
39
    package_dir={'bzrlib.plugins.loggerhead':'.'},
 
40
    package_data = {"loggerhead": ["templates/*.pt",
 
41
                                   "static/css/*.css",
 
42
                                   "static/javascript/*.js",
 
43
                                   "static/javascript/yui/build/anim/*",
 
44
                                   "static/javascript/yui/build/base/*",
 
45
                                   "static/javascript/yui/build/cssbase/*",
 
46
                                   "static/javascript/yui/build/cssgrids/*",
 
47
                                   "static/javascript/yui/build/dd/*",
 
48
                                   "static/javascript/yui/build/dump/*",
 
49
                                   "static/javascript/yui/build/get/*",
 
50
                                   "static/javascript/yui/build/json/*",
 
51
                                   "static/javascript/yui/build/node/*",
 
52
                                   "static/javascript/yui/build/queue/*",
 
53
                                   "static/javascript/yui/build/yui/*",
 
54
                                   "static/javascript/yui/build/attribute/*",
 
55
                                   "static/javascript/yui/build/cookie/*",
 
56
                                   "static/javascript/yui/build/cssfonts/*",
 
57
                                   "static/javascript/yui/build/cssreset/*",
 
58
                                   "static/javascript/yui/build/dom/*",
 
59
                                   "static/javascript/yui/build/event/*",
 
60
                                   "static/javascript/yui/build/io/*",
 
61
                                   "static/javascript/yui/build/loader/*",
 
62
                                   "static/javascript/yui/build/oop/*",
 
63
                                   "static/javascript/yui/build/substitute/*",
 
64
                                   "static/javascript/yui/build/yui-base/*",
 
65
                                   "static/images/*"]},
 
66
    data_files = [
 
67
        ('share/man/man1', ['serve-branches.1']),
 
68
        ],
58
69
    )
59