Pytest: Allow users to specify version information for the `required_plugins` INI key

Created on 10 Jun 2020  路  3Comments  路  Source: pytest-dev/pytest

Building off of https://github.com/pytest-dev/pytest/issues/7305, we should allow users to specify the required versions of the plugins they would like to make required. This should be implemented as defined in PEP 440, and should be optional after each plugin name in the list of required plugins.

For example:

[pytest]
required_plugins = pugin1===1.0.0 plugin2<=5.6.1 plugin3 plugin4~=3.2.1
config proposal

Most helpful comment

Thanks for suggesting packaging @nicoddemus, I鈥檒l use it

All 3 comments

Thoughts @nicoddemus and @RonnyPfannschmidt?

Yep the description is accurate, thanks. We should use packaging to match the versions.

Thanks for suggesting packaging @nicoddemus, I鈥檒l use it

Was this page helpful?
0 / 5 - 0 ratings