summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-27Add string vs. binary encoding/decodingHEADmasterGuido Günther
for Python3 compatibility
2015-03-27Ignore long lines with pep8Guido Günther
We want to get there eventually but having this on now is just too much noise.
2015-03-27Add string vs. binary encoding/decodingGuido Günther
for Python3 compatibility
2015-03-27Use six.StringIOGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-03-27testutils: Add a context manager to capture stderrGuido Günther
and use it to test the help output
2015-03-27testutils: Fix __all__Guido Günther
The values weren't correctly seperated
2015-03-27Don't let pristine-tar spew on stderrGuido Günther
Capture its output and only dump it on failure. This makes "gbp import-orig" and test runs less verbose.
2015-03-27command_wrapper: Make error reporting more flexibleGuido Günther
We allow to substitute stderr, stdout and error_reason in run_error now. These changes the API for derived classses slightly so fix them up as well.
2015-03-27config test: fix missing prefixGuido Günther
We want to test no prefix, 'gbp-' and 'git-'.
2015-03-27gbplogtester: Reliably remove all handlersGuido Günther
So far we were modifying the list of handlers in place which resulted in all handlers being removed at the second call to _capture_log only.
2015-03-27gbplogtester: Make sure log capture start is followed by a log capture stopGuido Günther
2015-03-27gbplogtester: add helper to test for empty logGuido Günther
2015-03-27tests: minor test case cleanupsGuido Günther
Remove unused imports, remove unused variables or actually use them
2015-03-27Command: simplify __call__ and callGuido Günther
Get rid of __run and use the same codepaths for both. This also makes the same instance variables available after both calls. The funtions still differ in their default logging behaviour though.
2015-03-27Command: allow to capture stdout tooGuido Günther
For symmetry with capture_stderr
2015-03-27Update docs on component tests and mailing listGuido Günther
2015-03-27Improve error messageGuido Günther
2015-03-27Fix print function usage in examples tooGuido Günther
2015-03-27Extract exception message in a less arcane wayGuido Günther
2015-03-27Turn off coverage output by defaultGuido Günther
It's much simpler to spot the cause of test failures this way.
2015-03-26Remove unused variableGuido Günther
Git-Dch: Ignore
2015-03-20Fix paragraph indentation for epydocGuido Günther
2015-03-18Add %(hversion)s to version_to_tag to support some upstreamsDaniel Kahn Gillmor
enigmail upstream uses tags named enigmail-1-8 for 1.8. Other upstreams have used similar conventions, likely as holdovers from CVS (e.g. gnupg 1.4.2 was tagged with V1-4-2). This patch helps packagers work with these upstreams. Closes: #780679 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2015-03-16Allow to set upstream-vcs-tag via gbp.confDaniel Kahn Gillmor
Also pass it through version_to_tag so upstream-vcs-tag = libgpg-error-%(version)s properly expands the version replacement. Closes: #780602
2015-02-25GitRepository/has_submodules: add treeish argumentMarkus Lehtonen
For defining a Git treeish which to look into, instead of the current working copy. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-25tests: one more testcase for GitRepository.diff()Markus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-25config: modify configparser import statementMarkus Lehtonen
Usage of six.moves.configparser in the previous way failed at least with some versions of python-six (e.g. 1.4.1) like > >>> from six.moves.configparser import SafeConfigParser > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named configparser Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-21Remove unused importGuido Günther
and pylint exception that doesn't trigger
2015-02-21Remove unused variableGuido Günther
2015-02-21Ignore first part of type outputGuido Günther
Types are classes in python3 so we get 'class' instead of 'type'. Ignore that detail in the matcher since it's not relevanthere.
2015-02-20gbp.format: fix one typo and indentationMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20tristate: implement __nonzero__() methodMarkus Lehtonen
Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20rpm tests: use eq_ and ok_ from nose toolsMarkus Lehtonen
Provides better error messages as is more consistent as eq_ was already used in some test cases. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20tests: add tests for UpstreamSource.guess_version()Markus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20UpstreamSource.guess_version: recognise debian native tarballsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20Document changes and release 0.6.24Guido Günther
2015-02-20Don't output additional newlinesGuido Günther
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
2015-02-20Development now on masterGuido Günther
Gbp-Dch: Ignore
2015-02-20bash-completion: Avoid a pointless forkGuido Günther
2015-02-20Move requests import to downloadsGuido Günther
The requests import takes ages and therefore considerably slows down program start up. This is very much noticeably during bash completion. Before: $ time gbp --list-cmds >/dev/null real 0m0.559s user 0m0.528s sys 0m0.028s After: $ time gbp --list-cmds >/dev/null real 0m0.092s user 0m0.088s sys 0m0.000s
2015-02-20Only use absolute importGuido Günther
since searching both isn't supported in Python3. Since the tests are run from the toplevel dir we'll pick up the right scripts.
2015-02-20Don't use basestringGuido Günther
to work toward Python3 support
2015-02-20Use verbose outputGuido Günther
so we see all git commands
2015-02-20Handle renamed urlparse in Python3Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Use six.iteritems() and six.iterkeys()Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Handle Python3's changed octal literal syntaxGuido Günther
2015-02-20Use relative importGuido Günther
so Python3 can cope as well
2015-02-20Convert result to listGuido Günther
Python3 returns a dict_items obj
2015-02-20Use email.utils instead of email.UtilsGuido Günther
works with python 2 and 3
2015-02-20Use open() instead of file()Guido Günther
The former is supported with python3