Change8

2.0.1

📦 poetryView on GitHub →
4 features🐛 9 fixes1 deprecations🔧 12 symbols

Summary

This release introduces support for searching legacy sources and improves dependency resolution performance. It also fixes several critical bugs related to package synchronization, environment detection, and plugin API compatibility.

Migration Steps

  1. Use poetry sync instead of poetry install --sync for synchronizing dependencies.
  2. Use poetry env activate instead of poetry shell for environment activation.
  3. Ensure project.name is included when using the [project] section in pyproject.toml.

✨ New Features

  • Add support for poetry search in legacy sources.
  • Add a message in the poetry source show output when PyPI is implicitly enabled.
  • Add a --strict option to poetry check to fail on warnings.
  • Improve performance for merging markers from overrides at the end of dependency resolution.

🐛 Bug Fixes

  • Fix an issue where poetry sync did not remove packages that were not requested.
  • Fix an issue where poetry check failed even though there were just warnings.
  • Fix an issue where poetry update, add and remove with --only uninstalled packages from other groups.
  • Fix an issue where poetry update, add and remove uninstalled all extra packages.
  • Fix an issue where poetry self update did not recognize Poetry's own environment.
  • Fix an issue where read-only system site-packages were not considered when loading an environment.
  • Fix an issue where Command.set_poetry, which is used by plugins, was removed.
  • Fix an issue where includes from tool.poetry.packages without a specified format resulted in a KeyError.
  • Fix an issue where dynamic project.dependencies were ignored if project.optional-dependencies were defined.

🔧 Affected Symbols

Command.set_poetrypoetry searchpoetry source showpoetry syncpoetry checkpoetry self updatepoetry build --cleantool.poetry.packagesproject.dependenciesproject.optional-dependenciesproject.urlsproject.readme

⚡ Deprecations

  • Replaced the deprecated core metadata field Home-page with Project-URL: Homepage in poetry-core.