From 46b22263fecb00792406e9a89783be582303d7bda0f63c9bb4ac71294dd5077a Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 8 Jul 2024 10:59:22 +0000 Subject: [PATCH] - Remove some pytest build dependencies OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=168 --- spec-cleaner.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec-cleaner.spec b/spec-cleaner.spec index b01970c..df653f9 100644 --- a/spec-cleaner.spec +++ b/spec-cleaner.spec @@ -28,9 +28,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-pip BuildRequires: python3-pytest -BuildRequires: python3-pytest-cov -BuildRequires: python3-pytest-isort -BuildRequires: python3-pytest-xdist BuildRequires: python3-python-rpm-spec BuildRequires: python3-wheel Requires: python3-python-rpm-spec @@ -55,6 +52,7 @@ user to use spec-cleaner rather than to stick to perl based format_spec_file. %autosetup -p1 # Set correct package version, upstream has the next release number sed -i 's/1\.2\.4/%{version}/g' spec_cleaner/__init__.py +rm pytest.ini %build %if 0%{?mageia} @@ -70,7 +68,7 @@ donttest="webtest or url_https.spec" # Tests that requires network because of make_secure_url checking that # the secure url exists donttest+=" or source_https or rpmpreamble.spec or replace_pwdutils.spec or mingw32-clutter.spec" -python3 -m pytest -k "not ($donttest)" +python3 -m pytest -k "not ($donttest)" tests/*-tests.py %install %if 0%{?mageia}