How to enable different version of Pytest with Poetry and resolves #20992
-
Hello, In the older version of pants we could specify the version of pytest in the Pants config: https://www.pantsbuild.org/2.15/docs/python/goals/test#pytest-version-and-plugins In recent versions (I think stopping at 2.16) this syntax is no longer supported and we need to rely on the resolvers and install from resolvers. How do I replicate that setup with Poetry + Pants and how I can provide smaller lockfiles?
I tried the below:
Any recommendations? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So you're not currently using a Pants lockfile, it sounds like? There is no way to generate Pants requirements from just the dev requirements. But it's not a bad idea to enable that, if you want to add it. See here for the current implementation which always grabs both sections. We could add arguments to the macro to control which groups it looks at. Should be pretty straightforward. |
Beta Was this translation helpful? Give feedback.
So you're not currently using a Pants lockfile, it sounds like?
There is no way to generate Pants requirements from just the dev requirements. But it's not a bad idea to enable that, if you want to add it. See here for the current implementation which always grabs both sections. We could add arguments to the macro to control which groups it looks at. Should be pretty straightforward.