From dcae66edae15845688187404f51ecb118347bdc0 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 8 Jan 2018 03:17:07 +0100 Subject: [PATCH] run tests Signed-off-by: Igor Gnatenko --- python-justbytes.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python-justbytes.spec b/python-justbytes.spec index 085d074..f3347f7 100644 --- a/python-justbytes.spec +++ b/python-justbytes.spec @@ -22,6 +22,10 @@ Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} BuildRequires: python2-devel BuildRequires: python2-setuptools +BuildRequires: python2-pytest +BuildRequires: python2-hypothesis +BuildRequires: python2-justbases +BuildRequires: python2-six Requires: python2-justbases Requires: python2-six @@ -34,6 +38,10 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-hypothesis +BuildRequires: python3-justbases +BuildRequires: python3-six Requires: python3-justbases Requires: python3-six @@ -53,6 +61,10 @@ rm -rf justbytes.egg-info %py2_install %py3_install +%check +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v tests +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v tests + %files -n python2-%{srcname} %license LICENSE %doc README.rst