{"id":28049,"library":"poetry-plugin-freeze","title":"poetry-plugin-freeze","description":"A Poetry plugin that freezes a wheel's dependency versions based on the current lock file, ensuring reproducible builds. Version 1.2.0 supports both Poetry v1 and v2, and requires Python ≥3.9.","status":"active","version":"1.2.0","language":"python","source_language":"en","source_url":"https://github.com/cloud-custodian/poetry-plugin-freeze","tags":["poetry","plugin","freeze","dependencies","wheel","lockfile"],"install":[{"cmd":"pip install poetry-plugin-freeze==1.2.0","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[],"quickstart":{"code":"poetry self add poetry-plugin-freeze\npoetry build\n# To freeze dependencies for a specific wheel:\npoetry freezer freeze --file dist/*.whl --lock poetry.lock --output frozen_wheel.whl","lang":"bash","description":"After installing the plugin, use `poetry freezer freeze` to embed pinned dependency versions from the lock file into a wheel."},"warnings":[{"fix":"Upgrade to poetry-plugin-freeze==1.2.0 or later.","message":"Poetry v2 support requires plugin version >=1.2.0. Older versions (<=1.1.0) are incompatible with Poetry v2.","severity":"breaking","affected_versions":"<=1.1.0"},{"fix":"Ensure your dev dependencies are not needed for runtime wheel execution, or use a different approach to freeze them.","message":"The plugin does NOT freeze dev dependencies. Only main dependencies from the lock file are included.","severity":"gotcha","affected_versions":"all"},{"fix":"Run `poetry self add poetry-plugin-freeze` after `pip install` or directly `poetry self add`.","message":"The plugin is installed via `poetry self add`, not `pip install`. Using `pip install` will install the package but it won't be recognized as a Poetry plugin until you also run `poetry self add`.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Do not import it; use as a Poetry CLI command: `poetry freezer`.","cause":"Trying to import the plugin directly in Python code. This is a CLI plugin, not a Python library.","error":"ModuleNotFoundError: No module named 'poetry.plugins'"},{"fix":"Run `poetry self add poetry-plugin-freeze` to register the plugin.","cause":"The plugin must be installed into Poetry's environment via `poetry self add`, not just `pip install`.","error":"Poetry cannot find the plugin after pip install"},{"fix":"Upgrade to poetry-plugin-freeze==1.2.0 which supports Poetry v2.","cause":"Using an older plugin version with Poetry v2.","error":"ValueError: Unsupported poetry version"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}