unstale

pypi / poetry

poetry

What changed in poetry 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-21.

36 breaking6 security5 deprecations42 new APIs and options8 performance24 behavior and defaults2 tooling124 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

poetry 2196 changes

Breaking changes 25

  • When virtualenv creation is disabled, Poetry now errors if the current Python version is incompatible with the project.

    2.5.0release notes

  • Raises an error when a package name passed to the command is not a dependency, rather than silently ignoring it.

    2.4.0release notes

  • A version with the local version identifier 0 is no longer treated as equal to the corresponding public version.

    2.3.3release notes

  • Poetry raises an error if it cannot determine a hash for any distribution link of a package.

    2.3.0release notes

  • Poetry now requires dulwich.

    2.3.0release notes

  • The command validates the content of project.readme.

    2.3.0release notes

  • The command now fails when the requested Python version is unsupported by the project instead of using another version.

    2.3.0release notes

  • Python 3.9 is no longer supported.

    2.3.0release notes

  • Unsatisfiable requirements now raise an error.

    2.3.0release notes

  • Renames experimental.system-git-client.

    2.0.0release notes

  • Installed packages are ignored during dependency resolution.

    2.0.0release notes

  • The pip-based installation option, installer.modern-installation = false, was removed.

    2.0.0release notes

  • Reading lock files created with Poetry prior to 1.1 is no longer supported.

    2.0.0release notes

  • Dependency management in isolated build environments now uses Poetry instead of pip.

    2.0.0release notes

  • Now requires specifying an extra to which the optional dependency is added.

    2.0.0release notes

  • Adds a command as a replacement for poetry shell.

    2.0.0release notes

  • Is no longer included by default because the poetry-plugin-export dependency was removed.

    2.0.0release notes

  • Defaults to --no-update; --regenerate provides the old default behavior.

    2.0.0release notes

  • Was outsourced to poetry-plugin-shell.

    2.0.0release notes

  • A warning that the current project cannot be installed is now an error.

    2.0.0release notes

  • Support for Python 3.8 was dropped.

    2.0.0release notes

  • Support for scripts with extras was removed.

    2.0.0release notes

  • The option was removed, and setuptools is no longer included by default.

    2.0.0release notes

  • Replaces virtualenvs.prefer-active-python with the inverse setting; the active Python is preferred by default.

    2.0.0release notes

  • Support for x in version constraints was removed.

    2.0.0release notes

Security 6

  • Credentials from a repository on another host are no longer used for git dependencies merely because the URL paths match.

    2.5.0release notes

  • Credentials configured for an https repository are no longer sent via http.

    2.5.0release notes

  • Fixes cases where credentials from the wrong repository were used when multiple repositories shared a host.

    2.5.0release notes

  • Fixes a path traversal vulnerability when downloading files from a compromised URL or package source.

    2.4.2release notes

  • Poetry has Path Traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4

    2.3.4security advisoryrelease notesrelease notes

  • Poetry Has Wheel Path Traversal Which Can Lead to Arbitrary File Write

    2.3.3security advisoryrelease notes

Deprecations 4

  • This module is deprecated in favor of importlib.metadata.

    2.3.0release notes

  • Deprecated in favor of poetry sync.

    2.0.0release notes

  • Several fields are deprecated in favor of their respective fields in the project section of pyproject.toml.

    2.0.0release notes

  • Deprecated in favor of tool.poetry.group.dev.dependencies.

    2.0.0release notes

