Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-wheel for openSUSE:Factory checked in at 2024-11-26 20:55:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wheel (Old) and /work/SRC/openSUSE:Factory/.python-wheel.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wheel" Tue Nov 26 20:55:20 2024 rev:39 rq:1225987 version:0.45.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wheel/python-wheel.changes 2024-11-15 15:38:33.918673844 +0100 +++ /work/SRC/openSUSE:Factory/.python-wheel.new.28523/python-wheel.changes 2024-11-26 20:55:22.869139613 +0100 @@ -1,0 +2,7 @@ +Sat Nov 23 11:03:33 UTC 2024 - Dirk Müller <[email protected]> + +- update to 0.45.1: + * Fixed pure Python wheels converted from eggs and wininst + files having the ABI tag in the file name + +------------------------------------------------------------------- Old: ---- wheel-0.45.0.tar.gz New: ---- wheel-0.45.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wheel.spec ++++++ --- /var/tmp/diff_new_pack.NOnUbd/_old 2024-11-26 20:55:23.621170969 +0100 +++ /var/tmp/diff_new_pack.NOnUbd/_new 2024-11-26 20:55:23.621170969 +0100 @@ -32,7 +32,7 @@ %endif %{?sle15_python_module_pythons} Name: python-wheel%{psuffix} -Version: 0.45.0 +Version: 0.45.1 Release: 0 Summary: A built-package format for Python License: MIT ++++++ wheel-0.45.0.tar.gz -> wheel-0.45.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.45.0/docs/news.rst new/wheel-0.45.1/docs/news.rst --- old/wheel-0.45.0/docs/news.rst 2024-11-08 22:40:06.000000000 +0100 +++ new/wheel-0.45.1/docs/news.rst 2024-11-23 01:14:12.000000000 +0100 @@ -1,6 +1,11 @@ Release Notes ============= +**0.45.1 (2024-11-23)** + +- Fixed pure Python wheels converted from eggs and wininst files having the ABI tag in + the file name + **0.45.0 (2024-11-08)** - Refactored the ``convert`` command to not need setuptools to be installed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.45.0/src/wheel/__init__.py new/wheel-0.45.1/src/wheel/__init__.py --- old/wheel-0.45.0/src/wheel/__init__.py 2024-11-08 22:40:06.000000000 +0100 +++ new/wheel-0.45.1/src/wheel/__init__.py 2024-11-23 01:14:12.000000000 +0100 @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = "0.45.0" +__version__ = "0.45.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.45.0/src/wheel/cli/convert.py new/wheel-0.45.1/src/wheel/cli/convert.py --- old/wheel-0.45.0/src/wheel/cli/convert.py 2024-11-08 22:40:06.000000000 +0100 +++ new/wheel-0.45.1/src/wheel/cli/convert.py 2024-11-23 01:14:12.000000000 +0100 @@ -122,8 +122,8 @@ self.version = match.group("ver") if pyver := match.group("pyver"): self.pyver = pyver.replace(".", "") - self.abi = self.pyver.replace("py", "cp") if arch := match.group("arch"): + self.abi = self.pyver.replace("py", "cp") self.platform = normalize(arch) self.metadata = Message() @@ -225,7 +225,6 @@ self.platform = normalize(match.group("platform")) if pyver := match.group("pyver"): self.pyver = pyver.replace(".", "") - self.abi = pyver.replace("py", "cp") # Look for an .egg-info directory and any .pyd files for more precise info egg_info_found = pyd_found = False diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.45.0/tests/cli/test_convert.py new/wheel-0.45.1/tests/cli/test_convert.py --- old/wheel-0.45.0/tests/cli/test_convert.py 2024-11-08 22:40:06.000000000 +0100 +++ new/wheel-0.45.1/tests/cli/test_convert.py 2024-11-23 01:14:12.000000000 +0100 @@ -176,6 +176,16 @@ return str(bdist_path) [email protected] +def expected_wheel_filename(pyver: str | None, arch: str) -> str: + if arch != "any": + pyver = pyver.replace(".", "") if pyver else "py2.py3" + abiver = pyver.replace("py", "cp") + return f"sampledist-1.0.0-{pyver}-{abiver}-{arch}.whl" + else: + return "sampledist-1.0.0-py2.py3-none-any.whl" + + def test_egg_re() -> None: """Make sure egg_info_re matches.""" egg_names_path = os.path.join(os.path.dirname(__file__), "eggnames.txt") @@ -191,10 +201,12 @@ tmp_path: Path, arch: str, expected_wheelfile: bytes, + expected_wheel_filename: str, capsys: CaptureFixture, ) -> None: convert([egg_path], str(tmp_path), verbose=True) wheel_path = next(path for path in tmp_path.iterdir() if path.suffix == ".whl") + assert wheel_path.name == expected_wheel_filename with WheelFile(wheel_path) as wf: assert wf.read("sampledist-1.0.0.dist-info/METADATA") == EXPECTED_METADATA assert wf.read("sampledist-1.0.0.dist-info/WHEEL") == expected_wheelfile @@ -207,8 +219,10 @@ egg_path: str, tmp_path: Path, tmp_path_factory: TempPathFactory, + pyver: str | None, arch: str, expected_wheelfile: bytes, + expected_wheel_filename: str, capsys: CaptureFixture, ) -> None: with zipfile.ZipFile(egg_path) as egg_file: @@ -218,6 +232,7 @@ convert([str(egg_dir_path)], str(tmp_path), verbose=True) wheel_path = next(path for path in tmp_path.iterdir() if path.suffix == ".whl") + assert wheel_path.name == expected_wheel_filename with WheelFile(wheel_path) as wf: assert wf.read("sampledist-1.0.0.dist-info/METADATA") == EXPECTED_METADATA assert wf.read("sampledist-1.0.0.dist-info/WHEEL") == expected_wheelfile @@ -231,10 +246,12 @@ tmp_path: Path, arch: str, expected_wheelfile: bytes, + expected_wheel_filename: str, capsys: CaptureFixture, ) -> None: convert([bdist_wininst_path], str(tmp_path), verbose=True) wheel_path = next(path for path in tmp_path.iterdir() if path.suffix == ".whl") + assert wheel_path.name == expected_wheel_filename with WheelFile(wheel_path) as wf: assert ( wf.read("sampledist-1.0.0.data/scripts/somecommand")
