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}