[pypy-commit] buildbot default: A bit of pep-8

csenger noreply at buildbot.pypy.org
Mon Jan 30 19:35:42 CET 2012


Author: Carsten Senger <senger at rehfisch.de>
Branch: 
Changeset: r630:ad09bed12f93
Date: 2012-01-25 14:17 +0100
http://bitbucket.org/pypy/buildbot/changeset/ad09bed12f93/

Log:	A bit of pep-8

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -1,6 +1,5 @@
 from buildbot.process import factory
-from buildbot.steps import source, shell, transfer, master
-from buildbot.status.builder import SUCCESS
+from buildbot.steps import shell, transfer
 from buildbot.process.properties import WithProperties
 from buildbot import locks
 from pypybuildbot.util import symlink_force
@@ -30,6 +29,7 @@
             return self.describe(True) + ['aborted']
         return shell.ShellCommand.getText(self, cmd, results)
 
+
 class PyPyUpload(transfer.FileUpload):
     parms = transfer.FileUpload.parms + ['basename']
 
@@ -68,6 +68,7 @@
         except OSError:
             pass
 
+
 class Translate(ShellCmd):
     name = "translate"
     description = ["translating"]
@@ -124,7 +125,7 @@
             d[key] = summary
         builder.saveYourself()
 
- 
+
 # _______________________________________________________________
 
 class UpdateCheckout(ShellCmd):
@@ -162,12 +163,15 @@
             # '|' in the command-line, because it doesn't work on Windows
             num = got_revision.find(':')
             if num > 0:
-                got_revision = got_revision[:num+13]
+                got_revision = got_revision[:num + 13]
             #
             final_file_name = got_revision.replace(':', '-')
             # ':' should not be part of filenames --- too many issues
-            self.build.setProperty('got_revision', got_revision, 'got_revision')
-            self.build.setProperty('final_file_name', final_file_name, 'got_revision')
+            self.build.setProperty('got_revision', got_revision,
+                                   'got_revision')
+            self.build.setProperty('final_file_name', final_file_name,
+                                   'got_revision')
+
 
 def update_hg(platform, factory, repourl, workdir, use_branch,
               force_branch=None):
@@ -176,8 +180,8 @@
     else:
         command = "if [ ! -d .hg ]; then rm -fr * .[a-z]*; fi"
     factory.addStep(ShellCmd(description="rmdir?",
-                             command = command,
-                             workdir = workdir,
+                             command=command,
+                             workdir=workdir,
                              haltOnFailure=False))
     #
     if platform == "win32":
@@ -186,27 +190,29 @@
         command = "if [ ! -d .hg ]; then %s; fi"
     command = command % ("hg clone -U " + repourl + " .")
     factory.addStep(ShellCmd(description="hg clone",
-                             command = command,
-                             workdir = workdir,
+                             command=command,
+                             workdir=workdir,
                              haltOnFailure=True))
     #
-    factory.addStep(ShellCmd(description="hg purge",
-                             command = "hg --config extensions.purge= purge --all",
-                             workdir = workdir,
-                             haltOnFailure=True))
+    factory.addStep(
+        ShellCmd(description="hg purge",
+                 command="hg --config extensions.purge=purge --all",
+                 workdir=workdir,
+                 haltOnFailure=True))
     #
     factory.addStep(ShellCmd(description="hg pull",
-                             command = "hg pull",
-                             workdir = workdir))
+                             command="hg pull",
+                             workdir=workdir))
     #
     if use_branch or force_branch:
-        factory.addStep(UpdateCheckout(workdir = workdir,
+        factory.addStep(UpdateCheckout(workdir=workdir,
                                        haltOnFailure=True,
                                        force_branch=force_branch))
     else:
         factory.addStep(ShellCmd(description="hg update",
-                                 command = "hg update --clean",
-                                 workdir = workdir))
+                                 command="hg update --clean",
+                                 workdir=workdir))
+
 
 def setup_steps(platform, factory, workdir=None,
                 repourl='https://bitbucket.org/pypy/pypy/',
@@ -239,10 +245,11 @@
                      "--root=pypy", "--timeout=10800"
                      ] + ["--config=%s" % cfg for cfg in extra_cfgs],
             logfiles={'pytestLog': 'testrun.log'},
-            timeout = 4000,
+            timeout=4000,
             env={"PYTHONPATH": ['.'],
                  "PYPYCHERRYPICK": cherrypick}))
 
+
 class Translated(factory.BuildFactory):
 
     def __init__(self, platform='linux',
@@ -270,7 +277,7 @@
                          "--root=pypy", "--timeout=1800"
                          ] + ["--config=%s" % cfg for cfg in app_tests],
                 logfiles={'pytestLog': 'pytest-A.log'},
-                timeout = 4000,
+                timeout=4000,
                 env={"PYTHONPATH": ['.']}))
 
         if lib_python:
@@ -329,7 +336,7 @@
                                 masterdest=WithProperties(nightly),
                                 basename=name + extension,
                                 workdir='.',
-                                blocksize=100*1024))
+                                blocksize=100 * 1024))
 
 
 class JITBenchmark(factory.BuildFactory):


More information about the pypy-commit mailing list