gray-shoe-19951
12/19/2022, 3:44 PMhundreds-father-404
12/19/2022, 3:47 PMdev_dependencies
, with a default to True. Any interest in adding that? If so, I'm happy to give some thoughts on how to implement itgray-shoe-19951
12/19/2022, 3:49 PMhundreds-father-404
12/19/2022, 4:02 PMBoolField
subclass in src/python/pants/backend/python/macros/poetry_requirements.py with a default to True. https://www.pantsbuild.org/docs/target-api-new-fields talks about how to add a new field
Then it looks like you'll want to modify the function parse_poetry_requirements
to take an argument for whether to include dev dependencies. With this line parse_requirements_callback=partial(parse_poetry_requirements, build_root),
, you'll want to add to the args something like dev_dependencies=request.generator[MyNewField].value