15
0

Accepting request 637039 from devel:languages:python

- Add gevent to test dependencies
- Add scales to dependencies
- Add twisted to dependencies
- Enable tests

OBS-URL: https://build.opensuse.org/request/show/637039
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cassandra-driver?expand=0&rev=4
This commit is contained in:
2018-09-24 11:13:07 +00:00
committed by Git OBS Bridge
2 changed files with 33 additions and 7 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Sep 20 12:03:19 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Add gevent to test dependencies
- Add scales to dependencies
- Add twisted to dependencies
-------------------------------------------------------------------
Mon Sep 3 12:05:19 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Enable tests
-------------------------------------------------------------------
Sat Sep 1 18:29:47 UTC 2018 - arun@gmx.de

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -26,20 +26,27 @@ Group: Development/Languages/Python
URL: http://github.com/datastax/python-driver
Source: https://files.pythonhosted.org/packages/source/c/cassandra-driver/cassandra-driver-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module eventlet}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module scales}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} >= 1.6
BuildRequires: %{python_module sure}
BuildRequires: libev-devel
BuildRequires: python-rpm-macros
BuildRequires: python2-futures
Requires: python-Cython
Requires: python-blist
Requires: python-six >= 1.6
# test requirements
#BuildRequires: %{python_module PyYAML}
#BuildRequires: %{python_module mock}
#BuildRequires: %{python_module nose}
#BuildRequires: %{python_module pytz}
#BuildRequires: %{python_module sure}
Recommends: python-Twisted
Recommends: python-eventlet
Recommends: python-gevent
%ifpython2
Requires: python2-futures
%endif
@@ -55,6 +62,10 @@ The driver supports Python 2.7, 3.3, 3.4, 3.5, and 3.6.
%prep
%setup -q -n cassandra-driver-%{version}
# do not run integration tests
rm -rf tests/integration
# do not run cython tests
rm -rf tests/unit/cython
%build
export CFLAGS="%{optflags}"
@@ -65,6 +76,9 @@ export CASS_DRIVER_NO_EXTENSIONS=1
export CASS_DRIVER_NO_EXTENSIONS=1
%python_install
%check
%python_exec setup.py test
%files %{python_files}
%license LICENSE
%doc README.rst