Repository navigation
chore(deps): update dependency platformdirs to v4.13.5 - #77
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
==4.1.0→==4.13.5Release Notes
tox-dev/platformdirs (platformdirs)
v4.13.5Compare Source
Packaging
🐍 PyPI release
📜 Full Changelog
v4.13.4Compare Source
Bug fixes
filespath segment when locating Android app directories fromsys.path. #621 by @shoaibulhaque and @gaborbernat.RuntimeErrorwhen iOS cannot resolve the home directory, rather than returning paths rooted at a literal~. #624 by @XXXXXQ-0206 and @gaborbernat.isolated_dirswhen Unix root enablesuse_site_for_root. Restore root redirection when the context exits. #625 by @AryanRG and @gaborbernat.RuntimeErrorwhen the Windows Projects directory cannot resolve the home directory, rather than returning a path rooted at a literal~. #627 by @XXXXXQ-0206.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.13.3Compare Source
🐍 PyPI release
📜 Full Changelog
v4.13.2Compare Source
Bug fixes
user_fonts_dirwhenXDG_DATA_HOMEends with a separator. #619 by @blouirts123 and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.13.1Compare Source
Bug fixes
user-dirs.dirspaths instead of removing them. #614 by @xiehuanyi and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.13.0Compare Source
Bug fixes
MacOSsite directories underpython:-S, which leavesbase_prefixon theCellarkeg, and for thepython-freethreadingformula. #612 by @sricharanreddycheruku and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.12.4Compare Source
Bug fixes
place_config_fileor anotherplace_*_filemethod withuse_site_for_root. #610 by @darrenhuai and @gaborbernat.user_runtime_dirwarn and fall back from an unreachableXDG_RUNTIME_DIRunderensure_existsinstead of raising. #611 by @harbinresearcher and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.12.3Compare Source
Bug fixes
place_config_fileandplace_data_filein the first site directory for root on Unix withuse_site_for_root=Trueandmultipath=True, wherefind_config_fileandfind_data_filelook for them. #607 by @PDGGK and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.12.2Compare Source
Bug fixes
os.pathsepinsite_applications_pathundermultipath=Trueon platforms with one applications directory. #604 by @9Kun and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.12.1Compare Source
Bug fixes
PytestAssertRewriteWarningwhen importingplatformdirsbefore invoking pytest. #601 #602 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.12.0Compare Source
Features
place_*_filemethods that return a file path under a user directory and create its missing parents with mode0o700. #585 by @gaborbernat.find_<kind>_fileandfind_<kind>_filesto look up an existing file across the user and site directories of each kind that has aniter_<kind>_pathsmethod. #586 by @gaborbernat.isolated_dirsand theplatformdirs_isolatedpytest fixture to resolve every directory under one test root. #590 by @gaborbernat.RuntimeDirWarningwhen the Unixuser_runtime_dirfalls back fromXDG_RUNTIME_DIR. #599 by @gaborbernat.user_templates_dir,user_publicshare_diranduser_bin_diron Windows from their known folders. #587 by @gaborbernat.~/Library/Application Supportfor data. #600 by @gaborbernat.Bug fixes
RuntimeErrorfor a Unix or macOS directory under the home when no home resolves, and read the password database for an emptyHOME. #589 by @gaborbernat.Documentation
multipath. #591 by @gaborbernat.XDG_*_DIRvariables. #592 by @gaborbernat.WIN_PD_OVERRIDE_COMMON_PROGRAMSvariable. #593 by @gaborbernat./usr/local/share/applicationsas the Linuxsite_applications_dirdefault. #594 by @gaborbernat.user_runtime_dirdefaults and describe the temporary directory fallback. #595 by @gaborbernat.AppData. #597 by @gaborbernat.user_fonts_dir. #598 by @gaborbernat.Security
0700underensure_existson POSIX platforms. #588 by @gaborbernat.XDG_RUNTIME_DIRor/run/user/<uid>that is not a private directory of the user, and reject a symlink or file as theruntime-<uid>fallback. #599 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.15Compare Source
Bug fixes
sys.getandroidapilevelwhenANDROID_DATAandANDROID_ROOTare unset. #581 by @gaborbernat.Moviesand the five non-standard media folders, such asDesktop, intoDocuments. #583 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.14Compare Source
Features
roaminginuser_log_diranduser_log_path. #572 by @gaborbernat.Bug fixes
ensure_exists, create a media directory such asuser_documents_dironly when the user set it through anXDG_*_DIRvariable oruser-dirs.dirs, and return a dangling symlink there instead of raisingFileExistsError. 4.11.13 also created the platform defaults, which filled headless home directories with folders such as~/Templatesand made a literal~directory whenHOMEwas unset. #561 by @gaborbernat.$XDG_RUNTIME_DIRinuser_runtime_dirwhenuse_site_for_rootredirects root. #562 by @gaborbernat./storage/emulated/0/Downloadfrom the Androiduser_downloads_dirfallback. #563 by @gaborbernat.WIN_PD_OVERRIDE_*values that lack a drive or a root. #564 by @gaborbernat.files. #565 by @gaborbernat.use_site_for_rooton the next read. #567 by @gaborbernat.UnicodeDecodeErroronuser-dirs.dirsbytes the locale encoding cannot decode. #568 by @gaborbernat.# commentfrom unquoteduser-dirs.dirsvalues. #569 by @gaborbernat.PUBLICorLOCALAPPDATA, as unset. #571 by @gaborbernat.opt/python*/Frameworkslayout. #573 by @gaborbernat.site_cache_pathundermultipath. #574 by @gaborbernat.RuntimeErrorin place of creating a literal~directory whenensure_existsfinds no home. #578 by @gaborbernat.Documentation
user_preference_dirpath in the platform docs. #577 by @gaborbernat.user_state_dirandsite_state_dirignore theXDG_DATA_*variables. #579 by @gaborbernat.Security
appname,appauthororversionthat leaves the base directory when set after construction. #566 by @gaborbernat.runtime-<uid>temporary fallback with mode0700and reject one another user owns. #576 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.13Compare Source
Bug fixes
ensure_exists, the media directories such asuser_documents_dirare created on Unix, and on macOS when an XDG variable sets them. #560 by @gaborbernat and @ekanshul.🐍 PyPI release
📜 Full Changelog
v4.11.12Compare Source
Bug fixes
XDG_DOCUMENTS_DIR=Documentsno longer makesuser_documents_dirand the other media directories return a path relative to the working directory. They now fall back to the platform default like the XDG Base Directory variables, and like the same keys read fromuser-dirs.dirs. #554 by @darrenhuai.Documentation
New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.11Compare Source
Security
appname,appauthorandversionvalues that leave the platform base directory (a..segment, a leading separator, a drive or a UNC share) withValueError, soensure_existscannot create directories outside it. #552 by @Pitchfork-and-Torch and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.10Compare Source
Bug fixes
ensure_exists, thesite_*_dirandsite_*_pathproperties and theiter_*_dirsiterators only create the site directories they return or yield, instead of every entry in the site list. #550 by @darrenhuai and @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.9Compare Source
Features
multipathinsite_cache_dirandsite_cache_path. Without it, the function API could not return the Homebrew cache prefix thatsite_cache_diradds undermultipath. #544 by @darrenhuai and @gaborbernat.Bug fixes
user-dirs.dirsline by line likexdg-user-dir. The INI parser raised on a repeated key or a line without=, and returned trailing comments and backslash escapes insideuser_documents_dirand the other media directories. The last valid assignment now wins, and platformdirs unescapes the quoted value and ignores text after the closing quote. #545 by @darrenhuai and @gaborbernat.PUBLICbefore the home directory inuser_publicshare_diron Windows, so it no longer raisesRuntimeErrorwhenPUBLICis set and the home directory cannot be determined. #546 by @emme1t and @gaborbernat.RuntimeErrorfromAndroiddirectories when the app folder cannot be found, instead ofTypeError: expected str, bytes or os.PathLike object, not NoneType. #547 by @Str0k and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.8Compare Source
Bug fixes
user_data_path,user_config_path,user_preference_pathanduser_applications_pathreturn the first site entry when root is redirected byuse_site_for_rootundermultipath, matching theirsite_*_pathtwins. They passed the whole joined list toPath, giving one unusable path such as/xdg/a/foo:/xdg/b/foo. #538 by @darrenhuai and @gaborbernat.$XDG_DATA_DIRSand$XDG_CONFIG_DIRSare skipped. #540 by @lakshayxi and @gaborbernat.user-dirs.dirspaths, including100% complete,100%%and%(XDG_DESKTOP_DIR)s. Continue to expand$HOME. #542 by @jackwalkerlabs and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.7Compare Source
🐍 PyPI release
📜 Full Changelog
v4.11.6Compare Source
Features
user_bin_diranduser_bin_paththeuse_site_for_rootargument. They took none, so neither could reach the Unix redirect of root tosite_bin_dir. #537 by @darrenhuai and @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.5Compare Source
Features
user_preference_diranduser_preference_paththe same arguments asuser_config_dir. The functions were introduced in 4.10.0 without arguments, so they could only return the unscoped base directory even though the property they wrap appends the app name and version. #491 #531 by @gaborbernat and @dylanpulver.user_applications_dir,user_applications_path,site_applications_dirandsite_applications_paththe app arguments. Android scopes both applications directories to the app, so without them the functions could only return the unscoped base directory there. On the two site functions they are keyword-only, keepingmultipathfirst positional as it has been since 4.9.0; the two user functions take their boolean options keyword-only. #534 by @gaborbernat.Bug fixes
site_applications_pathreturn the first entry whenmultipath=True, matchingsite_data_path. On Unix and macOS it passed the whole$XDG_DATA_DIRSlist toPath, giving one unusable path such as/first/applications:/second/applications. #532 by @tunglambk and @gaborbernat.Documentation
use_site_for_rootdrops the user directory entirely, so the iterators are documented as yielding the most specific directory first rather than always yielding the user one. #533 by @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.4Compare Source
Bug fixes
iter_*_dirsmethods yielding the same directory twice when a site directory resolves to its user equivalent - covered only Unix withuse_site_for_root. It also hititer_runtime_dirson Unix with$XDG_RUNTIME_DIRset, on Windows and macOS, and all six iterators on Android. #520 #524 by @darrenhuai and @gaborbernat.Documentation
iter_config_pathsyields the user directory first, so theconfig.updateloop let the site defaults override the user's config instead of the other way round. #529 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.3Compare Source
Features
python -m platformdirsnow listsuser_desktop_dir, which was missing from the properties it prints. #523 by @darrenhuai and @gaborbernat.Bug fixes
site_data_dir,site_config_dirandsite_applications_dirraisingIndexErroron Unix and macOS when$XDG_DATA_DIRSor$XDG_CONFIG_DIRSholds only separators and whitespace, such as":". These values now fall back to the platform defaults, and each entry is stripped of surrounding whitespace. #523 by @darrenhuai and @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.11.2Compare Source
Bug fixes
iter_cache_dirs,iter_state_dirs,iter_log_dirsanditer_runtime_dirsyielding the same directory twice on Unix whenuse_site_for_rootis active - fixed this for the config and data iterators only. On macOS,iter_cache_dirsnow yields the Homebrew and/Library/Cachesentries separately rather than oneos.pathsep-joined string whenmultipathis set. #469 #520 by @viccie30 and @darrenhuai.🐍 PyPI release
📜 Full Changelog
v4.11.1Compare Source
Bug fixes
user_desktop_diron Windows builds withoutctypes.CSIDL_DESKTOPDIRECTORYappeared only in the ctypes lookup table, so the registry and environment variable resolvers raisedValueErrorfor it. #519 by @darrenhuai and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.11.0Compare Source
Features
🐍 PyPI release
📜 Full Changelog
v4.10.1Compare Source
Performance
get_win_folder_via_ctypesdefined a freshctypesstructure on every call, and each one registered a pointer type that was never released; the resolver is now built once and reused. #507 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.10.0Compare Source
Features
user_publicshare_dir,user_templates_dir,user_fonts_dir, anduser_preference_dir. #491 by @gaborbernat.user_projects_dirbacked by$XDG_PROJECTS_DIR. #490 by @gaborbernat.Bug fixes
site_config_pathon macOS whenmultipathis set. #488 by @lphuc2250gma.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.9.6Compare Source
Bug fixes
user_config_dir,user_data_dir, anduser_state_dirwhen only some are set. #473 by @Goddesen.iter_config_dirsanditer_data_dirswhenuse_site_for_rootis active. #469 by @viccie30.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.9.4Compare Source
Bug fixes
XDG_CONFIG_HOMEwhen reading the user-dirs configuration. #453 by @bysiber.user_log_diranduser_runtime_dirwhenensure_existsis set. #452 by @bysiber.🐍 PyPI release
📜 Full Changelog
v4.9.2Compare Source
🐍 PyPI release
📜 Full Changelog
v4.9.1Compare Source
🐍 PyPI release
📜 Full Changelog
v4.9.0Compare Source
Features
site_bin_dir. #443 by @gaborbernat.site_applications_dir. #442 by @gaborbernat.Bug fixes
🐍 PyPI release
📜 Full Changelog
v4.8.0Compare Source
Features
use_site_for_rootto redirectuser_*_dirtosite_*_dirfor root on Unix. #426 by @gaborbernat.site_state_dirfor system-wide state. #425 by @gaborbernat.site_log_dir. #424 by @gaborbernat.user_applications_dir. #432 by @gaborbernat.user_bin_dir. #430 by @gaborbernat.PLATFORMDIRS_*environment variable overrides for Windows folder resolution. #427 by @gaborbernat.WIN_PD_OVERRIDE_*environment variable overrides for Windows folder resolution. #428 by @gaborbernat.Bug fixes
iter_data_dirsanditer_config_dirson macOS. #429 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.7.1Compare Source
Bug fixes
FileNotFoundErroron Windows in sandboxed environments. #422 by @gaborbernat.🐍 PyPI release
📜 Full Changelog
v4.7.0Compare Source
Bug fixes
SHGetKnownFolderPath. #380 by @moi15moi and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.6.0Compare Source
Bug fixes
Documentation
site_cache_dirdocumentation. #402 by @brianhelba.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.5.1Compare Source
Bug fixes
🐍 PyPI release
📜 Full Changelog
v4.5.0Compare Source
Features
Documentation
New Contributors
🐍 PyPI release
📜 Full Changelog
v4.4.0Compare Source
Bug fixes
New Contributors
🐍 PyPI release
📜 Full Changelog
v4.3.8Compare Source
Documentation
New Contributors
🐍 PyPI release
📜 Full Changelog
v4.3.7Compare Source
Features
🐍 PyPI release
📜 Full Changelog
v4.3.6Compare Source
🐍 PyPI release
📜 Full Changelog
v4.3.5Compare Source
🐍 PyPI release
📜 Full Changelog
v4.3.4Compare Source
🐍 PyPI release
📜 Full Changelog
v4.3.3Compare Source
New Contributors
🐍 PyPI release
📜 Full Changelog
v4.3.2Compare Source
Bug fixes
_pathmethods on macOS. #299 by @matthewhughes934 and @gaborbernat.New Contributors
🐍 PyPI release
📜 Full Changelog
v4.3.1Compare Source
🐍 PyPI release
📜 Full Changelog
v4.3.0Compare Source
Features
PlatformDirsusable as a mypy superclass without breaking other type checkers. #295 by @Avasam and @gaborbernat.Configuration
📅 Schedule: (in timezone Europe/Helsinki)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.