Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-cli-helpers for openSUSE:Factory checked in at 2026-04-20 16:11:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cli-helpers (Old) and /work/SRC/openSUSE:Factory/.python-cli-helpers.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cli-helpers" Mon Apr 20 16:11:27 2026 rev:17 rq:1348091 version:2.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cli-helpers/python-cli-helpers.changes 2026-03-27 06:47:42.013503842 +0100 +++ /work/SRC/openSUSE:Factory/.python-cli-helpers.new.11940/python-cli-helpers.changes 2026-04-20 16:11:41.834140916 +0200 @@ -1,0 +2,8 @@ +Mon Apr 20 01:46:21 UTC 2026 - Steve Kowalik <[email protected]> + +- Update to 2.14.0: + * Downgrade Pygments requirement to v1.6+, and fix tests to support all + versions. + * Pin Pygments library to older version v2.19.2 to fix tests. + +------------------------------------------------------------------- Old: ---- cli_helpers-2.12.0.tar.gz New: ---- cli_helpers-2.14.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cli-helpers.spec ++++++ --- /var/tmp/diff_new_pack.9aeGpu/_old 2026-04-20 16:11:42.590172044 +0200 +++ /var/tmp/diff_new_pack.9aeGpu/_new 2026-04-20 16:11:42.594172209 +0200 @@ -17,7 +17,7 @@ Name: python-cli-helpers -Version: 2.12.0 +Version: 2.14.0 Release: 0 Summary: Helpers for building command-line apps License: BSD-3-Clause ++++++ cli_helpers-2.12.0.tar.gz -> cli_helpers-2.14.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/CHANGELOG new/cli_helpers-2.14.0/CHANGELOG --- old/cli_helpers-2.12.0/CHANGELOG 2026-03-21 11:41:59.000000000 +0100 +++ new/cli_helpers-2.14.0/CHANGELOG 2026-04-13 17:13:15.000000000 +0200 @@ -1,21 +1,34 @@ # Changelog +## Version 2.14.0 + +(released on 2026-04-13) + +- Downgrade Pygments requirement to v1.6+, and fix tests to support all versions. + +## Version 2.13.0 + +(released on 2026-04-13) + +- Pin Pygments library to older version v2.19.2 to fix tests. +- Fix dates in changelog. + ## Version 2.12.0 -(released on 2025-03-21) +(released on 2026-03-21) - Probe tabulate version for `preserve_whitespace` keyword support. ## Version 2.11.0 -(released on 2025-03-05) +(released on 2026-03-05) - Support and require version 0.10.x of `tabulate`. - Pin `tabulate` version more tightly. ## Version 2.10.1 -(released on 2025-02-18) +(released on 2026-02-18) - Update license dates. - Change `master` branch references to `main`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/PKG-INFO new/cli_helpers-2.14.0/PKG-INFO --- old/cli_helpers-2.12.0/PKG-INFO 2026-03-21 11:44:08.000000000 +0100 +++ new/cli_helpers-2.14.0/PKG-INFO 2026-04-13 17:14:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: cli_helpers -Version: 2.12.0 +Version: 2.14.0 Summary: Helpers for building command-line apps Home-page: https://github.com/dbcli/cli_helpers Author: dbcli diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/cli_helpers/__init__.py new/cli_helpers-2.14.0/cli_helpers/__init__.py --- old/cli_helpers-2.12.0/cli_helpers/__init__.py 2026-03-21 11:42:52.000000000 +0100 +++ new/cli_helpers-2.14.0/cli_helpers/__init__.py 2026-04-13 17:13:30.000000000 +0200 @@ -1 +1 @@ -__version__ = "2.12.0" +__version__ = "2.14.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/cli_helpers.egg-info/PKG-INFO new/cli_helpers-2.14.0/cli_helpers.egg-info/PKG-INFO --- old/cli_helpers-2.12.0/cli_helpers.egg-info/PKG-INFO 2026-03-21 11:44:08.000000000 +0100 +++ new/cli_helpers-2.14.0/cli_helpers.egg-info/PKG-INFO 2026-04-13 17:14:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: cli_helpers -Version: 2.12.0 +Version: 2.14.0 Summary: Helpers for building command-line apps Home-page: https://github.com/dbcli/cli_helpers Author: dbcli diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/requirements-dev.txt new/cli_helpers-2.14.0/requirements-dev.txt --- old/cli_helpers-2.12.0/requirements-dev.txt 2025-07-09 22:00:36.000000000 +0200 +++ new/cli_helpers-2.14.0/requirements-dev.txt 2026-04-13 17:13:15.000000000 +0200 @@ -2,7 +2,7 @@ codecov==2.1.13 coverage==4.3.4 black>=20.8b1 -Pygments>=2.4.0 +Pygments>=1.6 pytest==7.4.3 pytest-cov==2.4.0 Sphinx==1.5.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cli_helpers-2.12.0/tests/tabular_output/test_preprocessors.py new/cli_helpers-2.14.0/tests/tabular_output/test_preprocessors.py --- old/cli_helpers-2.12.0/tests/tabular_output/test_preprocessors.py 2026-02-09 11:37:32.000000000 +0100 +++ new/cli_helpers-2.14.0/tests/tabular_output/test_preprocessors.py 2026-04-13 17:13:15.000000000 +0200 @@ -207,13 +207,24 @@ data = [["观音", "2"], ["Ποσειδῶν", "b"]] expected_headers = ["\x1b[91;01mh1\x1b[39;00m", "\x1b[91;01mh2\x1b[39;00m"] - expected_data = [ + # Pygments v2.19.2 and earlier + expected_data_old = [ ["\x1b[38;5;233;48;5;7m观音\x1b[39;49m", "\x1b[38;5;233;48;5;7m2\x1b[39;49m"], ["\x1b[38;5;10mΠοσειδῶν\x1b[39m", "\x1b[38;5;10mb\x1b[39m"], ] + # Pygments v2.20.0 and later + # it looks like the control sequences changed after https://github.com/pygments/pygments/pull/3043 + expected_data_new = [ + [ + '\x1b[38;5;233;48;5;255m观音\x1b[39;49m', + '\x1b[38;5;233;48;5;255m2\x1b[39;49m', + ], + ['\x1b[38;5;10mΠοσειδῶν\x1b[39m', '\x1b[38;5;10mb\x1b[39m'], + ] results = style_output(data, headers, style=CliStyle) - assert (expected_data, expected_headers) == (list(results[0]), results[1]) + assert results[1] == expected_headers + assert list(results[0]) in [expected_data_old, expected_data_new] @pytest.mark.skipif(not HAS_PYGMENTS, reason="requires the Pygments library") @@ -232,16 +243,27 @@ data = [["观音\nLine2", "Ποσειδῶν"]] expected_headers = ["\x1b[91;01mh1\x1b[39;00m", "\x1b[91;01mh2\x1b[39;00m"] - expected_data = [ + # Pygments v2.19.2 and earlier + expected_data_old = [ [ "\x1b[38;5;233;48;5;7m观音\x1b[39;49m\n\x1b[38;5;233;48;5;7m" "Line2\x1b[39;49m", "\x1b[38;5;233;48;5;7mΠοσειδῶν\x1b[39;49m", ] ] + # Pygments v2.20.0 and later + # it looks like the control sequences changed after https://github.com/pygments/pygments/pull/3043 + expected_data_new = [ + [ + '\x1b[38;5;233;48;5;255m观音\x1b[39;49m\n\x1b[38;5;233;48;5;255m' + 'Line2\x1b[39;49m', + '\x1b[38;5;233;48;5;255mΠοσειδῶν\x1b[39;49m', + ] + ] results = style_output(data, headers, style=CliStyle) - assert (expected_data, expected_headers) == (list(results[0]), results[1]) + assert results[1] == expected_headers + assert list(results[0]) in [expected_data_old, expected_data_new] @pytest.mark.skipif(not HAS_PYGMENTS, reason="requires the Pygments library") @@ -260,10 +282,17 @@ data = [["1", "2"], ["a", "b"]] expected_headers = ["\x1b[91;01mh1\x1b[39;00m", "\x1b[91;01mh2\x1b[39;00m"] - expected_data = [ + # Pygments v2.19.2 and earlier + expected_data_old = [ ["\x1b[38;5;233;48;5;7m1\x1b[39;49m", "\x1b[38;5;233;48;5;7m2\x1b[39;49m"], ["\x1b[38;5;10ma\x1b[39m", "\x1b[38;5;10mb\x1b[39m"], ] + # Pygments v2.20.0 and later + # it looks like the control sequences changed after https://github.com/pygments/pygments/pull/3043 + expected_data_new = [ + ['\x1b[38;5;233;48;5;255m1\x1b[39;49m', '\x1b[38;5;233;48;5;255m2\x1b[39;49m'], + ['\x1b[38;5;10ma\x1b[39m', '\x1b[38;5;10mb\x1b[39m'], + ] output = style_output( data, @@ -274,7 +303,8 @@ even_row_token=Token.Results.EvenRows, ) - assert (expected_data, expected_headers) == (list(output[0]), output[1]) + assert output[1] == expected_headers + assert list(output[0]) in [expected_data_old, expected_data_new] def test_format_integer():
