Bug fixes
- Accept
use_site_for_rootinuser_fonts_dir,user_fonts_pathand the media directory and path functions, so they can return root's own directories as the matching properties do (#686) by @abhishekcpp007 and @gaborbernat. - Ignore a
WIN_PD_OVERRIDE_*value that names an extended or device drive without its root, such as\\?\D:or\\.\D:, instead of appending the app name to it as a drive-relative path (#702) by @h55n and @gaborbernat. - Keep a carriage return inside a
user-dirs.dirspath as part of the directory name, instead of ignoring the entry (#712) by @liuyinchu and @gaborbernat. - Keep trailing non-ASCII whitespace, such as a no-break space, in
WIN_PD_OVERRIDE_*values, since it can end a folder name (#700) by @subotac and @gaborbernat. - Make
find_*_fileandfind_*_filesskip a directory the user cannot search, and treat a name too long for the file system as not found, instead of raising on Python 3.13 and older (#703) by @darrenhuai and @gaborbernat. - Remove the backslash before an escaped character in an unquoted
user-dirs.dirspath, as the shell does, and keep an escaped blank before#in the path instead of reading the rest as a comment (#716) by @Primeteumm and @gaborbernat.
Performance
- Importing
platformdirsno longer importstyping: the names it needs only for type annotations are imported under a module-levelTYPE_CHECKINGguard, soimport platformdirsis faster (#714) by @hugovk and @gaborbernat.
Packaging
- Every wheel now carries a PEP 770 CycloneDX SBOM in its
.dist-info/sbomsdirectory, written at build time by python-sbom (#696) by @gaborbernat.
New Contributors
- @abhishekcpp007 made their first contribution in #686
- @subotac made their first contribution in #700
- @h55n made their first contribution in #702
- @Primeteumm made their first contribution in #716
- @liuyinchu made their first contribution in #712