New APIs and options 26

  • Adds a setting to uninstall packages with a built-in uninstaller instead of invoking pip uninstall.

    2.5.0release notes

  • Requires package releases to be a specified number of days old before they are considered during dependency resolution.

    2.4.0release notes

  • Excludes selected packages from release-age filtering.

    2.4.0release notes

  • Excludes all packages from selected package indexes from release-age filtering.

    2.4.0release notes

  • Dependencies can now specify build constraints.

    2.3.0release notes

  • Publishing supports artifacts whose version is determined dynamically by the build-backend.

    2.3.0release notes

  • Editable project plugins are supported.

    2.3.0release notes

  • The cache name is optional, allowing the command to clear all caches.

    2.3.0release notes

  • The --skip-existing option is supported for new Nexus OSS versions.

    2.3.0release notes

  • Adds FIPS support for publishing.

    2.0.0release notes

  • Supports string comparisons using in and not in.

    2.0.0release notes

  • Adds a configuration option to enforce the use of binary distribution formats.

    2.0.0release notes

  • Adds an option, defaulting to true, that allows installation without re-resolving locked markers and groups.

    2.0.0release notes

  • Adds an option to add a dependency with markers.

    2.0.0release notes

  • Adds the --clean option.

    2.0.0release notes

  • Adds the --local-version option.

    2.0.0release notes

  • Adds an option to migrate outdated configurations.

    2.0.0release notes

  • Adds an option to install all groups.

    2.0.0release notes

  • Can be used interactively to configure more project fields.

    2.0.0release notes

  • Searches for pyproject.toml in another directory without switching directories.

    2.0.0release notes

  • Adds a command as a replacement for poetry install --sync.

    2.0.0release notes

  • Supports the PEP 621 project section in pyproject.toml.

    2.0.0release notes

  • Projects can define required Poetry plugins, which are automatically installed if not present.

    2.0.0release notes

  • Projects can define a constraint for the Poetry version required to manage them.

    2.0.0release notes

  • Supports script files generated by a build script.

    2.0.0release notes

  • Package builds now support SOURCE_DATE_EPOCH.

    2.0.0release notes

Performance 8

  • Dependency resolution is faster.

    2.5.0release notes

  • Schema validation is faster by caching compiled JSON schema validators.

    2.5.0release notes

  • Avoids redundant keyring lookups for repositories without credentials.

    2.5.0release notes

  • Processing package links and repository pages is faster.

    2.5.0release notes

  • Search is faster for single-token queries.

    2.5.0release notes

  • Startup is faster because the requests import is deferred.

    2.5.0release notes

  • Reduces the number of subprocesses used to discover virtual environment data.

    2.5.0release notes

  • Choosing and installing wheels is faster.

    2.5.0release notes

Behavior and default changes 16

  • Messages about already present packages now include the path of the pyproject.toml file.

    2.5.0release notes

  • The default changes from true to false.

    2.3.0release notes

  • Poetry prefers the JSON API to the HTML API.

    2.3.0release notes

  • Poetry automatically updates the cache when a package's locked files differ from cached files.

    2.3.0release notes

  • PEP 735 dependency groups are included in the lock file hash.

    2.3.0release notes

  • The output now shows the path to Poetry's own Python.

    2.3.0release notes

  • When poetry new is run for an existing directory, Poetry proposes poetry init.

    2.3.0release notes

  • Poetry checks requires-poetry before performing any other validation.

    2.3.0release notes

  • New projects limit build-system to the current major version of poetry-core.

    2.0.0release notes

  • Adds partial support for conflicting extras.

    2.0.0release notes

  • Downloads can resume after connection resets.

    2.0.0release notes

  • Supports shortened hashes when defining git dependencies.

    2.0.0release notes

  • Generated METADATA files use version 2.3 instead of 2.2.

    2.0.0release notes

  • Supports non-PEP 440-compliant versions.

    2.0.0release notes

  • Supports searching in legacy sources.

    2.0.0release notes

  • New projects use >= instead of ^ for the Python requirement.

    2.0.0release notes

Tooling 2

  • Python 3.15 is added to the automatically generated classifiers.

    2.5.0release notes

  • Dependencies are determined with PEP 517 builds instead of parsing setup.py.

    2.0.0release notes

