From e3a3f9727c513b6b8b8d29e7d82c0d4c17d2187f312466a09503ca0a428e8b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 24 Aug 2020 18:43:11 +0000 Subject: [PATCH] fix of my.. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=72 --- python-pytest.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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