cloud-custodian / poetry-plugin-freeze

poetry plugin to freeze dependency versions in wheels
22 stars 4 forks source link

Fails if project directory contains a `pyproject.toml` file without tool.poetry section #14

Open Toilal opened 8 months ago

Toilal commented 8 months ago

The plugin fails if project directory contains a pyproject.toml file without tool.poetry section.

It can easily occurs if you are using poetry config virtualenvs.in-project true with created a .venv directory inside the project directory and will probably contains pyproject.toml files

[tool.poetry] section not found in <project>/.venv/lib/python3.11/site-packages/ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/tools/pyproject.toml