Accepting request 631998 from devel:languages:python
- Run tests by launching redis server - Require redis on runtime OBS-URL: https://build.opensuse.org/request/show/631998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=16
This commit is contained in:
commit
eaf5c3d575
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 28 14:25:18 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Run tests by launching redis server
|
||||
- Require redis on runtime
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 01:23:23 UTC 2017 - arun@gmx.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-redis
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,19 +20,21 @@
|
||||
Name: python-redis
|
||||
Version: 2.10.6
|
||||
Release: 0
|
||||
Url: http://github.com/andymccurdy/redis-py
|
||||
Summary: Python client for Redis key-value store
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/r/redis/redis-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module devel}
|
||||
URL: http://github.com/andymccurdy/redis-py
|
||||
Source: https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest >= 2.5.0}
|
||||
BuildRequires: %{python_module py}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: psmisc
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: redis
|
||||
Requires: python-py
|
||||
Requires: redis
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -48,9 +50,14 @@ The Python interface to the Redis key-value store.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %python_files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES LICENSE README.rst
|
||||
%check
|
||||
%{_sbindir}/redis-server --port 6379 &
|
||||
%python_exec setup.py test
|
||||
killall redis-server
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user