<#20991 Support Python Poetry dev dependency group...
# github-notifications
c
#20991 Support Python Poetry dev dependency group Issue created by voyc-cameron Is your feature request related to a problem? Please describe. poetry has supported a new notation/syntax for defining development dependencies since version 1.2.0 (currently version 1.8). The old style
tool.poetry.dev-dependencies
does not seem to be supported any more in newer versions of
poetry
and the new style
tool.poetry.group.dev.dependencies
should be supported in
pants
instead. Currently, using the new style group notation causes the development dependencies to be packaged within the PEX binary file which is undesirable for the production environment. Whereas, we are unable to use the latest version of
poetry
with the old syntax. Describe the solution you'd like Update the
pyproject.toml
parsing logic in pants/src/python/pants/backend/python/macros/poetry_requirements.py Line 364 in </pantsbuild/pants/commit/53d6ad0b3c18a901b0eb1cdb6ec00ba371faed44|53d6ad0> to isolate and add the dev dependency group to the
dev_dependencies
collection variable. Describe alternatives you've considered alternatively, update the
poetry_requirements
target to allow ignoring OF certain dependency groups (
dev
in this case). Additional context None pantsbuild/pants