14
0
forked from pool/python-xmlsec
2022-05-11 15:56:46 +00:00
committed by Git OBS Bridge
parent 246e66b193
commit fa6dd0ac16
2 changed files with 13 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ Wed May 11 12:39:21 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Add avoid_lxml_tests_failing.patch (help working
around the lxml issue lp#1880251 and lp#1887848, from
gh#mehcode/python-xmlsec#84).
- Switch off building on Python 3.10
- Switch off building on Python 3.10 and %ix86
(gh#mehcode/python-xmlsec#204).
-------------------------------------------------------------------

View File

@@ -17,8 +17,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# gh#mehcode/python-xmlsec#204
%define skip_python310 1
# gh#mehcode/python-xmlsec#204 and gh#mehcode/python-xmlsec#210
# %%define skip_python310 1
Name: python-xmlsec
Version: 1.3.12
Release: 0
@@ -68,7 +68,16 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch tests/
# %%pytest_arch tests/
%ifarch %ix86
skip_tests = "not test_reinitialize_module"
%else
skip_tests = ""
%endif
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
rm -rf .hypothesis/ .pytest_cache/
$python -mpytest --ignore=_build.python39 --ignore=_build.python310 --ignore=_build.python38 -v -k "$skip_tests" tests/
}
%files %{python_files}
%doc README.rst