Announcing Poetry 2.5.0
The Poetry team is pleased to announce the immediate availability of Poetry 2.5.0.
If you have a previous version of Poetry installed via pipx,
getting Poetry 2.5.0 is as easy as:
$ pipx upgrade poetry
If you used the official installer, you can run:
$ poetry self update
Highlights #
Faster uninstalls and updates with a built-in uninstaller #
Until now, Poetry has spawned a pip uninstall subprocess for each package that had to be removed.
This does not only affect explicit removals: updating a package means uninstalling the old version
before installing the new one. The overhead of starting pip again and again adds up,
especially when many packages are updated at once.
Poetry 2.5.0 introduces a built-in uninstaller so that Poetry no longer has to run a pip subprocess for each uninstall. This makes uninstalls – and thereby updates – faster.
The built-in uninstaller is not used by default yet. You can opt in
via the new installer.builtin-uninstall setting:
poetry config installer.builtin-uninstall true
installer.modern-installation.
Please try it out and report any issues you encounter.Upcoming Changes #
Defaulting to setuptools instead of poetry-core if no build system is defined #
Per PEP 517, a build tool should fall back to setuptools if no build system is
defined in the [build-system] section of pyproject.toml. However, to avoid immediate disruption, Poetry will
currently issue a warning in such cases and continue using the built-in poetry-core backend by default.
This behavior will change in a future minor release so that Poetry will default to setuptools
if no [build-system] section is defined.