Hi guys, I'm having issues to run different pytest...
# general
b
Hi guys, I'm having issues to run different pytest versions using Pants. The reason I need this is because my codebase is split into two resolves, one is the legacy one which supports older versions of python and a modern one which support newer versions. Until now, I have not find a way to select different pytest versions to run in each resolve, and I have to select a very old version of pytest to be able to run all the tests. Does anyone know if it's possible to parameterize the version of pytest depending on the sources against which it's being run?
b
Sorry for the trouble! I think @happy-kitchen-89482 is most familiar with how python tools work. Maybe he has some insight?
h
Unfortunately this is not currently possible in a single Pants invocation
Although I would like it to be in the future
For now this is the general shape of a workaround:
That example is for black but the same principles should apply, I think
b
Thanks for the help guys! I'll try your suggestion