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-11-09 16:03:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cli-helpers (Old)
and /work/SRC/openSUSE:Factory/.python-cli-helpers.new.3759290 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cli-helpers"
Mon Nov 9 16:03:52 2026 rev:21 rq:1396181 version:2.15.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cli-helpers/python-cli-helpers.changes
2026-10-26 10:01:07.541539887 +0100
+++
/work/SRC/openSUSE:Factory/.python-cli-helpers.new.3759290/python-cli-helpers.changes
2026-11-09 16:04:27.959365711 +0100
@@ -1,0 +2,7 @@
+Sun Nov 8 20:44:44 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.15.3:
+ * Fix inferred `float` and `Decimal` columns skipping number
+ formatting and decimal alignment.
+
+-------------------------------------------------------------------
Old:
----
cli_helpers-2.15.2.tar.gz
New:
----
cli_helpers-2.15.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cli-helpers.spec ++++++
--- /var/tmp/diff_new_pack.vaJbDs/_old 2026-11-09 16:04:28.596392417 +0100
+++ /var/tmp/diff_new_pack.vaJbDs/_new 2026-11-09 16:04:28.597392459 +0100
@@ -17,7 +17,7 @@
Name: python-cli-helpers
-Version: 2.15.2
+Version: 2.15.3
Release: 0
Summary: Helpers for building command-line apps
License: BSD-3-Clause
++++++ cli_helpers-2.15.2.tar.gz -> cli_helpers-2.15.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cli_helpers-2.15.2/AUTHORS
new/cli_helpers-2.15.3/AUTHORS
--- old/cli_helpers-2.15.2/AUTHORS 2026-10-16 17:54:02.000000000 +0200
+++ new/cli_helpers-2.15.3/AUTHORS 2026-10-28 09:20:18.000000000 +0100
@@ -28,6 +28,7 @@
- Doug Harris
- Benjamin Beasley
- Rajvira10
+- 2031814001yuyue-tech
Thanks
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cli_helpers-2.15.2/CHANGELOG
new/cli_helpers-2.15.3/CHANGELOG
--- old/cli_helpers-2.15.2/CHANGELOG 2026-10-16 18:12:08.000000000 +0200
+++ new/cli_helpers-2.15.3/CHANGELOG 2026-10-28 09:26:21.000000000 +0100
@@ -1,6 +1,12 @@
# Changelog
-## Version 2.15.1
+## Version 2.15.3
+
+(released on 2026-10-28)
+
+- Fix inferred `float` and `Decimal` columns skipping number formatting and
decimal alignment.
+
+## Version 2.15.2
(released on 2026-10-15)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cli_helpers-2.15.2/PKG-INFO
new/cli_helpers-2.15.3/PKG-INFO
--- old/cli_helpers-2.15.2/PKG-INFO 2026-10-16 18:15:04.000000000 +0200
+++ new/cli_helpers-2.15.3/PKG-INFO 2026-10-28 09:28:33.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: cli_helpers
-Version: 2.15.2
+Version: 2.15.3
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.2/cli_helpers/__init__.py
new/cli_helpers-2.15.3/cli_helpers/__init__.py
--- old/cli_helpers-2.15.2/cli_helpers/__init__.py 2026-10-16
18:13:04.000000000 +0200
+++ new/cli_helpers-2.15.3/cli_helpers/__init__.py 2026-10-28
09:26:35.000000000 +0100
@@ -1 +1 @@
-__version__ = "2.15.2"
+__version__ = "2.15.3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/cli_helpers-2.15.2/cli_helpers/tabular_output/output_formatter.py
new/cli_helpers-2.15.3/cli_helpers/tabular_output/output_formatter.py
--- old/cli_helpers-2.15.2/cli_helpers/tabular_output/output_formatter.py
2025-07-12 18:23:20.000000000 +0200
+++ new/cli_helpers-2.15.3/cli_helpers/tabular_output/output_formatter.py
2026-10-28 09:20:18.000000000 +0100
@@ -19,7 +19,6 @@
tsv_output_adapter,
json_output_adapter,
)
-from decimal import Decimal
import itertools
@@ -31,7 +30,6 @@
bool: 1,
int: 2,
float: 3,
- Decimal: 3,
binary_type: 4,
text_type: 5,
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cli_helpers-2.15.2/cli_helpers.egg-info/PKG-INFO
new/cli_helpers-2.15.3/cli_helpers.egg-info/PKG-INFO
--- old/cli_helpers-2.15.2/cli_helpers.egg-info/PKG-INFO 2026-10-16
18:15:04.000000000 +0200
+++ new/cli_helpers-2.15.3/cli_helpers.egg-info/PKG-INFO 2026-10-28
09:28:32.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: cli_helpers
-Version: 2.15.2
+Version: 2.15.3
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.2/tests/tabular_output/test_output_formatter.py
new/cli_helpers-2.15.3/tests/tabular_output/test_output_formatter.py
--- old/cli_helpers-2.15.2/tests/tabular_output/test_output_formatter.py
2025-07-28 12:30:41.000000000 +0200
+++ new/cli_helpers-2.15.3/tests/tabular_output/test_output_formatter.py
2026-10-28 09:20:18.000000000 +0100
@@ -348,3 +348,47 @@
iter(data), headers, format_name=format_name, **extra_kwargs
):
assert isinstance(row, text_type), "not unicode for
{}".format(format_name)
+
+
[email protected](
+ "column",
+ [
+ [1.2, 10.34],
+ [Decimal("1.2"), Decimal("10.34")],
+ [1, 1.2, Decimal("10.34"), None],
+ ],
+)
+def test_inferred_float_column_type(column):
+ formatter = TabularOutputFormatter()
+ assert formatter._get_column_type(column) is float
+
+
[email protected]("number_type", [float, Decimal])
+def test_format_numbers_with_inferred_types(number_type):
+ from cli_helpers.tabular_output.preprocessors import format_numbers
+
+ formatter = TabularOutputFormatter(format_name="psql")
+ output = "\n".join(
+ formatter.format_output(
+ iter([(number_type("123456.78"), number_type("2.5"))]),
+ ["f", "n"],
+ preprocessors=(format_numbers,),
+ float_format=",.2f",
+ disable_numparse=True,
+ )
+ )
+ assert "123,456.78" in output
+ assert "2.50" in output
+
+
[email protected]("number_type", [float, Decimal])
+def test_align_decimals_with_inferred_types(number_type):
+ from cli_helpers.tabular_output.preprocessors import align_decimals
+
+ formatter = TabularOutputFormatter()
+ data = [(number_type("1.2"),), (number_type("10.34"),)]
+ result, headers = align_decimals(
+ data, ["n"], column_types=formatter._get_column_types(data)
+ )
+ assert list(result) == [[" 1.2"], ["10.34"]]
+ assert headers == ["n"]