forked from pool/python-cassandra-driver
This commit is contained in:
committed by
Git OBS Bridge
parent
254fe9c4f7
commit
420269aa1b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user