diff --git a/1.5.2.tar.gz b/1.5.2.tar.gz deleted file mode 100644 index 4e4be0d..0000000 --- a/1.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:019c336908b02705e43335a8f2f86dec5db0f5142c0870db639bf10efbd34636 -size 31582 diff --git a/1.7.0.tar.gz b/1.7.0.tar.gz new file mode 100644 index 0000000..6149251 --- /dev/null +++ b/1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6903fdf905bc718604dc15a8801dfd11234bb0beddd96cf54681abf00623ac9 +size 38989 diff --git a/python-ansi2html.changes b/python-ansi2html.changes index 7125b5a..1455734 100644 --- a/python-ansi2html.changes +++ b/python-ansi2html.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Wed Apr 27 11:41:26 UTC 2022 - pgajdos@suse.com + +- version update to 1.7.0 + 1.7.0 + ----- + Minor Changes + ^^^^^^^^^^^^^ + * Replace recommendation of using system packages with pip3 @ssbarnea + * Add truecolor support @miltolstoy + * Generate documentation with Sphinx and use Read the Docs @tristanlatr + * Adds support for OSC hyperlink sequences. @hakonhagland + Bugfixes + ^^^^^^^^ + * Add test coverage @ziegenberg + * Replace pkg_resources with importlib.metadata @ziegenberg + * fix including of CHANGELOG.rst @ziegenberg + * Update linting dependencies @ziegenberg + * Upgrade the build process @ziegenberg + * Add type hinting @ziegenberg + * Update CI badges in readme @ssbarnea + * Bump setuptools-scm version @ssbarnea + 1.6.0 + ----- + Changes + ^^^^^^^ + * Switching from nosetest to unittest @paolostivanin + * Add dracula colorscheme @ahmubashshir + * Refactor packaging by replacing old setup.py based packaging with modern pep517 based one + * Replace travis with github actions @ssbarnea + Bugfixes + ^^^^^^^^ + * Correct author metadata @ssbarnea + Deprecations + ^^^^^^^^^^^^ + * Officialy retire support for python <= 3.6 @ssbarnea +- deleted patches + - remove_nose.patch (upstreamed) + ------------------------------------------------------------------- Thu Mar 26 07:34:53 UTC 2020 - Paolo Stivanin diff --git a/python-ansi2html.spec b/python-ansi2html.spec index 9f24816..b3dc2ac 100644 --- a/python-ansi2html.spec +++ b/python-ansi2html.spec @@ -1,7 +1,7 @@ # # spec file for package python-ansi2html # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ansi2html -Version: 1.5.2 +Version: 1.7.0 Release: 0 Summary: Python module to convert text with ANSI color codes to HTML or LaTeX License: LGPL-3.0-or-later 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 pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -43,18 +42,21 @@ A module to convert text with ANSI color codes to HTML or to LaTeX. %prep %setup -q -n ansi2html-%{version} -%patch0 -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/ansi2html %check -%python_exec -m unittest discover -s tests/ -v +# https://github.com/pycontribs/ansi2html/issues/169 +sed -i 's:from mock:from unittest.mock:' tests/test_ansi2html.py +# ansi2html not available (update alternatives); solvable +# but it runs just ansi2html --version +%pytest -k 'not test_command_script' %post %python_install_alternative ansi2html diff --git a/remove_nose.patch b/remove_nose.patch deleted file mode 100644 index 6e63000..0000000 --- a/remove_nose.patch +++ /dev/null @@ -1,34 +0,0 @@ -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.000000000 +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.000000000 +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