Fixes and other changes 109

  • Fixes a TypeError that occurred when uninstalling a package with this setting enabled.

    2.5.1release notes

  • The upper bound is corrected for ~= constraints on versions with more than three release segments.

    2.5.0release notes

  • Fixes resolution failures for conflicting requirements with mutually exclusive markers.

    2.5.0release notes

  • Fixes resolution failures when the same package is required with different extras in multiple optional dependencies or groups.

    2.5.0release notes

  • Fixes a dependency resolution failure that raised a KeyError.

    2.5.0release notes

  • Path and git dependencies are reinstalled when their develop setting changes.

    2.5.0release notes

  • Path dependencies no longer write a relative path to direct_url.json.

    2.5.0release notes

  • Scripts of type file are now installed when installing the project.

    2.5.0release notes

  • GUI scripts are now installed when installing the project.

    2.5.0release notes

  • Links created from Windows paths now have the correct filename, and filenames containing path separators are rejected.

    2.5.0release notes

  • Dependencies of an extra are no longer omitted from the lock file when the extra is added to a locked dependency in pyproject.toml.

    2.5.0release notes

  • Marker values containing spaces can now be parsed.

    2.5.0release notes

  • Merging platform_release markers with incompatible constraint types no longer fails.

    2.5.0release notes

  • Uses the environment determined by the application, including when using --directory.

    2.5.0release notes

  • Version constraints entered interactively are now validated.

    2.5.0release notes

  • No longer proposes an invalid package name when the directory name is not a valid package name.

    2.5.0release notes

  • poetry show <package> now displays a version relevant to the current environment when multiple versions are in the lock file.

    2.5.0release notes

  • The --outdated option now finds newer package versions from sources with explicit priority.

    2.5.0release notes

  • Adds official support for Python 3.15.

    2.5.0release notes

  • Formatting a Python constraint that only allows unknown Python versions no longer raises an IndexError.

    2.5.0release notes

  • Fixes cases where a <V constraint wrongly allowed pre-releases of V.

    2.5.0release notes

  • A != <value> constraint is no longer incorrectly considered to allow all values of a <value> not in constraint.

    2.5.0release notes

  • Subtracting a local version from a public version no longer allows that local version, avoiding a possible infinite loop during dependency resolution.

    2.5.0release notes

  • Ranges with coincident bounds are now recognized as empty.

    2.5.0release notes

  • Intersections between a version range and a local version now produce the correct constraint.

    2.5.0release notes

  • Ranges excluding some local versions of a public version are no longer incorrectly considered to allow all versions of that public version.

    2.5.0release notes

  • Stringifying a version range whose upper bound consists only of zeros no longer raises an IndexError.

    2.5.0release notes

  • The string representation of a version union now describes the same constraint when parsed again.

    2.5.0release notes

  • A union of a version range and a public version now includes all local versions of that public version.

    2.5.0release notes

  • The union of a public version and one of its local versions now results in the public version.

    2.5.0release notes

  • Fixed an issue preventing Poetry from extracting sdists on Python 3.10.0–3.10.12 and 3.11.0–3.11.4.

    2.4.3release notes

  • Fixes installation of artifacts not listed in the lockfile when the package source does not provide an artifact hash.

    2.4.2release notes

  • Fixes failures when updating a package that is a transitive dependency.

    2.4.1release notes

  • Fixes a false warning about a circular dependency.

    2.4.0release notes

  • Fixes garbled --config-settings in build backend failure messages.

    2.4.0release notes

  • Fixes falsy configuration values being incorrectly treated as unset.

    2.4.0release notes

  • Allows http-basic to be set for repository names containing periods.

    2.4.0release notes

  • Fixes corruption of fetched data when part of it has already been cached.

    2.4.0release notes

  • Automatically adds a trailing slash to legacy repository URLs used for publishing when one is missing.

    2.4.0release notes

  • Makes the order of markers in the lock file deterministic.

    2.4.0release notes

  • Prevents an exception on Python 3.15+ when installed packages do not have a METADATA file.

    2.4.0release notes

  • Prevents further packages from being installed when installation should be aborted.

    2.4.0release notes

  • Fixes resolution failures when a package has a marker.

    2.4.0release notes

  • Fixes activation for bash on Windows.

    2.4.0release notes

  • Retries after package registration instead of aborting.

    2.4.0release notes

  • Stops ignoring failed builds and uploading stale artifacts.

    2.4.0release notes

  • Suggests the correct command when a self command fails because of an outdated lock file.

    2.4.0release notes

  • Fixes failures on Windows when scheme paths are on different drives.

    2.4.0release notes

  • Fixes memory errors when calculating the hash of large wheels.

    2.4.0release notes

  • Fixes a performance regression in the wheel installer introduced in Poetry 2.3.3.

    2.3.4release notes

  • A post release with a local version identifier is no longer wrongly allowed by a > version constraint.

    2.3.3release notes

  • A != <version> constraint no longer wrongly disallows pre releases and post releases of the specified version.

    2.3.3release notes

  • An empty CONDA_PREFIX no longer causes Poetry to incorrectly detect an active virtualenv.

    2.3.3release notes

  • Dependency groups are no longer considered equal just because their resolved dependencies are equal.

    2.3.3release notes

  • Removing a dependency from a group that includes another group no longer adds other dependencies to the included group.

    2.3.3release notes

  • Git dependencies from annotated tags can now be updated.

    2.3.3release notes

  • Credentials are no longer corrupted during request preparation, preventing authentication failures with long tokens.

    2.3.3release notes

  • in and not in constraints are now allowed by specific compound constraints.

    2.3.3release notes

  • PEP 735 include-group entries are no longer lost when the same group also defines include-groups under [tool.poetry.group].

    2.3.3release notes

  • Unions of <value> not in <marker> constraints are no longer wrongly treated as always satisfied.

    2.3.3release notes

  • platform_release can now be parsed on Debian Trixie.

    2.3.3release notes

  • Using --no-interaction with --build no longer prompts for user interaction.

    2.3.3release notes

  • poetry init and poetry new no longer create the deprecated project.license format.

    2.3.3release notes

  • Using project.readme.text in pyproject.toml no longer results in broken metadata.

    2.3.3release notes

  • When .venv is a file rather than a directory, Poetry no longer prints an incomprehensible error message.

    2.3.3release notes

  • An empty VIRTUAL_ENV no longer causes Poetry to incorrectly detect an active virtualenv.

    2.3.3release notes

  • Fixed parsing of platform_release on Windows Server.

    2.3.2release notes

  • Cached information about each package is no longer always considered outdated.

    2.3.1release notes

  • The data-dir setting can now be set.

    2.3.0release notes

  • Dependencies required by several groups with different markers no longer get incorrect locked markers.

    2.3.0release notes

  • The correct wheels are chosen for installation when Poetry itself was not installed with free-threaded Python.

    2.3.0release notes

  • The implicit main group exists when explicitly declared without dependencies.

    2.3.0release notes

  • Poetry suggests clearing the cache when running a command with --no-cache solves an issue.

    2.3.0release notes

  • Adding dependencies works for PEP 735 dependency groups with include-group items.

    2.3.0release notes

  • The command returns the correct activation command for dash.

    2.3.0release notes

  • The generated pyproject.toml includes the readme field only if the readme file exists.

    2.3.0release notes

  • A method used by the plugin no longer creates non-deterministic markers.

    2.3.0release notes

  • Publishing uses the metadata of the build artifact rather than the project metadata.

    2.3.0release notes

  • Managing free-threaded Python versions is improved.

    2.3.0release notes

  • Removing dependencies works for PEP 735 dependency groups with include-group items.

    2.3.0release notes

  • Removing dependencies no longer leaves dangling include-group references in PEP 735 dependency groups.

    2.3.0release notes

  • Python and pip executables are correctly detected on Windows.

    2.3.0release notes

  • Markers using pre-release versions are parsed correctly.

    2.3.0release notes

  • The python.installation-dir setting can now be set.

    2.3.0release notes

  • poetry-core normalizes versions.

    2.3.0release notes

  • Invalid template variables now produce a comprehensible error message.

    2.3.0release notes

  • Setting allow-prereleases to false no longer permits prereleases when no other solution is found.

    2.0.0release notes

  • The author-name regular expression is no longer too restrictive.

    2.0.0release notes

  • Fixes parsing of HTTP(S) basic-auth credentials.

    2.0.0release notes

  • Fixes writing VCS URLs that do not comply with PEP 610.

    2.0.0release notes

  • Fixes installation of an extra package required by multiple extras.

    2.0.0release notes

  • Fixes sporadic installation failures for multiple dependencies from forked monorepos.

    2.0.0release notes

  • Fixes cloning git dependencies with extras when no branch was explicitly specified.

    2.0.0release notes

  • Fixes sporadic installation failures for multiple dependencies from the same git repository.

    2.0.0release notes

  • Git dependencies from tags now produce consistent hashes across dulwich versions.

    2.0.0release notes

  • Git URL paths now allow + characters.

    2.0.0release notes

  • The setting is no longer ignored for the implicit PyPI source.

    2.0.0release notes

  • Fixes use of the platlib directory belonging to the wrong Python.

    2.0.0release notes

  • Fixes broken pyproject.toml output when uncommon group names are used.

    2.0.0release notes

  • Fixes invalid constraints generated when adding a package with a local version specifier.

    2.0.0release notes

  • Fixes resolution of relative paths when building from another directory.

    2.0.0release notes

  • Using --directory or -C now actually switches the directory.

    2.0.0release notes

  • Fixes failure when virtualenvs.in-project is true.

    2.0.0release notes

  • Fixes failure to uninstall unrequested extras when installing without an existing lock file.

    2.0.0release notes

  • No longer tries to uninstall system site packages when the virtual environment uses system site packages.

    2.0.0release notes

  • Improves the output of poetry show <package>.

    2.0.0release notes

  • Local settings are no longer ignored for the implicit PyPI source.

    2.0.0release notes

  • Credentials are now passed when downloading a URL dependency.

    2.0.0release notes

  • Fixes errors when building a wheel in a nested output directory.

    2.0.0release notes

