Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-zipp for openSUSE:Factory checked in at 2026-04-23 17:04:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zipp (Old) and /work/SRC/openSUSE:Factory/.python-zipp.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zipp" Thu Apr 23 17:04:17 2026 rev:26 rq:1348652 version:3.23.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zipp/python-zipp.changes 2026-04-14 17:48:58.357159388 +0200 +++ /work/SRC/openSUSE:Factory/.python-zipp.new.11940/python-zipp.changes 2026-04-23 17:04:23.540202776 +0200 @@ -1,0 +2,7 @@ +Tue Apr 14 21:58:40 UTC 2026 - Dirk Müller <[email protected]> + +- update to 3.23.1: + * str(Path(...)) now renders ":zipfile" for the filename when a + zipfile has no filename instead of failing with a TypeError. + +------------------------------------------------------------------- Old: ---- zipp-3.23.0.tar.gz New: ---- zipp-3.23.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zipp.spec ++++++ --- /var/tmp/diff_new_pack.Gy1kcZ/_old 2026-04-23 17:04:24.452240349 +0200 +++ /var/tmp/diff_new_pack.Gy1kcZ/_new 2026-04-23 17:04:24.452240349 +0200 @@ -26,7 +26,7 @@ %endif %{?sle15_python_module_pythons} Name: python-zipp%{psuffix} -Version: 3.23.0 +Version: 3.23.1 Release: 0 Summary: Pathlib-compatible object wrapper for zip files License: MIT ++++++ zipp-3.23.0.tar.gz -> zipp-3.23.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/LICENSE new/zipp-3.23.1/LICENSE --- old/zipp-3.23.0/LICENSE 2025-06-08 19:06:34.000000000 +0200 +++ new/zipp-3.23.1/LICENSE 2026-04-14 01:21:37.000000000 +0200 @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 <copyright holders> +Copyright (c) 2026 <copyright holders> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/NEWS.rst new/zipp-3.23.1/NEWS.rst --- old/zipp-3.23.0/NEWS.rst 2025-06-08 19:06:15.000000000 +0200 +++ new/zipp-3.23.1/NEWS.rst 2025-08-18 22:09:28.000000000 +0200 @@ -1,3 +1,12 @@ +v3.23.1 +======= + +Bugfixes +-------- + +- ``str(Path(...))`` now renders ":zipfile" for the filename when a zipfile has no filename instead of failing with a TypeError. (#134) + + v3.23.0 ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/PKG-INFO new/zipp-3.23.1/PKG-INFO --- old/zipp-3.23.0/PKG-INFO 2025-06-08 19:06:35.141238000 +0200 +++ new/zipp-3.23.1/PKG-INFO 2026-04-14 01:21:37.710435000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: zipp -Version: 3.23.0 +Version: 3.23.1 Summary: Backport of pathlib-compatible object wrapper for zip files Author-email: "Jason R. Coombs" <[email protected]> License-Expression: MIT @@ -77,6 +77,8 @@ * - zipp - stdlib + * - 3.21 + - 3.15 * - 3.18 - 3.13 * - 3.16 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/README.rst new/zipp-3.23.1/README.rst --- old/zipp-3.23.0/README.rst 2025-06-08 19:06:15.000000000 +0200 +++ new/zipp-3.23.1/README.rst 2025-08-18 22:03:48.000000000 +0200 @@ -37,6 +37,8 @@ * - zipp - stdlib + * - 3.21 + - 3.15 * - 3.18 - 3.13 * - 3.16 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/tests/test_path.py new/zipp-3.23.1/tests/test_path.py --- old/zipp-3.23.0/tests/test_path.py 2025-06-08 19:06:15.000000000 +0200 +++ new/zipp-3.23.1/tests/test_path.py 2026-04-14 01:21:08.000000000 +0200 @@ -346,6 +346,19 @@ root = Subclass(alpharep) assert isinstance(root / 'b', Subclass) + def test_at(self): + root = zipfile.Path(zipfile.ZipFile(io.BytesIO(), 'w')) + assert root.at == '' + assert (root / 'foo' / 'bar').at == 'foo/bar' + + def test_str(self): + """ + An unnamed zip file is indicated by ":zipfile:" + """ + root = zipfile.Path(zipfile.ZipFile(io.BytesIO(), 'w')) + assert str(root) == ':zipfile:' + assert str(root / 'foo' / 'bar') == ':zipfile:/foo/bar' + @pass_alpharep def test_filename(self, alpharep): root = zipfile.Path(alpharep) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/zipp/__init__.py new/zipp-3.23.1/zipp/__init__.py --- old/zipp-3.23.0/zipp/__init__.py 2025-06-08 19:06:15.000000000 +0200 +++ new/zipp-3.23.1/zipp/__init__.py 2026-04-14 01:21:08.000000000 +0200 @@ -17,7 +17,7 @@ import sys import zipfile -from ._functools import save_method_args +from ._functools import none_as, save_method_args from .compat.py310 import text_encoding from .glob import Translator @@ -277,7 +277,7 @@ resolve to the zipfile. >>> str(path) - 'mem/abcde.zip/' + 'mem/abcde.zip' >>> path.name 'abcde.zip' >>> path.filename == pathlib.Path('mem/abcde.zip') @@ -435,7 +435,8 @@ return posixpath.relpath(str(self), str(other.joinpath(*extra))) def __str__(self): - return posixpath.join(self.root.filename, self.at) + root = none_as(self.root.filename, ':zipfile:') + return posixpath.join(root, self.at) if self.at else root def __repr__(self): return self.__repr.format(self=self) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/zipp/_functools.py new/zipp-3.23.1/zipp/_functools.py --- old/zipp-3.23.0/zipp/_functools.py 2025-06-08 19:06:15.000000000 +0200 +++ new/zipp-3.23.1/zipp/_functools.py 2025-08-18 22:09:11.000000000 +0200 @@ -18,3 +18,14 @@ return method(self, *args, **kwargs) return wrapper + + +# from jaraco.functools 4.3 +def none_as(value, replacement=None): + """ + >>> none_as(None, 'foo') + 'foo' + >>> none_as('bar', 'foo') + 'bar' + """ + return replacement if value is None else value diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zipp-3.23.0/zipp.egg-info/PKG-INFO new/zipp-3.23.1/zipp.egg-info/PKG-INFO --- old/zipp-3.23.0/zipp.egg-info/PKG-INFO 2025-06-08 19:06:35.000000000 +0200 +++ new/zipp-3.23.1/zipp.egg-info/PKG-INFO 2026-04-14 01:21:37.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: zipp -Version: 3.23.0 +Version: 3.23.1 Summary: Backport of pathlib-compatible object wrapper for zip files Author-email: "Jason R. Coombs" <[email protected]> License-Expression: MIT @@ -77,6 +77,8 @@ * - zipp - stdlib + * - 3.21 + - 3.15 * - 3.18 - 3.13 * - 3.16
