bitter-ability-32190
11/04/2021, 6:24 PMpants
to have a "strict constraints" mode and will likely need some friendly nudges by the Pants devs to navigate the codebase.
Ideally in "strict_constraints" mode, all of a Python source's dependencies must exist in the requirements_constraints
file. This ensures nobody adds a dependency to a script without also adding it to the constraints file. (Additionally, this will help in migrating to pants
as it's hard for me to see which modules aren't getting found automagically and require a module_mapping
entry).bitter-ability-32190
11/04/2021, 6:26 PMsrc/python/pants/backend/python/util_rules/pex_from_targets.py
where the code is able to identify "unconstrained projects", however it appears that will only trigger for explicitly specified requirements through the dependencies
argwitty-crayon-22786
11/04/2021, 6:27 PMwitty-crayon-22786
11/04/2021, 6:29 PMbitter-ability-32190
11/04/2021, 6:29 PMwitty-crayon-22786
11/04/2021, 6:29 PMwitty-crayon-22786
11/04/2021, 6:31 PMwitty-crayon-22786
11/04/2021, 6:31 PMbitter-ability-32190
11/04/2021, 6:32 PMmodule_mapping
I'm defining will be correct (and therefore won't cause issues for devs being onboarded to pants
), or that new code which should be updating the global reqs iswitty-crayon-22786
11/04/2021, 6:35 PM@union
member, and then… basically just fiddle with that last loop to warn/fail for zero matches… you could install both the original and your new one in a pluginbitter-ability-32190
11/04/2021, 6:35 PMbitter-ability-32190
11/04/2021, 6:36 PMbitter-ability-32190
11/04/2021, 6:36 PMcurved-television-6568
11/05/2021, 7:54 AM