forked from pool/python-xmlsec
Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=18
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user