poetry 151 changes

Breaking changes 11

  • The --git option was removed; git dependencies can be specified directly in add.

    1.0.0release notes

  • The --path option was removed; path dependencies can be specified directly in add.

    1.0.0release notes

  • Use allow-prereleases instead of the deprecated allows-prereleases dependency setting.

    1.0.0release notes

  • The cache:clear command was renamed to cache clear.

    1.0.0release notes

  • The debug:info command was renamed to debug info.

    1.0.0release notes

  • The debug:resolve command was renamed to debug resolve.

    1.0.0release notes

  • The --develop option was removed from install.

    1.0.0release notes

  • The lock file format changed and may be incompatible with previous Poetry versions.

    1.0.0release notes

  • Configuration in pyproject.toml is now properly validated.

    1.0.0release notes

  • The self:update command was renamed to self update.

    1.0.0release notes

  • Virtualenv storage changed; names now depend on the project's path.

    1.0.0release notes

Deprecations 1

  • Using allows-prereleases in pyproject.toml is deprecated; use allow-prereleases instead.

    1.0.0release notes

New APIs and options 16

  • Poetry can now detect and use Conda environments.

    1.0.0release notes

  • Metadata now supports custom URLs.

    1.0.0release notes

  • Dependencies can now declare a specific source.

    1.0.0release notes

  • Adds a command to get basic information about the current environment.

    1.0.0release notes

  • Adds a command to list virtual environments associated with the current project.

    1.0.0release notes

  • Adds a command to delete virtual environments associated with the current project.

    1.0.0release notes

  • Adds a command to control the Python version used by the project.

    1.0.0release notes

  • Adds a command to export the lock file to other formats; requirements.txt is currently supported.

    1.0.0release notes

  • Dependencies now support full environment markers through the markers property.

    1.0.0release notes

  • Packages can now be specified on a per-format basis.

    1.0.0release notes

  • The get-poetry.py installer now supports a POETRY_HOME declaration.

    1.0.0release notes

  • Private repositories can now be declared as secondary repositories.

    1.0.0release notes

  • Custom certificate authorities and client certificates are now supported for private repositories.

    1.0.0release notes

  • PyPI can be disabled and another repository made the default.

    1.0.0release notes

  • Publishing to PyPI using API tokens is now supported.

    1.0.0release notes

  • URL dependencies are now supported.

    1.0.0release notes

