From 12cb94e877bb8653e0e561e0be1ae875e2656322 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Mar 27 2019 10:32:15 +0000 Subject: Add tests bcond for bootstrapping Python --- diff --git a/python-jsonschema.spec b/python-jsonschema.spec index e0bc7e9..43e00d9 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -28,11 +28,14 @@ BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) # test requirements +%bcond_without tests +%if %{with tests} BuildRequires: python3dist(attrs) BuildRequires: python3dist(perf) BuildRequires: python3dist(pyrsistent) BuildRequires: python3dist(six) BuildRequires: python3dist(twisted) +%endif %description %{common_description} @@ -60,8 +63,10 @@ rm -rf %{pypi_name}.egg-info %py3_install +%if %{with tests} %check PYTHONPATH=$(pwd) trial-3 %{pypi_name} +%endif %files -n python3-%{pypi_name}