From 420269aa1bb421c96980d22989aef240fadf3fe80175e4750c2c46cf2e68b63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 1 Nov 2018 09:47:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cassandra-driver?expand=0&rev=16 --- python-cassandra-driver.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-cassandra-driver.spec b/python-cassandra-driver.spec index a789a7f..f13cdad 100644 --- a/python-cassandra-driver.spec +++ b/python-cassandra-driver.spec @@ -38,6 +38,7 @@ BuildRequires: %{python_module scales} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} >= 1.6 BuildRequires: %{python_module sure} +BuildRequires: fdupes BuildRequires: libev-devel BuildRequires: python-rpm-macros BuildRequires: python2-futures @@ -62,6 +63,7 @@ A list of features may be found at https://github.com/datastax/python-driver#fea %setup -q -n python-driver-%{version} # do not run integration tests rm -rf tests/integration +rm -rf tests/stress_tests # do not run cython tests rm -rf tests/unit/cython # fix hardcoded cython dep @@ -75,9 +77,10 @@ export CASS_DRIVER_NO_EXTENSIONS=1 %install export CASS_DRIVER_NO_EXTENSIONS=1 %python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +%python_expand PYTHONPATH="$(pwd)" nosetests-%{$python_version} -v %files %{python_files} %license LICENSE