https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-father-404

08/06/2021, 9:02 PM
Gr, somewhat regretting that we leaned into
interpreter_constraints
using a list to OR constraints, like
['==2.7.*', '>3.6']
. Poetry needs a single constraint, and I don't know of a way to programmatically convert the list into a single value
John warned us this is non-standard and might bite us in the future 🤔
I think there's an inelegant solution. We now have a notion of "python_universe". Iterate over every version in our universe and see if it's contained. If so, add it to our new synthetic constraint Very similar to how partion_by_major_minor_versions worked
w

witty-crayon-22786

08/06/2021, 9:42 PM
should https://github.com/pantsbuild/pants/pull/12515 wait for this to be resolved…?
h

hundreds-father-404

08/06/2021, 9:44 PM
Yeah I can wait to hit merge. I don't think partitioning will help a ton: we do not want to run Poetry mutliple times because then we need a way to merge everything. But, no rush to hit merge