Skip to content

Commit

Permalink
Merge branch 'buildbot-0.8.7' of git://github.com/tomprince/buildbot …
Browse files Browse the repository at this point in the history
…into buildbot-0.8.7
  • Loading branch information
djmitche committed Sep 22, 2012
2 parents 866c687 + 74e75cf commit d1ac1e2
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -35,4 +35,3 @@ common/googlecode_upload.py
master/docs/tutorial/_build
_build
.tox
master/setuptools_trial*
3 changes: 2 additions & 1 deletion master/buildbot/__init__.py
Expand Up @@ -36,7 +36,8 @@
VERSION_MATCH = re.compile(r'\d+\.\d+\.\d+(\w|-)*')

try:
p = Popen(['git', 'describe', '--tags', '--always'], stdout=PIPE, stderr=STDOUT)
dir = os.path.dirname(os.path.abspath(__file__))
p = Popen(['git', 'describe', '--tags', '--always'], cwd=dir, stdout=PIPE, stderr=STDOUT)
out = p.communicate()[0]

if (not p.returncode) and out:
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/buildslave.py
Expand Up @@ -616,7 +616,7 @@ def _mail_missing_message(self, subject, text):
# first, see if we have a MailNotifier we can use. This gives us a
# fromaddr and a relayhost.
buildmaster = self.botmaster.master
for st in buildmaster.statusTargets:
for st in buildmaster.status:
if isinstance(st, MailNotifier):
break
else:
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/status/client.py
Expand Up @@ -67,7 +67,7 @@ def remote_isFinished(self):

def remote_waitUntilFinished(self):
d = self.b.waitUntilFinished()
d.addCallback(lambda res: self)
d.addCallback(makeRemote)
return d

def remote_getResults(self):
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/status/web/authz.py
Expand Up @@ -168,7 +168,7 @@ def login(self, request):
def check_authenticate(res):
if res:
cookie, s = self.sessions.new(user, self.auth.getUserInfo(user))
request.addCookie(COOKIE_KEY, cookie, s.getExpiration(),path="/")
request.addCookie(COOKIE_KEY, cookie, expires=s.getExpiration(),path="/")
request.received_cookies = {COOKIE_KEY:cookie}
return cookie
else:
Expand Down
1 change: 1 addition & 0 deletions master/buildbot/status/web/templates/forms.html
Expand Up @@ -112,6 +112,7 @@
{% macro force_build_one_scheduler(force_url, authz, request, on_all, on_selected, builders, sch, default_props) %}
<form method="post" name="force_build" action="{{ force_url }}" class="command_forcebuild">

<h3>{{ sch.name|e }}</h3>
{% if on_all %}
<p>To force a build on <strong>all Builders</strong>, fill out the following fields
and push the 'Force Build' button</p>
Expand Down
4 changes: 2 additions & 2 deletions master/buildbot/test/unit/test_status_web_authz_Authz.py
Expand Up @@ -34,8 +34,8 @@ def getUser(self):

def getPassword(self):
return None
def addCookie(self, key, cookie, expiration, path):
self.send_cookies.append((key, cookie, expiration, path))
def addCookie(self, key, cookie, expires, path):
self.send_cookies.append((key, cookie, expires, path))

class StubHttpAuthRequest(object):
# all we need from a request is username/password
Expand Down
6 changes: 1 addition & 5 deletions master/setup.py
Expand Up @@ -23,7 +23,7 @@
import os
import glob

from distutils.core import setup, Command
from distutils.core import setup
from buildbot import version

from distutils.command.install_data import install_data
Expand Down Expand Up @@ -195,10 +195,6 @@ def make_release_tree(self, base_dir, files):
'sqlalchemy-migrate ==0.6.1, ==0.7.0, ==0.7.1, ==0.7.2',
'python-dateutil==1.5',
]
if '--help-commands' in sys.argv or 'trial' in sys.argv or 'test' in sys.argv:
setup_args['setup_requires'] = [
'setuptools_trial',
]
setup_args['tests_require'] = [
'mock',
]
Expand Down
3 changes: 0 additions & 3 deletions slave/setup.py
Expand Up @@ -121,9 +121,6 @@ def make_release_tree(self, base_dir, files):
setup_args['install_requires'] = [
'twisted >= 8.0.0',
]
setup_args['setup_requires'] = [
'setuptools_trial',
]
setup_args['tests_require'] = [
'mock',
]
Expand Down

0 comments on commit d1ac1e2

Please sign in to comment.