full-student-91825
05/16/2022, 7:40 PM./pants fmt ::
and ./pants test
for multiple Python versions? Something equivalent to Nox sessions.happy-kitchen-89482
05/16/2022, 7:41 PMinterpreter_constraints
happy-kitchen-89482
05/16/2022, 7:41 PMhappy-kitchen-89482
05/16/2022, 7:42 PMhappy-kitchen-89482
05/16/2022, 7:42 PMhappy-kitchen-89482
05/16/2022, 7:44 PM./pants lint ::
makes sense, running ./pants fmt ::
multiple times on the same files with different interpreter constraints may get confusing, if the same formatter does different things to the same file when run on different interpretershappy-kitchen-89482
05/16/2022, 7:44 PMhappy-kitchen-89482
05/16/2022, 7:44 PMfull-student-91825
05/16/2022, 7:44 PMparameterize()
only in a high-level tests
folder, or do I need to add it to every BUILD file in the folder?full-student-91825
05/16/2022, 7:45 PMOr the same files multiple timesThis one. Same files, but diff Python versions.
happy-kitchen-89482
05/16/2022, 7:45 PMpython_tests
where you want to run those tests with multiple interpretershappy-kitchen-89482
05/16/2022, 7:45 PMhappy-kitchen-89482
05/16/2022, 7:45 PMhappy-kitchen-89482
05/16/2022, 7:46 PMhappy-kitchen-89482
05/16/2022, 7:47 PMhappy-kitchen-89482
05/16/2022, 7:48 PM./pants --python-interpreter-constraints="['==3.8.*']" test ::
for exampleenough-analyst-54434
05/16/2022, 7:55 PMtox -p -epy{py{27,3{6,7,8,9}},27,3{5,6,7,8,9,10,11}}-integration
I can do that in the Pex project using tox to run tests against all supported interpreters in parallel. But its nice and ad-hoc. I can leave off some if I want. The definition for all those interpreters resides in 1 spot in my tox.ini.enough-analyst-54434
05/16/2022, 7:57 PMenough-analyst-54434
05/16/2022, 7:59 PMfull-student-91825
05/16/2022, 8:01 PMenough-analyst-54434
05/16/2022, 8:02 PMhappy-kitchen-89482
05/16/2022, 8:33 PMenough-analyst-54434
05/16/2022, 9:21 PMhappy-kitchen-89482
05/16/2022, 9:22 PM./pants test ::
will run all the permutationsenough-analyst-54434
05/16/2022, 9:22 PMhappy-kitchen-89482
05/16/2022, 9:22 PMhappy-kitchen-89482
05/16/2022, 9:22 PMenough-analyst-54434
05/16/2022, 9:23 PMenough-analyst-54434
05/16/2022, 9:23 PMhappy-kitchen-89482
05/16/2022, 9:25 PMhappy-kitchen-89482
05/16/2022, 9:25 PMhappy-kitchen-89482
05/16/2022, 9:28 PM./pants test ::@interpreter_constraints=py39
to work, but it doesn'tenough-analyst-54434
05/16/2022, 9:28 PM./pants test ::@interpreter_constraints={py39,py38}
enough-analyst-54434
05/16/2022, 9:29 PMhappy-kitchen-89482
05/16/2022, 9:29 PM./pants test src/tests@interpreter_constraints=py38 src/tests@interpreter_constraints=py39
happy-kitchen-89482
05/16/2022, 9:30 PMenough-analyst-54434
05/16/2022, 9:30 PMhappy-kitchen-89482
05/16/2022, 9:31 PM