- Remove some pytest build dependencies

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=168
This commit is contained in:
Daniel Garcia 2024-07-08 10:59:22 +00:00 committed by Git OBS Bridge
parent d04ab0f6ca
commit 46b22263fe

View File

@ -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}