forked from pool/python-cheroot
Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=46
This commit is contained in:
@@ -36,6 +36,8 @@ Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{
|
||||
# PATCH-FIX-OPENSUSE no-pypytools.patch mcepl@suse.com
|
||||
# We don't have PyPy at all, so no need support for it
|
||||
Patch0: no-pypytools.patch
|
||||
# PATCH-FIX-UPSTREAM no-relative-imports.patch bsc#[0-9]+ mcepl@suse.com
|
||||
Patch1: no-relative-imports.patch
|
||||
BuildRequires: %{python_module jaraco.functools}
|
||||
BuildRequires: %{python_module more-itertools >= 2.6}
|
||||
BuildRequires: %{python_module setuptools >= 34.4}
|
||||
@@ -93,7 +95,7 @@ Cheroot is the pure-Python HTTP server used by CherryPy.
|
||||
%prep
|
||||
%autosetup -p1 -n cheroot-%{version} -p1
|
||||
# do not check coverage
|
||||
sed -i '/--cov/ d' pytest.ini
|
||||
sed -i -e '/--cov/ d' pytest.ini
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -112,10 +114,7 @@ pushd testclean
|
||||
%python_expand pytest_opts+=" --ignore %{buildroot}%{$python_sitelib}/cheroot/test/test_wsgi.py"
|
||||
%endif
|
||||
# test_tls_client_auth[...-False-localhost-builtin] fails ocassionally on server-side OBS
|
||||
donttest="(test_tls_client_auth and False-localhost-builtin)"
|
||||
# https://github.com/cherrypy/cheroot/issues/502
|
||||
donttest="$donttest or test_high_number_of_file_descriptors"
|
||||
%pytest --pyargs cheroot $pytest_opts -k "not ($donttest)"
|
||||
%pytest --pyargs cheroot $pytest_opts -k "not (test_tls_client_auth and False-localhost-builtin)"
|
||||
popd
|
||||
|
||||
%pre
|
||||
|
||||
Reference in New Issue
Block a user