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-10-26 10:00:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cli-helpers (Old)
 and      /work/SRC/openSUSE:Factory/.python-cli-helpers.new.2252680 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cli-helpers"

Mon Oct 26 10:00:17 2026 rev:20 rq:1392387 version:2.15.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cli-helpers/python-cli-helpers.changes    
2026-08-01 18:37:26.716592270 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-cli-helpers.new.2252680/python-cli-helpers.changes
       2026-10-26 10:01:07.541539887 +0100
@@ -1,0 +2,9 @@
+Sun Oct 25 11:15:07 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.15.2:
+  * Align vertical table headers containing wide or combining
+    characters.
+  * Target Python 3.11 in pre-commit configuration.
+  * Update `pytest` to 9.1.1, and other dev requirements.
+
+-------------------------------------------------------------------

Old:
----
  cli_helpers-2.15.1.tar.gz

New:
----
  cli_helpers-2.15.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cli-helpers.spec ++++++
--- /var/tmp/diff_new_pack.Opzh0t/_old  2026-10-26 10:01:08.162565942 +0100
+++ /var/tmp/diff_new_pack.Opzh0t/_new  2026-10-26 10:01:08.164566026 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-cli-helpers
-Version:        2.15.1
+Version:        2.15.2
 Release:        0
 Summary:        Helpers for building command-line apps
 License:        BSD-3-Clause

++++++ cli_helpers-2.15.1.tar.gz -> cli_helpers-2.15.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli_helpers-2.15.1/AUTHORS 
new/cli_helpers-2.15.2/AUTHORS
--- old/cli_helpers-2.15.1/AUTHORS      2026-03-05 15:53:28.000000000 +0100
+++ new/cli_helpers-2.15.2/AUTHORS      2026-10-16 17:54:02.000000000 +0200
@@ -27,6 +27,7 @@
 - Roland Walker
 - Doug Harris
 - Benjamin Beasley
+- Rajvira10
 
 Thanks
 ------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli_helpers-2.15.1/CHANGELOG 
new/cli_helpers-2.15.2/CHANGELOG
--- old/cli_helpers-2.15.1/CHANGELOG    2026-07-25 14:52:23.000000000 +0200
+++ new/cli_helpers-2.15.2/CHANGELOG    2026-10-16 18:12:08.000000000 +0200
@@ -2,6 +2,14 @@
 
 ## Version 2.15.1
 
+(released on 2026-10-15)
+
+- Align vertical table headers containing wide or combining characters.
+- Target Python 3.11 in pre-commit configuration.
+- Update `pytest` to 9.1.1, and other dev requirements.
+       
+## Version 2.15.1
+
 (released on 2026-07-25)
 
 - Better handle empty headers in vertical table output.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli_helpers-2.15.1/PKG-INFO 
new/cli_helpers-2.15.2/PKG-INFO
--- old/cli_helpers-2.15.1/PKG-INFO     2026-07-25 14:54:59.000000000 +0200
+++ new/cli_helpers-2.15.2/PKG-INFO     2026-10-16 18:15:04.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: cli_helpers
-Version: 2.15.1
+Version: 2.15.2
 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.15.1/cli_helpers/__init__.py 
new/cli_helpers-2.15.2/cli_helpers/__init__.py
--- old/cli_helpers-2.15.1/cli_helpers/__init__.py      2026-07-25 
14:53:13.000000000 +0200
+++ new/cli_helpers-2.15.2/cli_helpers/__init__.py      2026-10-16 
18:13:04.000000000 +0200
@@ -1 +1 @@
-__version__ = "2.15.1"
+__version__ = "2.15.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cli_helpers-2.15.1/cli_helpers/tabular_output/vertical_table_adapter.py 
new/cli_helpers-2.15.2/cli_helpers/tabular_output/vertical_table_adapter.py
--- old/cli_helpers-2.15.1/cli_helpers/tabular_output/vertical_table_adapter.py 
2026-07-25 14:52:23.000000000 +0200
+++ new/cli_helpers-2.15.2/cli_helpers/tabular_output/vertical_table_adapter.py 
2026-10-16 17:54:02.000000000 +0200
@@ -3,7 +3,9 @@
 
 from __future__ import unicode_literals
 
