From 1c3bbe26f72a7e66199037e7b524ea27033a7571 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Tue, 17 Oct 2023 17:45:23 +0300 Subject: [PATCH] [#98] Small dependency cleanup Signed-off-by: Andrey Berezin --- pyproject.toml | 2 +- requirements.txt | 1 - src/frostfs_testlib/plugins/__init__.py | 8 +------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 778e2fc..bf65d15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ keywords = ["frostfs", "test"] dependencies = [ "allure-python-commons>=2.13.2", "docker>=4.4.0", - "importlib_metadata>=5.0; python_version < '3.10'", + "pyyaml==6.0.1", "neo-mamba==1.0.0", "paramiko>=2.10.3", "pexpect>=4.8.0", diff --git a/requirements.txt b/requirements.txt index 1fdf844..32e604f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ allure-python-commons==2.13.2 docker==4.4.0 -importlib_metadata==5.0.0 neo-mamba==1.0.0 paramiko==2.10.3 pexpect==4.8.0 diff --git a/src/frostfs_testlib/plugins/__init__.py b/src/frostfs_testlib/plugins/__init__.py index fcd7acc..6914b9b 100644 --- a/src/frostfs_testlib/plugins/__init__.py +++ b/src/frostfs_testlib/plugins/__init__.py @@ -1,12 +1,6 @@ -import sys +from importlib.metadata import entry_points from typing import Any -if sys.version_info < (3, 10): - # On Python prior 3.10 we need to use backport of entry points - from importlib_metadata import entry_points -else: - from importlib.metadata import entry_points - def load_plugin(plugin_group: str, name: str) -> Any: """Loads plugin using entry point specification.