1.18.0
Added 3
- Run `pipx upgrade-shared` to refresh shared pip sooner
- Set `PYTHON_LAZY_IMPORTS=normal` to opt out of lazy imports; the entry point is `pipx.__main__`
- Run `reinstall-all`, `upgrade-all` and `install-all` across venvs at once
Changed 6
- Put `--suffix` last, except before a Windows file extension; apps exposed by 1.17.14 keep their old name until pipx next exposes them, which renames them behavior changed · inferred, marked in the notes below
- `upgrade` and `reinstall-all` refresh shared pip only after 30 days behavior changed · inferred, marked in the notes below
- Defer every import, dependencies included, on Python 3.15 for faster startup
- Let running upgrades finish on Ctrl-C in `upgrade-all`; a second Ctrl-C stops them, and the next `upgrade` repairs what was left half-upgraded behavior changed · inferred, marked in the notes below
- Retry uv-backend installs on a Python matching requires-python, as pip does
- Translate recorded index options when `install-all --backend` switches between pip and uv behavior changed · inferred, marked in the notes below
Fixed 15
- Warn that `--system-site-packages` is ignored by `inject` and `upgrade-all`
- Fall back to pip with a warning when the auto-detected uv is older than 0.9.17
- Use the default Python for scripts when it satisfies `requires-python`
- Make `interpreter upgrade` move venvs off a patch-pinned standalone Python
- Keep pins of injected packages through `reinstall`, `install-all` and `--force`
- Restore recorded venv and pip args in `install-all` and reject bad spec files
- Remove apps, man pages and completions an upgraded package no longer ships
- Keep the interpreter on `install --force --python`
- Make `pipx expose` relink resources missing after a collision or a deletion
- Print only the envelope on `--output json` stdout and fix `health` JSON status behavior changed · inferred, marked in the notes below
- Keep users of a global pipx on their own paths and explain unwritable homes
- Keep `PIPX_MAX_LOGS` logs, not one extra, and rotate uv error logs too
- Keep the last output of a child process streamed to a terminal on macOS
- Report apps whose Python is missing in `upgrade-all` instead of crashing
- Show child output that is not valid UTF-8 instead of crashing
Security 1
- Mask passwords in index and package URLs in pipx's output and log files
6 changes to check, marked in the notes below
From pipx
Features
- Put
--suffixlast, except before a Windows file extension. Apps exposed by 1.17.14 keep their old name until pipx next exposes them, which renames them. (#2098) by @gaborbernat behavior changed · inferred upgradeandreinstall-allrefresh shared pip only after 30 days. (#2116) by @gaborbernat behavior changed · inferred- Run
pipx upgrade-sharedto refresh shared pip sooner. (#2116) by @gaborbernat - Set
PYTHON_LAZY_IMPORTS=normalto opt out; the entry point ispipx.__main__. (#2132) by @gaborbernat - Defer every import, dependencies included, on Python 3.15 for faster startup. (#2132) by @gaborbernat
- Run
reinstall-all,upgrade-allandinstall-allacross venvs at once. (#2137) by @gaborbernat - Let running upgrades finish on Ctrl-C in
upgrade-all; a second Ctrl-C stops them, and the nextupgraderepairs what was left half-upgraded. (#2144) by @gaborbernat behavior changed · inferred - Retry uv-backend installs on a Python matching requires-python, as pip does. (#2144) by @gaborbernat
- Translate recorded index options when
install-all --backendswitches between pip and uv. (#2144) by @gaborbernat
Bug fixes
- Warn that
--system-site-packagesis ignored byinjectandupgrade-all. (#2089) by @gaborbernat - Fall back to pip with a warning when the auto-detected uv is older than 0.9.17. (#2092) by @gaborbernat
- Use the default Python for scripts when it satisfies
requires-python. (#2093) by @gaborbernat - Make
interpreter upgrademove venvs off a patch-pinned standalone Python. (#2094) by @gaborbernat - Keep pins of injected packages through
reinstall,install-alland--force. (#2095) by @gaborbernat - Restore recorded venv and pip args in
install-alland reject bad spec files. (#2096) by @gaborbernat behavior changed · inferred - Remove apps, man pages and completions an upgraded package no longer ships. (#2097) by @gaborbernat
- Keep the interpreter on
install --force --python. (#2098) by @gaborbernat - Make
pipx exposerelink resources missing after a collision or a deletion. (#2099) by @gaborbernat - Print only the envelope on
--output jsonstdout and fixhealthJSON status. (#2101) by @gaborbernat behavior changed · inferred - Keep users of a global pipx on their own paths and explain unwritable homes. (#2102) by @gaborbernat
- Keep
PIPX_MAX_LOGSlogs, not one extra, and rotate uv error logs too. (#2103) by @gaborbernat - Keep the last output of a child process streamed to a terminal on macOS. (#2111) by @gaborbernat
- Report apps whose Python is missing in
upgrade-allinstead of crashing. (#2141) by @gaborbernat - Show child output that is not valid UTF-8 instead of crashing. (#2144) by @gaborbernat
- Mask passwords in index and package URLs in pipx's output and log files. (#2144) by @gaborbernat
Performance
- Read a local project's name from
pyproject.tomlinstead of building it twice. (#2108) by @gaborbernat - Start every pipx command 50 to 130 ms faster by importing only what it uses. (#2113) by @gaborbernat
- Create the shared libraries 35 to 50% faster by skipping a redundant pip run. (#2114) by @gaborbernat
- Start half as many helper processes per install by reusing what pipx knows. (#2118) by @gaborbernat
- Skip a WMI query on Windows at startup by detecting the OS with
sys.platform. (#2125) by @gaborbernat - Uninject orphaned dependencies in one pip call, reported on one line. (#2126) by @gaborbernat
- Check only pipx-managed packages for updates, not every installed dependency. (#2127) by @gaborbernat
- Start pipx commands up to 30 ms faster by loading more modules on first use. (#2128) by @gaborbernat
- Start pipx 10 to 50 ms faster on Python 3.15 through lazy imports. (#2129) by @gaborbernat
- Check shared pip by its files instead of starting Python on every command. (#2131) by @gaborbernat
- Read a local wheel's package name from its metadata instead of a probe venv. (#2134) by @gaborbernat
- Scan exposed app and man page dirs once per
listanduninstall-all. (#2138) by @gaborbernat - Require filelock 4.2, whose lighter import speeds up most pipx commands. (#2142) by @gaborbernat requirement raised · inferred
Documentation
- Correct the log directory in the platformdirs migration table. (#2086)
- Correct docs that described pip-only behavior or outdated defaults and paths. (#2088) by @gaborbernat
- Match help text, troubleshooting and samples to how pipx behaves today. (#2105) by @gaborbernat
New Contributors
- @travisfortney made their first contribution in #2087