bright-pilot-85305
10/31/2022, 6:27 PMhundreds-father-404
10/31/2022, 6:49 PMbright-pilot-85305
10/31/2022, 6:54 PMbroad-processor-92400
10/31/2022, 9:53 PMpoetry.lock
).
Thus, we load dependencies into pants by first exporting poetry export
to a (checked in) requirements.txt
, and then use python_requirements
on that. (We have tests that check that requirements.txt
matches poetry, and that the Pants lockfile matches requirements.txt
)
All the pants fanciness (formatting, linting, tests, ...) works fine under this scheme.bright-pilot-85305
10/31/2022, 9:54 PMhappy-kitchen-89482
11/01/2022, 3:34 PMhappy-kitchen-89482
11/01/2022, 3:35 PMbright-pilot-85305
11/03/2022, 3:17 PMhappy-kitchen-89482
11/03/2022, 4:28 PMpdm_requirements
macro, similar to poetry_requirements
, that reads and passes the requirements on to Pants. I think that should be pretty straightforward to implement, if you want to take a whack at it. poetry_requirements is implemented herehappy-kitchen-89482
11/03/2022, 4:28 PM