calm-artist-46894
11/03/2019, 3:29 AMpants
doesn't play well with `pyenv`: say both python 3.6
and 3.7
are installed via pyenv
and 3.6
is configured to be used; command -v python3.7
would not die and pants
would be tricked to use python 3.7
. Then pants
would fail with:
circleci@ip-10-100-196-106:~/project$ python3.7
pyenv: python3.7: command not found
The `python3.7' command exists in these Python versions:
3.7.0
hundreds-breakfast-49010
11/03/2019, 9:11 PMlimited-country-20626
11/04/2019, 6:54 PMlimited-country-20626
11/04/2019, 6:55 PMlimited-country-20626
11/04/2019, 6:55 PMlimited-country-20626
11/04/2019, 6:55 PMlimited-country-20626
11/04/2019, 6:56 PMwitty-crayon-22786
11/04/2019, 7:00 PMlimited-country-20626
11/04/2019, 8:58 PMhundreds-breakfast-49010
11/07/2019, 9:38 PMhundreds-breakfast-49010
11/07/2019, 11:45 PMhundreds-breakfast-49010
11/07/2019, 11:45 PM.keys()
on it and checking that against a set of approved keyshundreds-breakfast-49010
11/07/2019, 11:46 PMaloof-angle-91616
11/07/2019, 11:52 PMmatch
function for enums does — i’d totally recommend either using an enum in your case, or, if not applicable, adding the logic to do that check to pants.util.collections
aloof-angle-91616
11/07/2019, 11:53 PMassert_single_element
method for iterables that we already have therehappy-kitchen-89482
11/08/2019, 2:36 AMhappy-kitchen-89482
11/08/2019, 2:36 AMaloof-angle-91616
11/08/2019, 2:49 AMhappy-kitchen-89482
11/08/2019, 3:25 AMRootRule(Specs)
declaration, but I don't see where an actual concrete instance of the Specs
class is injected as a param.little-salesmen-78240
11/08/2019, 1:33 PMlittle-salesmen-78240
11/08/2019, 1:35 PMlittle-salesmen-78240
11/08/2019, 1:36 PMlittle-salesmen-78240
11/08/2019, 1:36 PMlittle-salesmen-78240
11/08/2019, 1:36 PMaloof-angle-91616
11/09/2019, 2:25 AMrequests
and urllib3
classes. i'd really like to merge this sooner rather than later so i will probably merge before Sunday if nobody has time to review.
this is a first attempt at solving this problem, it's scoped to a single subsystem so we can deprecate this approach en masse if it turns out to be wrong at first -- which is why i'm leaning towards trying to merge it earlier, so i can get feedback from users on whether it's working. this would be a massive win for many pants users at twitter who try to develop on a train or plane, and i suspect it will be similarly useful for other organizations using pants.aloof-angle-91616
11/09/2019, 2:36 AMhundreds-breakfast-49010
11/11/2019, 7:13 PMhundreds-breakfast-49010
11/11/2019, 7:16 PMhundreds-breakfast-49010
11/11/2019, 7:17 PMhundreds-breakfast-49010
11/11/2019, 7:17 PM