Skip to content

Commit

Permalink
Fix whitespace lint E241 and E251
Browse files Browse the repository at this point in the history
Includes editing the third-party bootstrap script which should maybe
just go, but can deal with that later.
  • Loading branch information
bz2 committed Nov 18, 2018
1 parent 04f6020 commit 60266f9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 38 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Expand Up @@ -6,8 +6,6 @@ ignore =
D
I
E123
E241
E251
E261
E265
E266
Expand Down
49 changes: 25 additions & 24 deletions setup.py
Expand Up @@ -32,13 +32,13 @@ def get_long_description():
# META INFORMATION FOR SETUP
# see http://docs.python.org/dist/meta-data.html
META_INFO = {
'name': 'breezy',
'version': breezy.__version__,
'maintainer': 'Breezy Developers',
'maintainer_email': 'team@breezy-vcs.org',
'url': 'https://www.breezy-vcs.org/',
'description': 'Friendly distributed version control system',
'license': 'GNU GPL v2',
'name': 'breezy',
'version': breezy.__version__,
'maintainer': 'Breezy Developers',
'maintainer_email': 'team@breezy-vcs.org',
'url': 'https://www.breezy-vcs.org/',
'description': 'Friendly distributed version control system',
'license': 'GNU GPL v2',
'download_url': 'https://launchpad.net/brz/+download',
'long_description': get_long_description(),
'classifiers': [
Expand Down Expand Up @@ -382,9 +382,9 @@ def get_tbzr_py2exe_info(includes, excludes, packages, console_targets,
# tbzrcache executables - a "console" version for debugging and a
# GUI version that is generally used.
tbzrcache = dict(
script = os.path.join(tbzr_root, "scripts", "tbzrcache.py"),
icon_resources = icon_resources,
other_resources = other_resources,
script=os.path.join(tbzr_root, "scripts", "tbzrcache.py"),
icon_resources=icon_resources,
other_resources=other_resources,
)
console_targets.append(tbzrcache)

Expand All @@ -395,9 +395,9 @@ def get_tbzr_py2exe_info(includes, excludes, packages, console_targets,

# ditto for the tbzrcommand tool
tbzrcommand = dict(
script = os.path.join(tbzr_root, "scripts", "tbzrcommand.py"),
icon_resources = icon_resources,
other_resources = other_resources,
script=os.path.join(tbzr_root, "scripts", "tbzrcommand.py"),
icon_resources=icon_resources,
other_resources=other_resources,
)
console_targets.append(tbzrcommand)
tbzrcommandw = tbzrcommand.copy()
Expand Down Expand Up @@ -561,17 +561,18 @@ def run(self):
self.outfiles.extend([f + 'o' for f in compile_names])
# end of class install_data_with_bytecompile

target = py2exe.build_exe.Target(script = "brz",
dest_base = "brz",
icon_resources = [(0, 'brz.ico')],
name = META_INFO['name'],
version = version_str,
description = META_INFO['description'],
author = META_INFO['author'],
copyright = "(c) Canonical Ltd, 2005-2010",
company_name = "Canonical Ltd.",
comments = META_INFO['description'],
)
target = py2exe.build_exe.Target(
script="brz",
dest_base="brz",
icon_resources=[(0, 'brz.ico')],
name=META_INFO['name'],
version=version_str,
description=META_INFO['description'],
author=META_INFO['author'],
copyright="(c) Canonical Ltd, 2005-2010",
company_name="Canonical Ltd.",
comments=META_INFO['description'],
)
gui_target = copy.copy(target)
gui_target.dest_base = "bzrw"

Expand Down
16 changes: 4 additions & 12 deletions tools/win32/bootstrap.py
Expand Up @@ -48,16 +48,13 @@ def quote(c):

cmd = 'from setuptools.command.easy_install import main; main()'
ws = pkg_resources.working_set
env = dict(
os.environ,
PYTHONPATH=ws.find(pkg_resources.Requirement.parse('setuptools')).location)

if is_jython:
import subprocess

env = dict(
os.environ,
PYTHONPATH=ws.find(
pkg_resources.Requirement.parse('setuptools')).location
)

assert subprocess.Popen(
[sys.executable] +
['-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout'],
Expand All @@ -66,12 +63,7 @@ def quote(c):
else:
assert os.spawnle(
os.P_WAIT, sys.executable, quote(sys.executable),
'-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout',
dict(
os.environ,
PYTHONPATH=
ws.find(pkg_resources.Requirement.parse('setuptools')).location
),
'-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout', env,
) == 0

ws.add_entry(tmpeggs)
Expand Down

0 comments on commit 60266f9

Please sign in to comment.