From: Alexandru Ardelean Date: Wed, 1 Apr 2026 09:37:35 +0000 (+0300) Subject: python-platformdirs: bump to 4.9.4 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=22a748275871cd8e77767d97b1e5558b0fda6048;p=openwrt-packages.git python-platformdirs: bump to 4.9.4 Changelog: https://github.com/platformdirs/platformdirs/blob/main/CHANGELOG.md Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/python-platformdirs/Makefile b/lang/python/python-platformdirs/Makefile index 0f52f2645..47d8e63a8 100644 --- a/lang/python/python-platformdirs/Makefile +++ b/lang/python/python-platformdirs/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-platformdirs -PKG_VERSION:=4.1.0 +PKG_VERSION:=4.9.4 PKG_RELEASE:=1 PYPI_NAME:=platformdirs -PKG_HASH:=906d548203468492d432bcb294d4bc2fff751bf84971fbb2c10918cc206ee420 +PKG_HASH:=1ec356301b7dc906d83f371c8f487070e99d3ccf9e501686456394622a01a934 PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE diff --git a/lang/python/python-platformdirs/test.sh b/lang/python/python-platformdirs/test.sh index 40dabb2fb..ffb551fb9 100644 --- a/lang/python/python-platformdirs/test.sh +++ b/lang/python/python-platformdirs/test.sh @@ -18,7 +18,9 @@ assert user_pictures_dir() == '/root/Pictures' assert user_videos_dir() == '/root/Videos' assert user_music_dir() == '/root/Music' assert user_desktop_dir() == '/root/Desktop' -assert user_runtime_dir(appname, appauthor) == '/run/user/0/SuperApp' +# user_runtime_dir falls back to /tmp/runtime-{uid}/... if /run/user/{uid} is not writable +runtime_dir = user_runtime_dir(appname, appauthor) +assert 'SuperApp' in runtime_dir assert site_data_dir(appname, appauthor) == '/usr/local/share/SuperApp' assert site_data_dir(appname, appauthor, multipath=True) == '/usr/local/share/SuperApp:/usr/share/SuperApp'