Bug fixes
- Fix environments created with Python 3.11 failing to start, and pipx commands failing with
UnicodeDecodeError, when pipx runs in UTF-8 mode andPIPX_HOMEcontains non-ASCII characters. pipx writespipx_shared.pthin the encoding the environment's Python reads it with, and rewrites an existing one the next time it installs into that environment (#2462) by @8hjkkwikl8 and @gaborbernat. (#2460) - Finish updating or rolling back manifest lock files before handling an interrupt, preserving a consistent set of locks (#2448) by @anticipate218 and @gaborbernat.
- Report malformed URLs in package specs and
--pip-argsas input errors instead of tracebacks, keeping URL credentials out of the error message (#2439) by @subotac and @gaborbernat. - Treat extras that differ only in case or in
-/_as the same extra when deciding whether an installed package already satisfies a spec, and when adding extras to a spec (#2463) by @hemtilva. --fetch-pythonnow resumes a standalone Python download when the connection drops before itsContent-Length. Before, pipx stopped at the partial archive and failed with a checksum mismatch instead of resuming (#2453) by @HarshJamgaonkar05 and @gaborbernat.pipx executeaccepts an app by the suffixed name it has onPATHwhen its environment was installed with--suffixor its package was injected with--with-suffix, including names that pipx 1.17.14 and earlier exposed with the suffix before the last dot, such aspip3@1.12(#2468) by @kowellaloo9698-afk.pipx reinstallnames pinned packages by environment name rather than path in its error message (#2466) by @kowellaloo9698-afk.pipx uninjectalso removes the dependencies of the dependencies it removes, including ones that require each other, so uninjecting a package that needsscipyno longer leavesnumpybehind (#2442) by @Kernel-Hunter and @gaborbernat.- pipx no longer installs a python-build-standalone prerelease (such as
3.16.0a1) under the version number of the final release; fetching a Python that only has prerelease builds fails instead (#2446) by @AP24110011695 and @gaborbernat.
Documentation
- Document that
pipx environment --valueprints an empty line for an unset variable that pipx does not derive, and how to read the effective global paths with--global(#2450) by @xixi-box and @gaborbernat.
Packaging
- Every wheel now carries a PEP 770 CycloneDX SBOM in its
.dist-info/sbomsdirectory, written at build time by python-sbom (#2441) by @gaborbernat.
New Contributors
- @Kernel-Hunter made their first contribution in #2442
- @hemtilva made their first contribution in #2463
- @subotac made their first contribution in #2439
- @HarshJamgaonkar05 made their first contribution in #2453
- @xixi-box made their first contribution in #2450
- @anticipate218 made their first contribution in #2448
- @8hjkkwikl8 made their first contribution in #2462