Hello community,
here is the log from the commit of package python-ansi2html for
openSUSE:Factory checked in at 2020-03-26 23:33:22
Comparing /work/SRC/openSUSE:Factory/python-ansi2html (Old)
and /work/SRC/openSUSE:Factory/.python-ansi2html.new.3160 (New)
Package is "python-ansi2html"
Thu Mar 26 23:33:22 2020 rev:3 rq:788439 version:1.5.2
Changes:
--- /work/SRC/openSUSE:Factory/python-ansi2html/python-ansi2html.changes
2019-02-27 15:05:52.814451918 +0100
+++
/work/SRC/openSUSE:Factory/.python-ansi2html.new.3160/python-ansi2html.changes
2020-03-26 23:33:26.178778553 +0100
@@ -1,0 +2,5 @@
+Thu Mar 26 07:34:53 UTC 2020 - Paolo Stivanin
+
+- Add remove_nose.patch
+
+---
New:
remove_nose.patch
Other differences:
--
++ python-ansi2html.spec ++
--- /var/tmp/diff_new_pack.UOTX2i/_old 2020-03-26 23:33:26.870778803 +0100
+++ /var/tmp/diff_new_pack.UOTX2i/_new 2020-03-26 23:33:26.878778806 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-ansi2html
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,8 +25,9 @@
Group: Development/Languages/Python
URL:https://github.com/ralphbean/ansi2html/
Source:
https://github.com/ralphbean/ansi2html/archive/%{version}.tar.gz
+# https://github.com/ralphbean/ansi2html/pull/103
+Patch0: remove_nose.patch
BuildRequires: %{python_module mock}
-BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
@@ -42,6 +43,7 @@
%prep
%setup -q -n ansi2html-%{version}
+%patch0 -p1
%build
%python_build
@@ -52,7 +54,7 @@
%python_clone -a %{buildroot}%{_bindir}/ansi2html
%check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
%{_bindir}/nosetests-%{$python_bin_suffix} tests/test_ansi2html.py
+%python_exec -m unittest discover -s tests/ -v
%post
%python_install_alternative ansi2html
++ remove_nose.patch ++
diff -ru ansi2html-1.5.2/tests/test_ansi2html.py
ansi2html-1.5.2-new/tests/test_ansi2html.py
--- a/tests/test_ansi2html.py 2018-10-22 16:44:16.0 +0200
+++ b/tests/test_ansi2html.py 2020-03-26 08:24:03.619984982 +0100
@@ -31,7 +31,6 @@
from ansi2html.util import read_to_unicode
from mock import patch
-from nose.tools import eq_
import unittest
import six
@@ -117,7 +116,8 @@
with patch("sys.stdin", new_callable=lambda: six.StringIO(test_input)):
main()
-eq_(mock_stdout.getvalue(), test_input)
+ms_val = mock_stdout.getvalue()
+assert ms_val == test_input, "%r != %r" % (ms_val, test_input)
@patch("sys.argv", new_callable=lambda: ["ansi2html", "--partial"])
@patch("sys.stdout", new_callable=six.StringIO)
diff -ru ansi2html-1.5.2/tox.ini ansi2html-1.5.2-new/tox.ini
--- a/tox.ini 2018-10-22 16:44:16.0 +0200
+++ b/tox.ini 2020-03-26 08:24:03.619984982 +0100
@@ -9,8 +9,7 @@
py35: python3.5
py36: python3.6
deps =
-nose
mock
sitepackages = False
commands =
-nosetests tests/test_ansi2html.py
+unittest tests/test_ansi2html.py