commit python-coloredlogs for openSUSE:Factory
Hello community, here is the log from the commit of package python-coloredlogs for openSUSE:Factory checked in at 2019-05-03 22:47:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-coloredlogs (Old) and /work/SRC/openSUSE:Factory/.python-coloredlogs.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-coloredlogs" Fri May 3 22:47:54 2019 rev:5 rq:700395 version:10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-coloredlogs/python-coloredlogs.changes 2019-02-24 17:14:47.680457026 +0100 +++ /work/SRC/openSUSE:Factory/.python-coloredlogs.new.5148/python-coloredlogs.changes 2019-05-03 22:47:57.331979818 +0200 @@ -1,0 +2,6 @@ +Fri May 3 14:04:05 UTC 2019 - Matej Cepl <mcepl@suse.com> + +- Add test_cli_conversion_test.patch, because we don't have versionless + coloredlogs in time of %check. + +------------------------------------------------------------------- New: ---- test_cli_conversion_test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-coloredlogs.spec ++++++ --- /var/tmp/diff_new_pack.1gDf0e/_old 2019-05-03 22:47:57.875981067 +0200 +++ /var/tmp/diff_new_pack.1gDf0e/_new 2019-05-03 22:47:57.879981076 +0200 @@ -26,6 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/xolox/python-coloredlogs Source: https://files.pythonhosted.org/packages/source/c/coloredlogs/coloredlogs-%{version}.tar.gz +# PATCH-FIX-OPENSUSE test_cli_conversion_test.patch mcepl@suse.com +# With using alternatives, we don't have versionless command in time of %check +Patch0: test_cli_conversion_test.patch BuildRequires: %{python_module capturer >= 2.4} BuildRequires: %{python_module humanfriendly >= 3.2} BuildRequires: %{python_module mock >= 1.0.1} @@ -54,6 +57,7 @@ %prep %setup -q -n coloredlogs-%{version} +%autopatch -p1 %build %python_build @@ -70,10 +74,10 @@ %python_uninstall_alternative coloredlogs %check -# test_cli_conversion - requires coloredlogs binary available, we don't have it at this point # test_auto_install - requires the install to the system to be actually complete # test_plain_text_output_format - random hickupy test -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} coloredlogs/tests.py -v -k 'not (test_cli_conversion or test_auto_install or test_plain_text_output_format)' +export PATH=%{buildroot}%{_bindir}:$PATH +%pytest coloredlogs/tests.py -k 'not (test_auto_install or test_plain_text_output_format)' %files %{python_files} %doc README.rst CHANGELOG.rst ++++++ test_cli_conversion_test.patch ++++++ --- a/coloredlogs/tests.py +++ b/coloredlogs/tests.py @@ -82,6 +82,7 @@ PATTERN_INCLUDING_MILLISECONDS = re.comp \s (?P<message> .* ) ''', re.VERBOSE) +pyver = '.'.join(str(x) for x in sys.version_info[:2]) def setUpModule(): """Speed up the tests by disabling the demo's artificial delay.""" @@ -505,7 +506,8 @@ class ColoredLogsTestCase(TestCase): def test_cli_conversion(self): """Test the command line HTML conversion.""" - output = main('coloredlogs', '--convert', 'coloredlogs', '--demo', capture=True) + output = main('coloredlogs-{}'.format(pyver), '--convert', + 'coloredlogs-{}'.format(pyver), '--demo', capture=True) # Make sure the output is encoded as HTML. assert '<span' in output @@ -588,3 +590,4 @@ def cleanup_handlers(): handler, logger = find_handler(logging.getLogger(), match_func) if handler and logger: logger.removeHandler(handler) +
participants (1)
-
root