diff --git a/python-pytest.spec b/python-pytest.spec index 25c7aa8..c11540e 100644 --- a/python-pytest.spec +++ b/python-pytest.spec @@ -38,6 +38,7 @@ BuildRequires: %{python_module setuptools_scm} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-attrs >= 17.4.0 +Requires: python-importlib-metadata >= 0.12 Requires: python-iniconfig Requires: python-more-itertools >= 4.0.0 Requires: python-packaging @@ -55,6 +56,7 @@ BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module Twisted} BuildRequires: %{python_module decorator} BuildRequires: %{python_module hypothesis >= 3.56} +BuildRequires: %{python_module importlib-metadata >= 0.12} BuildRequires: %{python_module iniconfig} BuildRequires: %{python_module mock} # nose is really not REQUIRED, the test suite skips over particular @@ -71,15 +73,9 @@ BuildRequires: %{python_module toml} BuildRequires: %{python_module xmlschema} BuildRequires: lsof %endif -%if 0%{?suse_version} < 1550 -BuildRequires: python3-importlib-metadata >= 0.12 -%endif %if %{python3_version_nodots} < 36 Requires: python-pathlib2 >= 2.2.0 %endif -%if %{python3_version_nodots} < 38 -Requires: python-importlib-metadata >= 0.12 -%endif %python_subpackages %description