[pypy-commit] buildbot default: rename the ugly bitbucket_hook into bbhook
antocuni
noreply at buildbot.pypy.org
Tue May 17 22:38:57 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r509:719c9a48c26f
Date: 2011-05-17 22:48 +0200
http://bitbucket.org/pypy/buildbot/changeset/719c9a48c26f/
Log: rename the ugly bitbucket_hook into bbhook
diff --git a/bitbucket_hook/__init__.py b/bbhook/__init__.py
rename from bitbucket_hook/__init__.py
rename to bbhook/__init__.py
diff --git a/bitbucket_hook/hook.py b/bbhook/hook.py
rename from bitbucket_hook/hook.py
rename to bbhook/hook.py
diff --git a/bitbucket_hook/irc.py b/bbhook/irc.py
rename from bitbucket_hook/irc.py
rename to bbhook/irc.py
diff --git a/bitbucket_hook/mail.py b/bbhook/mail.py
rename from bitbucket_hook/mail.py
rename to bbhook/mail.py
diff --git a/bitbucket_hook/main.py b/bbhook/main.py
rename from bitbucket_hook/main.py
rename to bbhook/main.py
diff --git a/bitbucket_hook/repos/README b/bbhook/repos/README
rename from bitbucket_hook/repos/README
rename to bbhook/repos/README
diff --git a/bitbucket_hook/run.py b/bbhook/run.py
rename from bitbucket_hook/run.py
rename to bbhook/run.py
diff --git a/bitbucket_hook/scm.py b/bbhook/scm.py
rename from bitbucket_hook/scm.py
rename to bbhook/scm.py
diff --git a/bitbucket_hook/stdoutlog.py b/bbhook/stdoutlog.py
rename from bitbucket_hook/stdoutlog.py
rename to bbhook/stdoutlog.py
diff --git a/bitbucket_hook/test/__init__.py b/bbhook/test/__init__.py
rename from bitbucket_hook/test/__init__.py
rename to bbhook/test/__init__.py
diff --git a/bitbucket_hook/test/conftest.py b/bbhook/test/conftest.py
rename from bitbucket_hook/test/conftest.py
rename to bbhook/test/conftest.py
--- a/bitbucket_hook/test/conftest.py
+++ b/bbhook/test/conftest.py
@@ -10,7 +10,7 @@
def pytest_funcarg__monkeypatch(request):
- from bitbucket_hook import irc, mail
+ from bbhook import irc, mail
mp = request.getfuncargvalue('monkeypatch')
mails = request.getfuncargvalue('mails')
diff --git a/bitbucket_hook/test/test_hook.py b/bbhook/test/test_hook.py
rename from bitbucket_hook/test/test_hook.py
rename to bbhook/test/test_hook.py
--- a/bitbucket_hook/test/test_hook.py
+++ b/bbhook/test/test_hook.py
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
import py
import pytest
-from bitbucket_hook import hook, scm, mail, irc
+from bbhook import hook, scm, mail, irc
#XXX
hook.app.config['USE_COLOR_CODES'] = False
diff --git a/bitbucket_hook/test/test_irc.py b/bbhook/test/test_irc.py
rename from bitbucket_hook/test/test_irc.py
rename to bbhook/test/test_irc.py
--- a/bitbucket_hook/test/test_irc.py
+++ b/bbhook/test/test_irc.py
@@ -1,4 +1,4 @@
-from bitbucket_hook import irc
+from bbhook import irc
import subprocess
def fl(*paths):
diff --git a/bitbucket_hook/test/test_main.py b/bbhook/test/test_main.py
rename from bitbucket_hook/test/test_main.py
rename to bbhook/test/test_main.py
--- a/bitbucket_hook/test/test_main.py
+++ b/bbhook/test/test_main.py
@@ -1,5 +1,5 @@
-from bitbucket_hook.main import app
-from bitbucket_hook import hook
+from bbhook.main import app
+from bbhook import hook
def test_get():
client = app.test_client()
diff --git a/bitbucket_hook/test/test_scm.py b/bbhook/test/test_scm.py
rename from bitbucket_hook/test/test_scm.py
rename to bbhook/test/test_scm.py
--- a/bitbucket_hook/test/test_scm.py
+++ b/bbhook/test/test_scm.py
@@ -2,7 +2,7 @@
import py
import pytest
-from bitbucket_hook import scm
+from bbhook import scm
def test_non_ascii_encoding_guess_utf8(monkeypatch):
diff --git a/bitbucket_hook/test_hook_testcall.py b/bbhook/test_hook_testcall.py
rename from bitbucket_hook/test_hook_testcall.py
rename to bbhook/test_hook_testcall.py
--- a/bitbucket_hook/test_hook_testcall.py
+++ b/bbhook/test_hook_testcall.py
@@ -3,8 +3,8 @@
def test_handlecall():
- from bitbucket_hook.hook import handle
- from bitbucket_hook.main import app
+ from bbhook.hook import handle
+ from bbhook.main import app
repopath = os.path.dirname(os.path.dirname(__file__))
print 'Repository path:', repopath
test_payload = {u'repository': {u'absolute_url': '',
@@ -28,7 +28,7 @@
{u'author': u'antocuni',
u'branch': u'default',
- u'files': [{u'file': u'bitbucket_hook/hook.py',
+ u'files': [{u'file': u'bbhook/hook.py',
u'type': u'modified'}],
u'message': u"don't send newlines to irc",
u'node': u'e17583fbfa5c',
@@ -53,13 +53,13 @@
{u'author': u'antocuni',
u'branch': u'default',
- u'files': [{u'file': u'bitbucket_hook/hook.py',
+ u'files': [{u'file': u'bbhook/hook.py',
u'type': u'modified'},
- {u'file': u'bitbucket_hook/__init__.py',
+ {u'file': u'bbhook/__init__.py',
u'type': u'added'},
- {u'file': u'bitbucket_hook/test/__init__.py',
+ {u'file': u'bbhook/test/__init__.py',
u'type': u'added'},
- {u'file': u'bitbucket_hook/test/test_hook.py',
+ {u'file': u'bbhook/test/test_hook.py',
u'type': u'added'}],
u'message': u'partially refactor the hook to be more testable,'
u' and write a test for the fix in 12cc0caf054d',
diff --git a/bitbucket_hook/test_send_email.py b/bbhook/test_send_email.py
rename from bitbucket_hook/test_send_email.py
rename to bbhook/test_send_email.py
--- a/bitbucket_hook/test_send_email.py
+++ b/bbhook/test_send_email.py
@@ -1,5 +1,5 @@
def test_send_email():
- from bitbucket_hook.mail import send
+ from bbhook.mail import send
body = "This is a test to see if the bitbucket hook can send emails to the pypy-commit mailing list"
send('antocuni <noreply at buildbot.pypy.org>',
'pypy-commit at python.org',
More information about the pypy-commit
mailing list