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:
		| @@ -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). | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
|   | ||||
| @@ -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