Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-findpython for 
openSUSE:Factory checked in at 2025-12-10 15:30:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-findpython (Old)
 and      /work/SRC/openSUSE:Factory/.python-findpython.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-findpython"

Wed Dec 10 15:30:42 2025 rev:14 rq:1321715 version:0.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-findpython/python-findpython.changes      
2025-08-18 16:09:45.574680676 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-findpython.new.1939/python-findpython.changes
    2025-12-10 15:31:28.972662153 +0100
@@ -1,0 +2,7 @@
+Tue Dec  9 10:34:06 UTC 2025 - Markéta Machová <[email protected]>
+
+- Update to 0.7.1
+  * Make test_find_python_from_uv_provider working on SunOS
+- Skip test failing in Factory by design
+
+-------------------------------------------------------------------

Old:
----
  findpython-0.7.0.tar.gz

New:
----
  findpython-0.7.1.tar.gz

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

Other differences:
------------------
++++++ python-findpython.spec ++++++
--- /var/tmp/diff_new_pack.tDQU0v/_old  2025-12-10 15:31:29.632689980 +0100
+++ /var/tmp/diff_new_pack.tDQU0v/_new  2025-12-10 15:31:29.636690149 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-findpython
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-findpython
-Version:        0.7.0
+Version:        0.7.1
 Release:        0
 Summary:        Utility to find python versions on your system
 License:        MIT
@@ -26,9 +26,9 @@
 Source:         
https://files.pythonhosted.org/packages/source/f/findpython/findpython-%{version}.tar.gz
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module packaging >= 20}
-BuildRequires:  %{python_module platformdirs >= 4.3.6}
 BuildRequires:  %{python_module pdm-backend}
 BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module platformdirs >= 4.3.6}
 BuildRequires:  fdupes
 BuildRequires:  git
 BuildRequires:  python-rpm-macros
@@ -58,7 +58,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%pytest
+# test_find_python_from_uv_provider needs python3 providing python 3.10, which 
is not possible in Factory
+%pytest -k "not test_find_python_from_uv_provider"
 
 %post
 %python_install_alternative findpython

++++++ findpython-0.7.0.tar.gz -> findpython-0.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.7.0/PKG-INFO 
new/findpython-0.7.1/PKG-INFO
--- old/findpython-0.7.0/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
+++ new/findpython-0.7.1/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: findpython
-Version: 0.7.0
+Version: 0.7.1
 Summary: A utility to find python versions on your system
 Author-Email: Frost Ming <[email protected]>
 License: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.7.0/pyproject.toml 
new/findpython-0.7.1/pyproject.toml
--- old/findpython-0.7.0/pyproject.toml 2025-07-02 11:22:10.479690000 +0200
+++ new/findpython-0.7.1/pyproject.toml 2025-11-13 09:34:30.793042400 +0100
@@ -20,7 +20,7 @@
     "Programming Language :: Python :: 3.12",
     "Programming Language :: Python :: 3.13",
 ]
-version = "0.7.0"
+version = "0.7.1"
 
 [project.license]
 text = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.7.0/src/findpython/__version__.py 
new/findpython-0.7.1/src/findpython/__version__.py
--- old/findpython-0.7.0/src/findpython/__version__.py  2025-07-02 
11:22:10.475690100 +0200
+++ new/findpython-0.7.1/src/findpython/__version__.py  2025-11-13 
09:34:30.790042400 +0100
@@ -1 +1 @@
-__version__ = "0.7.0"
+__version__ = "0.7.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.7.0/src/findpython/providers/winreg.py 
new/findpython-0.7.1/src/findpython/providers/winreg.py
--- old/findpython-0.7.0/src/findpython/providers/winreg.py     2025-07-02 
11:21:59.740141000 +0200
+++ new/findpython-0.7.1/src/findpython/providers/winreg.py     2025-11-13 
09:34:20.815089700 +0100
@@ -1,6 +1,7 @@
 from __future__ import annotations
 
 import platform
+from functools import lru_cache
 from pathlib import Path
 from typing import TYPE_CHECKING
 
@@ -19,7 +20,11 @@
     else:
         from typing_extensions import Self
 
-SYS_ARCHITECTURE = platform.architecture()[0]
+
+@lru_cache
+def sys_architecture() -> str:
+    """Return the system architecture."""
+    return platform.architecture()[0]
 
 
 class WinregProvider(BaseProvider):
@@ -35,6 +40,7 @@
         from findpython.pep514tools import findall as pep514_findall
 
         env_versions = pep514_findall()
+        sys_arch = sys_architecture()
         for version in env_versions:
             install_path = getattr(version.info, "install_path", None)
             if install_path is None:
@@ -54,7 +60,7 @@
                 py_ver = self.version_maker(
                     path,
                     parse_version,
-                    getattr(version.info, "sys_architecture", 
SYS_ARCHITECTURE),
+                    getattr(version.info, "sys_architecture", sys_arch),
                     path,
                 )
                 yield py_ver
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.7.0/tests/test_posix.py 
new/findpython-0.7.1/tests/test_posix.py
--- old/findpython-0.7.0/tests/test_posix.py    2025-07-02 11:21:59.740141000 
+0200
+++ new/findpython-0.7.1/tests/test_posix.py    2025-11-13 09:34:20.815089700 
+0100
@@ -98,7 +98,7 @@
 
 
 def test_find_python_from_uv_provider(mocked_python, tmp_path, monkeypatch):
-    if platform.system() == "Linux":
+    if platform.system() == "Linux" or platform.system() == "SunOS":
         python_root = tmp_path / ".local/share/uv/python"
     else:  # macos
         python_root = tmp_path / "Library/Application Support/uv/python"

Reply via email to