/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Curtis Hovey
  • Date: 2012-02-28 04:53:55 UTC
  • mto: This revision was merged to the branch mainline in revision 779.
  • Revision ID: sinzui.is@verizon.net-20120228045355-imv0idsjnep0jxbz
Fixed spelling, hushed lint, updated dummy cmd_build_i18n to actually run to tell
me to install the correct package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
"""GTK+ Frontends for various Bazaar commands."""
3
3
 
4
 
from info import *
 
4
import os
 
5
import sys
 
6
 
 
7
from info import bzr_plugin_version
5
8
 
6
9
from distutils.core import setup, Command
7
10
from distutils.command.install_data import install_data
8
11
from distutils.command.build import build
9
12
from distutils.command.sdist import sdist
10
13
try:
11
 
    from DistUtilsExtra.command import *
 
14
    from DistUtilsExtra.command import build_i18n
12
15
except ImportError:
13
 
   # Python distutils extra is not available.
14
 
    class cmd_build_i18n(Command):
 
16
    # Python distutils extra is not available.
 
17
    class cmd_build_i18n(build):
 
18
        user_options = []
 
19
 
 
20
        def initialize_options(self):
 
21
            self.domain = None
 
22
            self.desktop_files = None
 
23
 
 
24
        def finalize_options(self):
 
25
            pass
 
26
 
15
27
        def run(self):
16
 
            print >> sys.stderr, "For internationalization support you'll need to install https://launchpad.net/python-distutils-extra"
 
28
            print >> sys.stderr, (
 
29
                "For internationalization support you'll need to install "
 
30
                "https://launchpad.net/python-distutils-extra")
17
31
else:
18
32
    # Use build_i18n from DistUtilsExtra
19
33
    cmd_build_i18n = build_i18n.build_i18n
20
34
 
21
 
import os
22
 
import sys
23
35
 
24
36
class Check(Command):
25
37
    description = "Run unit tests"
40
52
    def run(self):
41
53
        from bzrlib.tests import TestLoader, TestSuite, TextTestRunner
42
54
        from bzrlib.plugin import PluginImporter
43
 
        PluginImporter.specific_paths["bzrlib.plugins.gtk"] = os.path.dirname(__file__)
 
55
        PluginImporter.specific_paths["bzrlib.plugins.gtk"] = os.path.dirname(
 
56
            __file__)
44
57
        from bzrlib.plugins.gtk.tests import load_tests
45
58
        suite = TestSuite()
46
59
        loader = TestLoader()
65
78
        return 'build_credits'
66
79
 
67
80
    def run(self):
68
 
        from bzrlib.plugin import load_plugins; load_plugins()
 
81
        from bzrlib.plugin import load_plugins
 
82
        load_plugins()
69
83
        from bzrlib.branch import Branch
70
84
        from bzrlib.plugins.stats.cmds import find_credits
71
85
 
128
142
    version = bzr_plugin_version[:3]
129
143
    version_string = ".".join([str(x) for x in version])
130
144
    setup(
131
 
        name = "bzr-gtk",
132
 
        version = version_string,
133
 
        maintainer = "Jelmer Vernooij",
134
 
        maintainer_email = "jelmer@samba.org",
135
 
        description = "GTK+ Frontends for various Bazaar commands",
136
 
        license = "GNU GPL v2 or later",
137
 
        scripts = ['bzr-handle-patch', 'bzr-notify'],
138
 
        url = "http://bazaar-vcs.org/BzrGtk",
139
 
        package_dir = {
 
145
        name="bzr-gtk",
 
146
        version=version_string,
 
147
        maintainer="Jelmer Vernooij",
 
148
        maintainer_email="jelmer@samba.org",
 
149
        description="GTK+ Frontends for various Bazaar commands",
 
150
        license="GNU GPL v2 or later",
 
151
        scripts=['bzr-handle-patch', 'bzr-notify'],
 
152
        url="http://bazaar-vcs.org/BzrGtk",
 
153
        package_dir={
140
154
            "bzrlib.plugins.gtk": ".",
141
155
            "bzrlib.plugins.gtk.viz": "viz",
142
156
            "bzrlib.plugins.gtk.annotate": "annotate",
144
158
            "bzrlib.plugins.gtk.branchview": "branchview",
145
159
            "bzrlib.plugins.gtk.preferences": "preferences",
146
160
            },
147
 
        packages = [
 
161
        packages=[
148
162
            "bzrlib.plugins.gtk",
149
163
            "bzrlib.plugins.gtk.viz",
150
164
            "bzrlib.plugins.gtk.annotate",
152
166
            "bzrlib.plugins.gtk.branchview",
153
167
            "bzrlib.plugins.gtk.preferences",
154
168
        ],
155
 
        data_files=[ ('share/bzr-gtk', ['credits.pickle']),
 
169
        data_files=[('share/bzr-gtk', ['credits.pickle']),
156
170
                    ('share/bzr-gtk/icons', ['icons/commit.png',
157
171
                                             'icons/commit16.png',
158
172
                                             'icons/diff.png',
178
192
                                            'bzr-notify.desktop']),
179
193
                    ('share/application-registry', ['bzr-gtk.applications']),
180
194
                    ('share/pixmaps', ['icons/bzr-icon-64.png']),
181
 
                    ('share/icons/hicolor/scalable/apps', ['icons/bzr-panel.svg']),
 
195
                    ('share/icons/hicolor/scalable/apps',
 
196
                        ['icons/bzr-panel.svg']),
182
197
                    ('share/icons/hicolor/scalable/emblems',
183
198
                     ['icons/emblem-bzr-added.svg',
184
199
                      'icons/emblem-bzr-conflict.svg',