oh man. Unpicking a project from "eh, it all uses ...
# general
a
oh man. Unpicking a project from "eh, it all uses 3.9" to "the pants-plugins use 3.11, the target runtime uses 3.10, and the 3.11 plugins generate 3.10 code for the target runtime, but anything else can be whatever" is uh... 'fun'
I think I've sorted it now (but it's a bit of a game of whackamole) • Set the global
interpreter_constraints
to 3.10 • Created a
pants-plugin
resolve, constrained to 3.11 • Created a
plugin_sources
and
plugin_tests
macro which sets the resolve to
pants-plugins
and Interpreter-constraints to
==3.11.*
• created a flake8 resolve, with BOTH interpreter constraints (this is key, otherwise it seems to use the default, then cry when linting pants code)
but now my pytest plugins aren't being installed >_> duh, wasn't telling pants to install them