Behavior and default changes 8

  • Git dependencies can be specified directly without the --git option.

    1.0.0release notes

  • Path dependencies can be specified directly without the --path option.

    1.0.0release notes

  • When only prereleases are available, add now automatically selects the latest prerelease.

    1.0.0release notes

  • The command can now update a dependency when an explicit constraint is given.

    1.0.0release notes

  • Licenses can now be identified by their full name.

    1.0.0release notes

  • The command now uses os.execvp() rather than spawning a new subprocess.

    1.0.0release notes

  • The shell command was improved.

    1.0.0release notes

  • When Poetry needs the system Python, it now calls sys.executable instead of the python command.

    1.0.0release notes

Fixes and other changes 15

  • Fixed the behavior of the ~= dependency constraint operator.

    1.0.0release notes

  • Fixed dependency resolution for conditional development dependencies.

    1.0.0release notes

  • Dependencies from custom indices are no longer constantly updated.

    1.0.0release notes

  • Fixed the behavior of the debug resolve --install option.

    1.0.0release notes

  • Fixed an error in env use when virtualenvs.in-project is activated.

    1.0.0release notes

  • Fixed handling of empty and any markers in unions of markers.

    1.0.0release notes

  • Files excluded via exclude are no longer included in distributions.

    1.0.0release notes

  • Fixed issues with handling extra markers in dependencies.

    1.0.0release notes

  • Git dependencies specified by branch or tag are now locked to a specific revision.

    1.0.0release notes

  • Fixed cases where invalid lock files were generated.

    1.0.0release notes

  • Fixed issues where path dependencies were treated as git dependencies.

    1.0.0release notes

  • Fixed handling of PEP 508 URL dependencies.

    1.0.0release notes

  • Installing Poetry-based packages no longer breaks with pip.

    1.0.0release notes

  • The run command now properly handles the -- separator.

    1.0.0release notes

  • Updating a specific dependency no longer removes its transitive extra dependencies.

    1.0.0release notes