From fb02a9bce47601d23f8c923494c5e12dc5251859 Mon Sep 17 00:00:00 2001 From: Martin Hoyer Date: Wed, 14 Feb 2024 10:28:41 +0100 Subject: [PATCH 1/2] Use future annotations for pytest<7 compatibility --- testinfra/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testinfra/plugin.py b/testinfra/plugin.py index d1371dbb..db3541b0 100644 --- a/testinfra/plugin.py +++ b/testinfra/plugin.py @@ -10,6 +10,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import annotations + import logging import shutil import sys From dbbc046904a596ed5104d7bda25a8358ab6a5560 Mon Sep 17 00:00:00 2001 From: Martin Hoyer Date: Wed, 14 Feb 2024 10:56:04 +0100 Subject: [PATCH 2/2] Require pytest>=6 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 07cd1b56..37e681ef 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,7 +32,7 @@ packages = find: setup_requires = setuptools_scm install_requires = - pytest!=3.0.2 + pytest>=6 extras_require = [options.extras_require]