This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
import re | |
from StringIO import StringIO | |
JIRA_URL = 'https://your-jira-url.tld/' | |
JIRA_ACCOUNT = ('jira-username', 'jira-password') | |
# the JIRA project ID (short) | |
JIRA_PROJECT = 'PRO' | |
GITLAB_URL = 'http://your-gitlab-url.tld/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/lib/bb/parse/ast.py w/lib/bb/parse/ast.py | |
index eae840f..2fa5664 100644 | |
--- i/lib/bb/parse/ast.py | |
+++ w/lib/bb/parse/ast.py | |
@@ -102,13 +102,23 @@ class DataNode(AstNode): | |
bb.data.update_data(e) | |
val = e.expand(groupd["value"], key + "[:=]") | |
elif "append" in groupd and groupd["append"] != None: | |
- val = "%s %s" % ((self.getFunc(key, data) or ""), groupd["value"]) | |
+ val = self.getFunc(key, data) or "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Mike Sweeney, placed under the MIT license | |
# See http://code.activestate.com/recipes/577701-a-flexible-state-machine-class/ for reference | |
class StateMachine: | |
def __init__(self, transitions, initial=None): | |
if isinstance(transitions, basestring): | |
components = [term.split(':') for term in transitions.split()] | |
self.sm = dict([tuple(a.split(',')), tuple(b.split(','))] | |
for a, b in components) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def auto_assume_provided(): | |
import kergoth.assume as assume | |
import kergoth.assumptions | |
return ' '.join(assume.test_assumptions()) | |
ASSUME_PROVIDED += "${@auto_assume_provided()}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
codegen | |
~~~~~~~ | |
Extension to ast that allow ast -> python code generation. | |
:copyright: Copyright 2008 by Armin Ronacher. | |
:license: BSD. | |
""" |