From fa6dd0ac16c179600805d0716258401c999f59aa418c113b3f40a120b99123a1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 11 May 2022 15:56:46 +0000 Subject: [PATCH] Fix SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=18 --- python-xmlsec.changes | 2 +- python-xmlsec.spec | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-xmlsec.changes b/python-xmlsec.changes index 980efc3..49211b0 100644 --- a/python-xmlsec.changes +++ b/python-xmlsec.changes @@ -9,7 +9,7 @@ Wed May 11 12:39:21 UTC 2022 - Matej Cepl - 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). ------------------------------------------------------------------- diff --git a/python-xmlsec.spec b/python-xmlsec.spec index cae257e..3292c49 100644 --- a/python-xmlsec.spec +++ b/python-xmlsec.spec @@ -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