Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-platformdirs for
openSUSE:Factory checked in at 2025-12-29 15:16:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-platformdirs (Old)
and /work/SRC/openSUSE:Factory/.python-platformdirs.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-platformdirs"
Mon Dec 29 15:16:00 2025 rev:19 rq:1324571 version:4.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-platformdirs/python-platformdirs.changes
2025-11-08 16:36:25.656974925 +0100
+++
/work/SRC/openSUSE:Factory/.python-platformdirs.new.1928/python-platformdirs.changes
2025-12-29 15:16:24.658041859 +0100
@@ -1,0 +2,6 @@
+Sun Dec 28 14:12:07 UTC 2025 - Dirk Müller <[email protected]>
+
+- update to 4.5.1:
+ * Fix no-ctypes fallback on windows
+
+-------------------------------------------------------------------
Old:
----
platformdirs-4.5.0.tar.gz
New:
----
platformdirs-4.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-platformdirs.spec ++++++
--- /var/tmp/diff_new_pack.5Lpyfm/_old 2025-12-29 15:16:25.346070120 +0100
+++ /var/tmp/diff_new_pack.5Lpyfm/_new 2025-12-29 15:16:25.350070284 +0100
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-platformdirs%{psuffix}
-Version: 4.5.0
+Version: 4.5.1
Release: 0
Summary: Module for determining appropriate platform-specific dirs
License: MIT
++++++ platformdirs-4.5.0.tar.gz -> platformdirs-4.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/platformdirs-4.5.0/PKG-INFO
new/platformdirs-4.5.1/PKG-INFO
--- old/platformdirs-4.5.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/platformdirs-4.5.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: platformdirs
-Version: 4.5.0
+Version: 4.5.1
Summary: A small Python package for determining appropriate platform-specific
dirs, e.g. a `user data dir`.
Project-URL: Changelog, https://github.com/tox-dev/platformdirs/releases
Project-URL: Documentation, https://platformdirs.readthedocs.io
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/platformdirs-4.5.0/src/platformdirs/version.py
new/platformdirs-4.5.1/src/platformdirs/version.py
--- old/platformdirs-4.5.0/src/platformdirs/version.py 2020-02-02
01:00:00.000000000 +0100
+++ new/platformdirs-4.5.1/src/platformdirs/version.py 2020-02-02
01:00:00.000000000 +0100
@@ -28,7 +28,7 @@
commit_id: COMMIT_ID
__commit_id__: COMMIT_ID
-__version__ = version = '4.5.0'
-__version_tuple__ = version_tuple = (4, 5, 0)
+__version__ = version = '4.5.1'
+__version_tuple__ = version_tuple = (4, 5, 1)
__commit_id__ = commit_id = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/platformdirs-4.5.0/src/platformdirs/windows.py
new/platformdirs-4.5.1/src/platformdirs/windows.py
--- old/platformdirs-4.5.0/src/platformdirs/windows.py 2020-02-02
01:00:00.000000000 +0100
+++ new/platformdirs-4.5.1/src/platformdirs/windows.py 2020-02-02
01:00:00.000000000 +0100
@@ -188,6 +188,9 @@
for all CSIDL_* names.
"""
+ machine_names = {
+ "CSIDL_COMMON_APPDATA",
+ }
shell_folder_name = {
"CSIDL_APPDATA": "AppData",
"CSIDL_COMMON_APPDATA": "Common AppData",
@@ -205,7 +208,10 @@
raise NotImplementedError
import winreg # noqa: PLC0415
- key = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
+ # Use HKEY_LOCAL_MACHINE for system-wide folders, HKEY_CURRENT_USER for
user-specific folders
+ hkey = winreg.HKEY_LOCAL_MACHINE if csidl_name in machine_names else
winreg.HKEY_CURRENT_USER
+
+ key = winreg.OpenKey(hkey,
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
directory, _ = winreg.QueryValueEx(key, shell_folder_name)
return str(directory)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/platformdirs-4.5.0/tests/test_api.py
new/platformdirs-4.5.1/tests/test_api.py
--- old/platformdirs-4.5.0/tests/test_api.py 2020-02-02 01:00:00.000000000
+0100
+++ new/platformdirs-4.5.1/tests/test_api.py 2020-02-02 01:00:00.000000000
+0100
@@ -99,15 +99,15 @@
return builtin_import(name, *args, **kwargs)
-def mock_import(func: Callable[[], None]) -> Callable[[], None]:
+def mock_import(func: Callable[..., None]) -> Callable[..., None]:
@functools.wraps(func)
- def wrap() -> None:
+ def wrap(*args: Any, **kwargs: Any) -> None: # noqa: ANN401
platformdirs_module_items = [item for item in sys.modules.items() if
item[0].startswith("platformdirs")]
try:
builtins.__import__ = _fake_import
for name, _ in platformdirs_module_items:
del sys.modules[name]
- return func()
+ return func(*args, **kwargs)
finally:
# restore original modules
builtins.__import__ = builtin_import
@@ -118,11 +118,15 @@
@mock_import
-def test_no_ctypes() -> None:
+def test_no_ctypes(func: str) -> None:
import platformdirs # noqa: PLC0415
assert platformdirs
+ dirs = platformdirs.PlatformDirs("MyApp", "MyCompany", version="1.0")
+ result = getattr(dirs, func)
+ assert isinstance(result, str)
+
def test_mypy_subclassing() -> None:
# Ensure that PlatformDirs / AppDirs is seen as a valid superclass by mypy