debian/0000775000000000000000000000000012406757416007204 5ustar debian/patches/0000775000000000000000000000000012406260615010621 5ustar debian/patches/series0000664000000000000000000000010712406260564012037 0ustar 01_remove_runtests_requirement.patch git_fix_without_option_file.patch debian/patches/01_remove_runtests_requirement.patch0000664000000000000000000000103112406255740020024 0ustar Index: nose-json-0.2.4/setup.py =================================================================== --- nose-json-0.2.4.orig/setup.py 2014-09-17 12:00:44.301968586 +0200 +++ nose-json-0.2.4/setup.py 2014-09-17 12:01:03.017968403 +0200 @@ -26,7 +26,7 @@ license='Apache License 2.0', tests_require=tests_require, extras_require={'test': tests_require}, - test_suite='runtests.runtests', + #test_suite='runtests.runtests', include_package_data=True, classifiers=[ 'Intended Audience :: Developers', debian/patches/git_fix_without_option_file.patch0000664000000000000000000000415612406260615017453 0ustar From 9ad9d9d50d1e5ee147d340e1726b6b8673c2d84e Mon Sep 17 00:00:00 2001 From: David Cramer Date: Thu, 13 Sep 2012 14:38:04 -0700 Subject: [PATCH] Minor cleanup and readme diff --git a/nose_json/plugin.py b/nose_json/plugin.py index 0fe17ad..e74ec05 100644 --- a/nose_json/plugin.py +++ b/nose_json/plugin.py @@ -20,7 +20,7 @@ class JsonReportPlugin(Plugin): score = 2000 encoding = 'UTF-8' - def _timeTaken(self): + def _get_time_taken(self): if hasattr(self, '_timer'): taken = time() - self._timer else: @@ -46,16 +46,17 @@ def configure(self, options, config): if not self.enabled: return - self.stats = {'errors': 0, - 'failures': 0, - 'passes': 0, - 'skipped': 0 - } + self.stats = { + 'errors': 0, + 'failures': 0, + 'passes': 0, + 'skipped': 0, + } self.results = [] report_output = options.json_file - path = os.path.dirname(report_output) + path = os.path.realpath(os.path.dirname(report_output)) if not os.path.exists(path): os.makedirs(path) @@ -76,7 +77,7 @@ def startTest(self, test): self._timer = time() def addError(self, test, err, capt=None): - taken = self._timeTaken() + taken = self._get_time_taken() if issubclass(err[0], SkipTest): type = 'skipped' @@ -97,7 +98,7 @@ def addError(self, test, err, capt=None): }) def addFailure(self, test, err, capt=None, tb_info=None): - taken = self._timeTaken() + taken = self._get_time_taken() tb = ''.join(traceback.format_exception(*err)) self.stats['failures'] += 1 id = test.id() @@ -112,7 +113,7 @@ def addFailure(self, test, err, capt=None, tb_info=None): }) def addSuccess(self, test, capt=None): - taken = self._timeTaken() + taken = self._get_time_taken() self.stats['passes'] += 1 id = test.id() self.results.append({ debian/changelog0000664000000000000000000000066112406757416011061 0ustar nose-json (0.2.4-0ubuntu1) utopic; urgency=low * Initial release (LP: #1370441) * debian/patches/01_remove_runtests_requirement.patch: - tests are not shipped in tarball, don't try to run them * debian/patches/git_fix_without_option_file.patch: - backport one commit to ensure nose-json can run without --json-file option providing a path -- Didier Roche Wed, 17 Sep 2014 11:42:56 +0200 debian/rules0000775000000000000000000000024112406255536010255 0ustar #!/usr/bin/make -f export PYBUILD_NAME=nose-json %: dh $@ --with python2,python3 --buildsystem=pybuild dh_auto_test: # tests are not shipped in the tarball debian/control0000664000000000000000000000227612406256152010605 0ustar Source: nose-json Priority: optional Maintainer: Ubuntu Developers Section: python X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Build-Depends: debhelper (>= 9), dh-python, python-all (>= 2.6.6-3~), python-nose (>= 0.9), python-simplejson, python-setuptools, python3-all, python3-nose (>= 0.9), python3-simplejson, python3-setuptools, Standards-Version: 3.9.5 Homepage: https://pypi.python.org/pypi/nose-json Package: python-nose-json Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-nose (>= 0.9), python-simplejson, Description: nose pugin for json reporting - python 2 flavor This plugin produces json reports with nose. . This is the Python 2 compatible packages. Package: python3-nose-json Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python3-nose (>= 0.9), python3-simplejson, Description: nose pugin for json reporting - python 3 flavor This plugin produces json reports with nose. . This is the Python 3 compatible packages. debian/copyright0000664000000000000000000000327012406255154011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: nose-json Source: https://pypi.python.org/pypi/nose-json Files: * Copyright: 2012 DISQUS. License: BSD Copyright (c) The Regents of the University of California. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/watch0000664000000000000000000000012412406254607010224 0ustar version=3 https://pypi.python.org/packages/source/n/nose-json/nose-json-(.*).tar.gz debian/compat0000664000000000000000000000000212406253644010374 0ustar 9 debian/source/0000775000000000000000000000000012406254532010473 5ustar debian/source/format0000664000000000000000000000001412406253644011704 0ustar 3.0 (quilt)