forked from pool/spec-cleaner
- 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:
parent
d04ab0f6ca
commit
46b22263fe
@ -28,9 +28,6 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-cov
|
|
||||||
BuildRequires: python3-pytest-isort
|
|
||||||
BuildRequires: python3-pytest-xdist
|
|
||||||
BuildRequires: python3-python-rpm-spec
|
BuildRequires: python3-python-rpm-spec
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
Requires: python3-python-rpm-spec
|
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
|
%autosetup -p1
|
||||||
# Set correct package version, upstream has the next release number
|
# Set correct package version, upstream has the next release number
|
||||||
sed -i 's/1\.2\.4/%{version}/g' spec_cleaner/__init__.py
|
sed -i 's/1\.2\.4/%{version}/g' spec_cleaner/__init__.py
|
||||||
|
rm pytest.ini
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?mageia}
|
%if 0%{?mageia}
|
||||||
@ -70,7 +68,7 @@ donttest="webtest or url_https.spec"
|
|||||||
# Tests that requires network because of make_secure_url checking that
|
# Tests that requires network because of make_secure_url checking that
|
||||||
# the secure url exists
|
# the secure url exists
|
||||||
donttest+=" or source_https or rpmpreamble.spec or replace_pwdutils.spec or mingw32-clutter.spec"
|
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
|
%install
|
||||||
%if 0%{?mageia}
|
%if 0%{?mageia}
|
||||||
|
Loading…
Reference in New Issue
Block a user