Announcing Poetry 2.0.1
Published on January 11, 2025
in
Releases
The Poetry team is pleased to announce the immediate availability of Poetry 2.0.1.
If you have a previous version of Poetry installed via pipx,
getting Poetry 2.0.1 is as easy as:
$ pipx upgrade poetry
If you used the official installer and are using Poetry < 2.0.0, you can run:
$ poetry self update
In case you are using Poetry 2.0.0, it is necessary to rerun the installer to get the latest version,
because the poetry self update command is broken in 2.0.0.:
Linux, macOS, Windows (WSL)
$ curl -sSL https://install.python-poetry.org | python3 -
Windows (Powershell)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Changelog #
Added #
- Add support for
poetry searchin legacy sources (#9949). - Add a message in the
poetry source showoutput when PyPI is implicitly enabled (#9974).
Changed #
- Improve performance for merging markers from overrides at the end of dependency resolution (#10018).
Fixed #
- Fix an issue where
poetry syncdid not remove packages that were not requested (#9946). - Fix an issue where
poetry checkfailed even though there were just warnings and add a--strictoption to fail on warnings (#9983). - Fix an issue where
poetry update,poetry addandpoetry removewith--onlyuninstalled packages from other groups (#10014). - Fix an issue where
poetry update,poetry addandpoetry removeuninstalled all extra packages (#10016). - Fix an issue where
poetry self updatedid not recognize Poetry’s own environment (#9995). - Fix an issue where read-only system site-packages were not considered when loading an environment with system site-packages (#9942).
- Fix an issue where an error message in
poetry installstarted withWarning:instead ofError:(#9945). - Fix an issue where
Command.set_poetry, which is used by plugins, was removed (#9981). - Fix an issue where the help text of
poetry build --cleanshowed a malformed short option instead of the description (#9994).
Docs #
- Add a FAQ entry for the migration from Poetry-specific fields to the
projectsection (#9996). - Fix examples for
project.readmeandproject.urls(#9948). - Add a warning that package sources are a Poetry-specific feature that is not included in core metadata (#9935).
- Replace
poetry install --syncwithpoetry syncin the section about synchronizing dependencies (#9944). - Replace
poetry shellwithpoetry env activatein the basic usage section (#9963). - Mention that
project.nameis always required when theprojectsection is used (#9989). - Fix the constraint of
poetry-plugin-exportin the section aboutpoetry export(#9954).
poetry-core (2.0.1) #
- Replace the deprecated core metadata field
Home-pagewithProject-URL: Homepage(#807). - Fix an issue where includes from
tool.poetry.packageswithout a specifiedformatwere not initialized with the default value resulting in aKeyError(#805). - Fix an issue where some
project.urlsentries were not processed correctly resulting in aKeyError(#807). - Fix an issue where dynamic
project.dependenciesviatool.poetry.dependencieswere ignored ifproject.optional-dependencieswere defined (#811).