From 2cbcbc29d1c0a174690b0c49c0662e742aeabc4b Mon Sep 17 00:00:00 2001 From: Carl George Date: Jun 22 2021 23:01:45 +0000 Subject: Disable tests --- diff --git a/python-anyio.spec b/python-anyio.spec index 72de895..fe8483e 100644 --- a/python-anyio.spec +++ b/python-anyio.spec @@ -7,6 +7,9 @@ # package name fragment %global pkgname %{srcname} +# tests need coverage[toml] which isn't provided yet +%bcond_with tests + %global common_description %{expand: AnyIO is a asynchronous compatibility API that allows applications and libraries written against it to run unmodified on asyncio, curio and trio.} @@ -33,7 +36,7 @@ BuildRequires: python3dist(curio) BuildRequires: python3dist(trio) %generate_buildrequires -%pyproject_buildrequires -x test,doc +%pyproject_buildrequires -x doc%{?with_tests:,test} %description -n python3-%{pkgname} %{common_description} @@ -61,8 +64,10 @@ rm -rf html/.{doctrees,buildinfo} %pyproject_save_files anyio +%if %{with tests} %check %pytest -m "not network" +%endif %files -n python3-%{pkgname} -f %{pyproject_files}