-from cli_helpers.utils import filter_dict_by_key
+from wcwidth import wcswidth
+
+from cli_helpers.utils import filter_dict_by_key, strip_ansi
 from .preprocessors import convert_to_string, override_missing_value, 
style_output
 
 supported_formats = ("vertical",)
@@ -54,8 +56,12 @@
     """
     if data and not headers:
         headers = [" " * len(x) for x in data[0]]
-    header_len = max(len(x) for x in headers or [""])
-    padded_headers = [x.ljust(header_len) for x in headers]
+    header_widths = [wcswidth(strip_ansi(x)) for x in headers]
+    header_len = max(header_widths or [0])
+    padded_headers = [
+        header + " " * (header_len - width)
+        for header, width in zip(headers, header_widths)
+    ]
     formatted_rows = [_format_row(padded_headers, row) for row in data]
 
     output = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli_helpers-2.15.1/cli_helpers.egg-info/PKG-INFO 
new/cli_helpers-2.15.2/cli_helpers.egg-info/PKG-INFO
--- old/cli_helpers-2.15.1/cli_helpers.egg-info/PKG-INFO        2026-07-25 
14:54:59.000000000 +0200
+++ new/cli_helpers-2.15.2/cli_helpers.egg-info/PKG-INFO        2026-10-16 
18:15:04.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: cli_helpers
-Version: 2.15.1
+Version: 2.15.2
 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.15.1/requirements-dev.txt 
new/cli_helpers-2.15.2/requirements-dev.txt
--- old/cli_helpers-2.15.1/requirements-dev.txt 2026-04-13 17:13:15.000000000 
+0200
+++ new/cli_helpers-2.15.2/requirements-dev.txt 2026-10-16 18:09:46.000000000 
+0200
@@ -1,10 +1,10 @@
 autopep8==1.3.3
-codecov==2.1.13
-coverage==4.3.4
+codecov~=2.1.13
+coverage~=7.16.2
 black>=20.8b1
 Pygments>=1.6
-pytest==7.4.3
-pytest-cov==2.4.0
-Sphinx==1.5.5
-tox==2.7.0
+pytest~=9.1.1
+pytest-cov~=7.1.0
+Sphinx~=9.1.0
+tox~=4.64.9
 twine==1.12.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cli_helpers-2.15.1/tests/tabular_output/test_vertical_table_adapter.py 
new/cli_helpers-2.15.2/tests/tabular_output/test_vertical_table_adapter.py
--- old/cli_helpers-2.15.1/tests/tabular_output/test_vertical_table_adapter.py  
2022-09-14 02:59:33.000000000 +0200
+++ new/cli_helpers-2.15.2/tests/tabular_output/test_vertical_table_adapter.py  
2026-10-16 17:54:02.000000000 +0200
@@ -3,10 +3,42 @@
 
 from textwrap import dedent
 
+import pytest
+
 from cli_helpers.compat import text_type
+from cli_helpers.utils import strip_ansi
+from cli_helpers.tabular_output import TabularOutputFormatter
 from cli_helpers.tabular_output import vertical_table_adapter
 
 
[email protected](
+    "headers, expected",
+    [
+        (["name", "age"], ["name | Alice", "age  | 30"]),
+        (["名前", "age"], ["名前 | Alice", "age  | 30"]),
+        (["e\u0301", "id"], ["e\u0301  | Alice", "id | 30"]),
+    ],
+)
+def test_vertical_table_header_display_width(headers, expected):
+    formatter = TabularOutputFormatter("vertical")
+    output = list(formatter.format_output([["Alice", 30]], headers))
+    assert output[0].splitlines()[1:] == expected
+
+
+def test_vertical_table_styled_header_display_width():
+    Style = pytest.importorskip("pygments.style").Style
+    Token = pytest.importorskip("pygments.token").Token
+
+    class HeaderStyle(Style):
+        styles = {Token.Output.Header: "bold"}
+
+    formatter = TabularOutputFormatter("vertical")
+    output = list(
+        formatter.format_output([["Alice", 30]], ["名前", "age"], 
style=HeaderStyle)
+    )
+    assert strip_ansi(output[0]).splitlines()[1:] == ["名前 | Alice", "age  | 
30"]
+
+
 def test_vertical_table():
     """Test the default settings for vertical_table()."""
     results = [("hello", text_type(123)), ("world", text_type(456))]

Reply via email to