{"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,"search_vec":"'1.2.0':25 '3.9':35 'base':15 'build':23 'current':18 'depend':13,39 'ensur':21 'file':20 'freez':4,9,38 'lock':19 'lockfil':41 'plugin':3,7,37 'poetri':2,6,28,36 'poetry-plugin-freez':1 'python':34 'reproduc':22 'requir':33 'support':26 'v1':29 'v2':31 'version':14,24 'wheel':11,40","created_at":"2026-05-09T05:53:27.947496+00:00","updated_at":"2026-05-09T05:53:27.947496+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/cloud-custodian/poetry-plugin-freeze","docs":null,"changelog":null,"pypi":"https://pypi.org/project/poetry-plugin-freeze/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-09","next_check":"2026-08-07","install_tag":null}}