Up to [cvs.NetBSD.org] / pkgsrc / misc / py-platformdirs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-platformdirs: update to 4.14.5. 4.14.5 Resolve the temporary user_runtime_dir fallback to /runtime-<uid> instead of //runtime-<uid> when the temporary directory is / (#687) by @darrenhuai and @gaborbernat. 4.14.4 Bugfixes.
py-platformdirs: update to 4.14.3.
4.14.3
Preserve trailing whitespace in absolute XDG directory values instead of resolving a different directory (#679) by @mikegit123git and @gaborbernat.
4.14.2
Deduplicate equivalent XDG directory spellings across string and path iterators and file searches (#677) by @AlvaroBalbin and @gaborbernat.
4.14.0
Features
Accept a keyword-only ensure_exists in the module-level media directory functions, such as user_documents_path, to create a directory set through XDG_*_DIR or user-dirs.dirs (#656) by @darrenhuai and @gaborbernat.
Bug fixes
Return the media and fonts directories under root's home for root with use_site_for_root, ignoring the invoking user's XDG_*_DIR, user-dirs.dirs and XDG_DATA_HOME, and create no inherited media directory under ensure_exists (#661) by @gaborbernat.
Raise ValueError from site_data_dir and site_config_dir under multipath=True when appname or version contains os.pathsep, rather than returning a string that splits into a directory outside the site base (#662) by @gaborbernat.
Parse an unquoted user-dirs.dirs value with a long run of blanks in linear time, rather than in time quadratic in the run's length on every Unix media directory lookup (#663) by @gaborbernat.
Treat a relative HOME as unset on Unix, macOS and iOS, taking the home from the password database or raising RuntimeError, rather than resolving user directories against the working directory (#664) by @gaborbernat.
Refuse a symlink as XDG_RUNTIME_DIR in user_runtime_dir when the value ends with / or /., which made the check follow the link (#665) by @gaborbernat.
Redirect user_*_dir calls with use_site_for_root=True when the effective uid is 0, so a setuid-root process gets the site directories, and name and check the runtime directory by the effective uid (#666) by @gaborbernat.
Apply the XDG_RUNTIME_DIR check of the Unix user_runtime_dir to the macOS one, so it no longer uses a directory that is a symlink, owned by another user or not mode 0700 (#667) by @gaborbernat.
Reject an XDG_RUNTIME_DIR below a parent that another user can replace, such as their own entry in /tmp, instead of creating the runtime directory through it (#668) by @gaborbernat.
Stop accepting a Unix runtime directory that another user creates between the owner check and its use: ensure_exists and place_runtime_file create it before checking it, and find_runtime_file checks it again after a hit (#669) by @gaborbernat.
Raise PermissionError on macOS when ensure_exists would create the site cache through a /Library/Caches/$appname that is a symlink, not a directory, or owned by a user other than root and the current one (#670) by @gaborbernat.
With ensure_exists, raise FileExistsError when a configured media directory such as user_documents_dir is a regular file or a symlink to one, instead of returning the file's path. Dangling symlinks are still returned unchanged (#672) by @rupayon123 and @gaborbernat.
4.13.7
Bug fixes
Fall back to the default media directories when user-dirs.dirs exists but cannot be read, rather than raising PermissionError or IsADirectoryError (#632) by @Debasishhh and @gaborbernat.
Resolve the Windows Projects directory from USERPROFILE when HOME is empty, rather than raising RuntimeError (#635) by @pabszero and @gaborbernat.
Resolve $HOME entries in user-dirs.dirs to /Documents instead of //Documents when the home directory is / (#636) by @darrenhuai and @gaborbernat.
Print the error and keep listing directories in python -m platformdirs when the home directory is unknown, rather than stopping with RuntimeError (#638) by @tongwentao and @gaborbernat.
Raise FileNotFoundError from the place_*_file methods when the user directory is on a missing Windows drive or network share, rather than recursing until RecursionError (#639) by @nk-batman21 and @gaborbernat.
Search the directories of a subclass's overridden iter_*_paths method in find_*_file and find_*_files, rather than the base class ones (#640) by @KennyMcSimpson and @gaborbernat.
Keep isolated_dirs paths under a relative root after the working directory changes, and yield the root as an absolute path (#643) by @0x5t4l1n and @gaborbernat.
Ignore Windows folder overrides with a UNC path missing its server or share name, such as \\server, instead of treating the application name as the share (#647) by @RedCat888 and @gaborbernat.
Documentation
Remove the literal /opt/homebrew from a macOS source comment. Homebrew replaces it with a placeholder when bottling on Apple Silicon but not on Linux, so formulae that bundle platformdirs could not share one bottle across both (#644) by @Moisan and @gaborbernat.
4.13.6
Packaging
Releases now run on the shared tox-dev/github-workflows pipeline, with a locked release toolchain and generated GitHub Release notes (#650) by @gaborbernat.
py-platformdirs: update to 4.13.5. Publish a GitHub Release with changelog notes, a PyPI link, and a version comparison after each PyPI release. #631
py-platformdirs: update to 4.13.4. docs: correct type checker in contributor guide by @travisfortney in #623 ci: rerun news check on label changes by @gaborbernat in #626 fix(ios): raise when no home directory resolves by @XXXXXQ-0206 in #624 fix: keep root directory accessors consistent during isolation by @AryanRG in #625 test: isolate root directory checks from inherited XDG settings by @shoaibulhaque in #622 fix: require a complete files segment when finding Android app folders by @shoaibulhaque in #621 fix(windows): raise when no home directory resolves by @XXXXXQ-0206 in #627
py-platformdirs: updated to 4.13.3 4.13.3 https://github.com/tox-dev/platformdirs/compare/4.13.2...4.13.3
py-platformdirs: updated to 4.13.0 4.13.0 fix: recognize Homebrew Cellar framework prefixes feat(python): require 3.11 and default to 3.15
py-platformdirs: updated to 4.12.3 4.12.3 Place root config and data files in the first site directory
py-platformdirs: updated to 4.12.2 4.12.2 fix(api): build site paths from site lists refactor(api): share use_site iteration
py-platformdirs: update to 4.12.1.
4.12.1
fix(pytest): allow import before pytest startup by @gaborbernat in #602
4.12.0
What's Changed
📝 docs(unix): fix site_applications_dir default by @gaborbernat in #594
📝 docs(unix): describe the runtime dir fallback by @gaborbernat in #595
📝 docs(android): describe detection and folders by @gaborbernat in #596
📝 docs(windows): narrow MSIX AppData redirection by @gaborbernat in #597
📝 docs(windows): show how to load a user font by @gaborbernat in #598
📝 docs(windows): list COMMON_PROGRAMS override by @gaborbernat in #593
📝 docs(macos): note XDG_*_DIR for media dirs by @gaborbernat in #592
📝 docs(macos): fix the Homebrew site dir note by @gaborbernat in #591
🐛 fix(ios): use the iOS app container instead of Linux XDG paths by @gaborbernat in #600
✨ feat(api): add place_*_file methods that create parents as 0700 by @gaborbernat in #585
✨ feat(testing): redirect every directory under a test root by @gaborbernat in #590
🐛 fix(windows): resolve templates, public and bin dirs by known folder by @gaborbernat in #587
✨ feat(api): add find_*_file methods for user and site lookup by @gaborbernat in #586
🐛 fix(dirs): create user directories with mode 0700 by @gaborbernat in #588
🐛 fix(dirs): raise when no home directory resolves by @gaborbernat in #589
🐛 fix(unix): validate XDG_RUNTIME_DIR and warn on fallback by @gaborbernat in #599
py-platformdirs: updated to 4.11.12 4.11.12 docs: preserve nested directories in the migration recipe fix: ignore broken sphinx-llm release fix: ignore relative XDG user directory environment variables
py-platformdirs: updated to 4.11.8 4.11.8 fix: ignore relative XDG base directory paths fix: return one user path for root under multipath fix: preserve literal percent signs in user-dirs paths fix: retain Homebrew site directories inside virtual environments
py-platformdirs: updated to 4.11.7 4.11.7 (2026-09-01) 4.11.6 (2026-09-01) Give :func:`~platformdirs.user_bin_dir` and :func:`~platformdirs.user_bin_path` the use_site_for_root argument. They took none, so neither could reach the Unix redirect of root to :func:`~platformdirs.site_bin_dir`. :pr:`537`
py-platformdirs: update to 4.11.5.
What's Changed
docs: fix the iterator order claim in api.rst by @gaborbernat in #533
fix: return one site applications path for multipath by @tunglambk in #532
fix: accept app arguments in the applications functions by @gaborbernat in #534
refactor: keyword-only booleans on the applications functions by @gaborbernat in #535
fix: accept app arguments in user_preference_dir by @dylanpulver in #531
py-platformdirs: updated to 4.11.4 4.11.4 chore: batch dependency updates weekly on Tuesday fix: stop iter_*_dirs yielding the same directory twice docs: fix merge order in the config how-to
py-platformdirs: update to 4.11.3. 📄 docs: publish llms.txt from the docs build by @gaborbernat in #522 fix: don't crash when an XDG dirs variable holds only separators by @darrenhuai in #523
py-platformdirs: updated to 4.11.2 4.11.2 fix: stop the remaining iter_*_dirs yielding duplicate or joined paths
py-platformdirs: updated to 4.11.1 4.11.1 Let the non-ctypes resolvers find the desktop folder
py-platformdirs: updated to 4.11.0 4.11.0 ci: run the test suite against Python 3.15
py-platformdirs: update to 4.10.1. 🐛 fix(windows): stop leaking memory on repeated folder lookups by @gaborbernat in #507 🚀 ci(release): towncrier changelog + publish on tag push by @gaborbernat in #509 📝 docs(changelog): rebuild against release history by @gaborbernat in #510
py-platformdirs: updated to 4.10.0 4.10.0 chore: improve platformdirs maintenance path feat: add user_projects_dir for $XDG_PROJECTS_DIR feat: add user_publicshare_dir, user_templates_dir, user_fonts_dir, user_preference_dir
py-platformdirs: updated to 4.9.6 4.9.6 fix(release): use double quotes for tag variable expansion
py-platformdirs: updated to 4.9.4 4.9.4 Add permissions to workflows Move SECURITY.md to .github/SECURITY.md Standardize .github files to .yaml suffix docs: add project logo to documentation
py-platformdirs: update to 4.9.2.
4.9.2
📝 docs(platforms): fix RST formatting and TOC hierarchy by @gaborbernat in #447
📝 docs: restructure following Diataxis framework by @gaborbernat in #448
4.9.1
📝 docs: enhance README, fix issues, and reorganize platforms.rst by @gaborbernat in #445
4.9.0
📝 docs(usage): add use_site_for_root and comprehensive guidance by @gaborbernat in #439
🐛 fix(unix): use correct runtime dir path for OpenBSD by @gaborbernat in #440
✨ feat(api): add site_applications_dir property by @gaborbernat in #442
✨ feat(api): add site_bin_dir property by @gaborbernat in #443
📚 docs: split usage guide into tutorial, how-to, and reference by @gaborbernat in #441
4.8.0
📝 docs(windows): document Store Python sandbox path behavior by @gaborbernat in #423
✨ feat(api): add site_log_dir and document Store Python sandbox by @gaborbernat in #424
✨ feat(api): add site_state_dir for system-wide state by @gaborbernat in #425
✨ feat(api): add use_site_for_root parameter by @gaborbernat in #426
✨ feat(windows): add PLATFORMDIRS_* env var overrides by @gaborbernat in #427
✨ feat(windows): add WIN_PD_OVERRIDE_* env var overrides by @gaborbernat in #428
🐛 fix(macos): yield individual site dirs in iter_*_dirs by @gaborbernat in #429
✨ feat(api): add user_bin_dir property by @gaborbernat in #430
✨ feat(api): add user_applications_dir property by @gaborbernat in #432
📝 docs(usage): note that home dir is in stdlib by @gaborbernat in #431
4.7.1
🐛 fix(windows): avoid FileNotFoundError in sandboxed environments by @gaborbernat in #422
py-platformdirs: updated to 4.7.0 4.7.0 docs: restructure and fix cross-references feat(windows): use SHGetKnownFolderPath API fix(unix): fall back to tempdir when runtime dir is not writable build(release): adopt filelock-style automated workflow
py-platformdirs: update to 4.5.1.
What's Changed
Fix no-ctypes fallback on windows by @youknowone in #403
py-platformdirs: updated to 4.5.0 4.5.0 Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in the all group Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in /.github/workflows Add support for Python 3.14 Update Windows file paths in README Bump astral-sh/setup-uv from 6 to 7 in the all group Drop 3.9 support
py-platformdirs: updated to 4.4.0 4.4.0 feat: improve homebrew path detection
misc/py-platformdirs: Fix tests on BSD. Resolves: FAILED tests/test_unix.py::test_xdg_variable_not_set[user_runtime_dir] - AssertionError: assert '/tmp/runtime-1234' == '/run/user/1234' FAILED tests/test_unix.py::test_xdg_variable_not_set[site_runtime_dir] - AssertionError: assert '/var/run' == '/run' FAILED tests/test_unix.py::test_xdg_variable_empty_value[user_runtime_dir] - AssertionError: assert '/tmp/runtime-1234' == '/run/user/1234' FAILED tests/test_unix.py::test_xdg_variable_empty_value[site_runtime_dir] - AssertionError: assert '/var/run' == '/run'
py-platformdirs: update to 4.3.8. Add missing examples and fix order of examples in README by @gene1wood in #355
py-platformdirs: updated to 4.3.7 4.3.7 Chunk dependabot updates into a single PR Drop support for EOL Python 3.8
py-platformdirs: updated to 4.3.6 4.3.6 Fix readme download target
py-platformdirs: updated to 4.3.3 4.3.3 Update check.yml don't include outdated changelog in docs
py-platformdirs: updated to 4.3.2 4.3.2 Use uv as installer Fix multi-path returned from _path methods on MacOS
py-platformdirs: updated to 4.2.2 4.2.2 Fix android detection when python4android is present
py-platformdirs: updated to 4.2.1 4.2.1 Switch to ruff for formatting and use codespell and docformatter Use hatch over tox chore: various minor fixes chore: update dead Microsoft's known folders documentation link Allow working without ctypes
py-platformdirs: updated to 4.2.0 4.2.0 Fix 2 typos about XDG_DATA_DIR Add convenience methods to PlatformDirsAPI that allow iterating over both user and site dirs/paths.
py-platformdirs: updated to 4.1.0 4.1.0 Update changelog for 4.0.0 docs: fix Linux user_log_dir example in README Drop support for EOL Python 3.7
py-platformdirs: update to 4.0.0. site_cache_dir: Use /var/cache again instead of /var/tmp on UNIX by @andersk in #239
python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs.
py-platformdirs: updated to 3.11.0 3.11.0 README: Fix CI badge Fix documentation build Add support for Homebrew-installed software
py-platformdirs: updated to 3.10.0 3.10.0 Fix docs build failure platformdirs: introduce site_runtime_dir
py-platformdirs: update to 3.9.1. 3.9.1 unix: Optionally create the opinionated log/ in user_log_dir() by @kemzeb in #208 3.9.0 Added desktop folder by @lukacat10 in #200
py-platformdirs: updated to 3.8.1 platformdirs 3.8.1 (2023-07-06) BSD: provide a fallback for user_runtime_di
py-platformdirs: updated to 3.8.0 3.8.0 Add missing user media directory docs
py-platformdirs: updated to 3.5.3 3.5.2 git ls-files -z -- .github/workflows/check.yml | xargs -0 sed -i 's|3.12.0-alpha.7|3.12.0-beta.1|g' Use ruff
py-platformdirs: updated to 3.5.1 3.5.1 Add 3.12 support Add tox.ini to sdist removing Windows versions Better handling for UNIX support
py-platformdirs: update to 3.5.0. platformdirs: introduce user_music_dir() by @kemzeb in #173
py-platformdirs: updated to 3.4.0 platformdirs 3.4.0 introduce user_videos_dir
py-platformdirs: updated to 3.3.0 3.3.0 introduce user_pictures_dir()
py-platformdirs: updated to 3.2.0 platformdirs 3.2.0 (2023-03-25) add auto create directories option
py-platformdirs: updadted to 3.1.1 platformdirs 3.1.1 (2023-03-10) site_cache_dir use /var/tmp instead of /var/cache on unix, as the later may be write protected platformdirs 3.1.0 (2023-03-03) Introduce site_cache_dir platformdirs 3.0.1 (2023-03-02) Add appdirs keyword to package platformdirs 3.0.0 (2023-02-06) BREAKING Changed the config directory on macOS to point to */Library/Application Support macOS: remove erroneous trailing slash from user_config_dir and user_data_dir
py-platformdirs: updated to 2.6.2 platformdirs 2.6.2 (2022-12-28) Fix missing typing-extensions dependency. platformdirs 2.6.1 (2022-12-28) Add detection of $PREFIX for android. platformdirs 2.6.0 (2022-12-06) BREAKING Correct the log directory on Linux/Unix from XDG_CACHE_HOME to XDG_STATE_HOME per the XDG spec
py-platformdirs: updated to 2.5.4 platformdirs 2.5.4 (2022-11-12) Fix licesing metadata platformdirs 2.5.3 (2022-11-06) Support 3.11 Bump dependencies
(misc/py-platformdirs) PKGREVISION++
py-platformdirs: updated to 2.5.2 2.5.2 Move packaging to hatcling from setuptools Treat android shells as unix
py-platformdirs: updated to 2.5.1 platformdirs 2.5.1 Add native support for nuitka platformdirs 2.5.0 Add support for Termux subsystems
py-platformdirs: updated to 2.4.1 platformdirs 2.4.1 ------------------ - Drop python 3.6 support
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-platformdirs: updated to 2.4.0 2.4.0: Add user_documents_dir
py-platformdirs: updated to 2.3.0 2.3.0 Add `user_runtime_dir` for `$XDG_RUNTIME_DIR`
py-platformdirs: added version 2.2.0 When writing desktop application, finding the right location to store user data and configuration varies per platform. Even for single-platform apps, there may by plenty of nuances in figuring out the right location. This kind of thing is what the platformdirs module is for.