Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jaraco.functools for
openSUSE:Factory checked in at 2026-07-22 19:00:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.functools (Old)
and /work/SRC/openSUSE:Factory/.python-jaraco.functools.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jaraco.functools"
Wed Jul 22 19:00:48 2026 rev:23 rq:1365768 version:4.6.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jaraco.functools/python-jaraco.functools.changes
2026-05-20 16:47:51.448527183 +0200
+++
/work/SRC/openSUSE:Factory/.python-jaraco.functools.new.24530/python-jaraco.functools.changes
2026-07-22 19:00:50.328278548 +0200
@@ -1,0 +2,6 @@
+Tue Jul 14 20:12:50 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 4.6.0:
+ * Add signed wrapper to render a value with an explicit sign.
+
+-------------------------------------------------------------------
Old:
----
jaraco_functools-4.5.0.tar.gz
New:
----
jaraco_functools-4.6.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jaraco.functools.spec ++++++
--- /var/tmp/diff_new_pack.sDdrOB/_old 2026-07-22 19:00:51.200308370 +0200
+++ /var/tmp/diff_new_pack.sDdrOB/_new 2026-07-22 19:00:51.204308507 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-jaraco.functools
-Version: 4.5.0
+Version: 4.6.0
Release: 0
Summary: Tools to work with functools
License: MIT
++++++ jaraco_functools-4.5.0.tar.gz -> jaraco_functools-4.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco_functools-4.5.0/NEWS.rst
new/jaraco_functools-4.6.0/NEWS.rst
--- old/jaraco_functools-4.5.0/NEWS.rst 2026-05-15 23:33:48.000000000 +0200
+++ new/jaraco_functools-4.6.0/NEWS.rst 2026-07-14 03:27:39.000000000 +0200
@@ -1,3 +1,12 @@
+v4.6.0
+======
+
+Features
+--------
+
+- Add ``signed`` wrapper to render a value with an explicit sign.
+
+
v4.5.0
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco_functools-4.5.0/PKG-INFO
new/jaraco_functools-4.6.0/PKG-INFO
--- old/jaraco_functools-4.5.0/PKG-INFO 2026-05-15 23:34:05.487042400 +0200
+++ new/jaraco_functools-4.6.0/PKG-INFO 2026-07-14 03:27:59.541671500 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: jaraco.functools
-Version: 4.5.0
+Version: 4.6.0
Summary: Functools like those found in stdlib
Author-email: "Jason R. Coombs" <[email protected]>
License-Expression: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco_functools-4.5.0/jaraco/functools/__init__.py
new/jaraco_functools-4.6.0/jaraco/functools/__init__.py
--- old/jaraco_functools-4.5.0/jaraco/functools/__init__.py 2026-05-15
23:33:48.000000000 +0200
+++ new/jaraco_functools-4.6.0/jaraco/functools/__init__.py 2026-07-14
03:27:39.000000000 +0200
@@ -444,6 +444,32 @@
return wrapper
+def signed(func):
+ """
+ Wrap a formatting function so a positive first argument is rendered
+ with an explicit leading ``+``.
+
+ A negative argument already carries a ``-`` from the wrapped
+ function, and zero is left unsigned. The sign is inferred by
+ comparing the argument to a zero of its own type.
+
+ >>> fixed = '{:.1f}'.format
+ >>> signed(fixed)(3.9)
+ '+3.9'
+ >>> signed(fixed)(-3.9)
+ '-3.9'
+ >>> signed(fixed)(0)
+ '0.0'
+ """
+
+ @functools.wraps(func)
+ def wrapper(value, /, *args, **kwargs):
+ sign = '+' if value > type(value)() else ''
+ return sign + func(value, *args, **kwargs)
+
+ return wrapper
+
+
def none_as(value, replacement=None):
"""
>>> none_as(None, 'foo')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco_functools-4.5.0/jaraco/functools/__init__.pyi
new/jaraco_functools-4.6.0/jaraco/functools/__init__.pyi
--- old/jaraco_functools-4.5.0/jaraco/functools/__init__.pyi 2026-05-15
23:33:48.000000000 +0200
+++ new/jaraco_functools-4.6.0/jaraco/functools/__init__.pyi 2026-07-14
03:27:39.000000000 +0200
@@ -105,6 +105,9 @@
def pass_none(
func: Callable[Concatenate[_T, _P], _R],
) -> Callable[Concatenate[_T, _P], _R]: ...
+def signed(
+ func: Callable[Concatenate[_T, _P], str],
+) -> Callable[Concatenate[_T, _P], str]: ...
def assign_params(
func: Callable[..., _R], namespace: dict[str, Any]
) -> partial[_R]: ...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco_functools-4.5.0/jaraco.functools.egg-info/PKG-INFO
new/jaraco_functools-4.6.0/jaraco.functools.egg-info/PKG-INFO
--- old/jaraco_functools-4.5.0/jaraco.functools.egg-info/PKG-INFO
2026-05-15 23:34:05.000000000 +0200
+++ new/jaraco_functools-4.6.0/jaraco.functools.egg-info/PKG-INFO
2026-07-14 03:27:59.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: jaraco.functools
-Version: 4.5.0
+Version: 4.6.0
Summary: Functools like those found in stdlib
Author-email: "Jason R. Coombs" <[email protected]>
License-Expression: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco_functools-4.5.0/jaraco.functools.egg-info/SOURCES.txt
new/jaraco_functools-4.6.0/jaraco.functools.egg-info/SOURCES.txt
--- old/jaraco_functools-4.5.0/jaraco.functools.egg-info/SOURCES.txt
2026-05-15 23:34:05.000000000 +0200
+++ new/jaraco_functools-4.6.0/jaraco.functools.egg-info/SOURCES.txt
2026-07-14 03:27:59.000000000 +0200
@@ -24,6 +24,8 @@
jaraco.functools.egg-info/SOURCES.txt
jaraco.functools.egg-info/dependency_links.txt
jaraco.functools.egg-info/requires.txt
+jaraco.functools.egg-info/scm_file_list.json
+jaraco.functools.egg-info/scm_version.json
jaraco.functools.egg-info/top_level.txt
jaraco/functools/__init__.py
jaraco/functools/__init__.pyi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco_functools-4.5.0/jaraco.functools.egg-info/scm_file_list.json
new/jaraco_functools-4.6.0/jaraco.functools.egg-info/scm_file_list.json
--- old/jaraco_functools-4.5.0/jaraco.functools.egg-info/scm_file_list.json
1970-01-01 01:00:00.000000000 +0100
+++ new/jaraco_functools-4.6.0/jaraco.functools.egg-info/scm_file_list.json
2026-07-14 03:27:59.000000000 +0200
@@ -0,0 +1,28 @@
+{
+ "files": [
+ ".coveragerc",
+ "NEWS.rst",
+ ".pre-commit-config.yaml",
+ "test_functools.py",
+ "mypy.ini",
+ "tox.ini",
+ "pyproject.toml",
+ "SECURITY.md",
+ "AGENTS.md",
+ "towncrier.toml",
+ "README.rst",
+ "ruff.toml",
+ "conftest.py",
+ ".editorconfig",
+ ".readthedocs.yaml",
+ "pytest.ini",
+ "docs/index.rst",
+ "docs/history.rst",
+ "docs/conf.py",
+ "jaraco/functools/py.typed",
+ "jaraco/functools/__init__.py",
+ "jaraco/functools/__init__.pyi",
+ ".github/FUNDING.yml",
+ ".github/workflows/main.yml"
+ ]
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco_functools-4.5.0/jaraco.functools.egg-info/scm_version.json
new/jaraco_functools-4.6.0/jaraco.functools.egg-info/scm_version.json
--- old/jaraco_functools-4.5.0/jaraco.functools.egg-info/scm_version.json
1970-01-01 01:00:00.000000000 +0100
+++ new/jaraco_functools-4.6.0/jaraco.functools.egg-info/scm_version.json
2026-07-14 03:27:59.000000000 +0200
@@ -0,0 +1,8 @@
+{
+ "tag": "4.6.0",
+ "distance": 0,
+ "node": "gf7f4f3bcac8f70e01064dee9a8bde6cc8f997a17",
+ "dirty": false,
+ "branch": "HEAD",
+ "node_date": "2026-07-14"
+}