cool-easter-32542
06/03/2024, 11:09 AMtool.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/pantscool-easter-32542
06/04/2024, 8:02 PM