hundreds-father-404
08/08/2022, 5:57 PM[python].resolves_to_constraints_file
to let you hook up constraints files when generating a lockfile.
Unlike before, this option lets you specify tool "resolves" like pytest
and black
in the [python]
option. Whereas our conventional modeling would be [black].constraints_file
and so on.
Thoughts on what is preferable? This decision will apply to migrating [python].only_binary
to be [python].resolves_to_only_binary
hundreds-father-404
08/08/2022, 5:58 PM[python].resolves_to_constraints_file
And probably it results in less boilerplate? Let's say your only constraint is "don't use this bad version of requests" -- you may want to hook up every resolve, including tools, to use that same constraints file. It's nice to have it all in one place, i think?hundreds-father-404
08/08/2022, 6:01 PM[python]
options impacting how a tool lockfile is generated:
• [python].lockfile_generator = {pex,poetry}
• [python].only_binary
• [python-repos].{indexes,repos}
hundreds-father-404
08/08/2022, 7:57 PM[python]
optionhundreds-father-404
08/08/2022, 7:59 PM<all>
special value to mean that every resolve should use the same constraints. That could be useful when moving [python].only_binary
, and maybe [python-repos]
, to be per-resolve optionsancient-vegetable-10556
08/08/2022, 7:59 PMhundreds-father-404
08/08/2022, 8:00 PMhundreds-father-404
08/08/2022, 8:01 PMhappy-kitchen-89482
08/08/2022, 8:15 PMhundreds-father-404
08/08/2022, 8:17 PMhundreds-father-404
08/08/2022, 8:55 PMhundreds-father-404
08/08/2022, 11:47 PM[python]
, not the tool subsystems. I'm pretty confident now that's correcthappy-kitchen-89482
08/09/2022, 2:14 AMhundreds-father-404
08/09/2022, 8:11 PM