forked from pool/python-xmlsec
Accepting request 1029766 from home:mcalabkova:branches:devel:languages:python
- Update to 1.13.13 * Add CI for Python 3.10, manylinux2 SOABI, musllinux1 SOABI and OpenSUSE Tumbleweed * Introduce linting with pre-commit * Rewrite PEP 484 stubs * xmlsec workaround for gh##84 * Resolve key loading issue on big-endian systems. * Fix building wheel when using PYXMLSEC_STATIC_DEPS=true * setup.py: Fix typo in PYXMLSEC_LIBXSLT_VERSION * Switch on modern headers lxml * use build to build wheels * remove pkgconfig as it's only a build-system requirement * exclude lxml 4.7 because the wheels are missing the lxml includes - Drop merged avoid_lxml_tests_failing.patch - Normalize the tests call OBS-URL: https://build.opensuse.org/request/show/1029766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=22
This commit is contained in:
@@ -17,21 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# gh#mehcode/python-xmlsec#204 and gh#mehcode/python-xmlsec#210
|
||||
%define skip_python310 1
|
||||
Name: python-xmlsec
|
||||
Version: 1.3.12
|
||||
Version: 1.3.13
|
||||
Release: 0
|
||||
Summary: Python bindings for the XML Security Library
|
||||
License: MIT
|
||||
URL: https://github.com/mehcode/python-xmlsec
|
||||
Source: https://files.pythonhosted.org/packages/source/x/xmlsec/xmlsec-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM avoid_lxml_tests_failing.patch gh#mehcode/python-xmlsec#84 mcepl@suse.com
|
||||
# work around the lxml issue
|
||||
Patch0: avoid_lxml_tests_failing.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module lxml >= 3.0}
|
||||
BuildRequires: %{python_module lxml >= 3.8.0}
|
||||
BuildRequires: %{python_module lxml-devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pkgconfig}
|
||||
@@ -49,8 +44,7 @@ BuildRequires: libxmlsec1-openssl1
|
||||
BuildRequires: pkgconfig(xmlsec1)
|
||||
# we need at least one xmlsec backend on runtime
|
||||
Recommends: libxmlsec1-openssl1
|
||||
Requires: python-lxml >= 3.0
|
||||
Requires: python-pkgconfig
|
||||
Requires: python-lxml >= 3.8.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -68,16 +62,12 @@ export CFLAGS="%{optflags}"
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
# %%pytest_arch tests/
|
||||
%ifarch %ix86
|
||||
export skip_tests="not test_reinitialize_module"
|
||||
%else
|
||||
export 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/
|
||||
}
|
||||
%pytest_arch -k "$skip_tests" tests/
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
Reference in New Issue
Block a user