Announcing Poetry 2.4.0

Published on May 3, 2026 in Releases with tags 2.x 2.4

The Poetry team is pleased to announce the immediate availability of Poetry 2.4.0.

If you have a previous version of Poetry installed via pipx, getting Poetry 2.4.0 is as easy as:

$ pipx upgrade poetry

If you used the official installer, you can run:

$ poetry self update

Highlights #

Adding support for dependency cooldowns #

Poetry 2.4.0 introduces a new solver.min-release-age setting that lets you require package releases to be a certain number of days old before they are considered during dependency resolution.

This can help protect against supply chain attacks where a compromised release is published and detected only hours or days later. For example, if you set solver.min-release-age to 7, Poetry will only consider versions for which all known distribution files are at least seven days old.

poetry config solver.min-release-age 7

If you need newer releases for selected packages or sources, you can opt out of the filter with solver.min-release-age-exclude and solver.min-release-age-exclude-source:

poetry config solver.min-release-age-exclude "my-package,other-package"
poetry config solver.min-release-age-exclude-source "internal-pypi,https://packages.example.com/simple/"
Note
This filter can only be enforced for package sources that expose file upload timestamps. If a source does not provide upload times for a release, that release is not filtered out by this setting.

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.

Changelog #

Added #

Changed #

Fixed #

Docs #

poetry-core (2.4.0) #