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
|
Tue Oct 3 01:23:23 UTC 2017 - arun@gmx.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-redis
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,19 +20,21 @@
|
|||||||
Name: python-redis
|
Name: python-redis
|
||||||
Version: 2.10.6
|
Version: 2.10.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://github.com/andymccurdy/redis-py
|
|
||||||
Summary: Python client for Redis key-value store
|
Summary: Python client for Redis key-value store
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.io/packages/source/r/redis/redis-%{version}.tar.gz
|
URL: http://github.com/andymccurdy/redis-py
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module pytest >= 2.5.0}
|
||||||
BuildRequires: %{python_module py}
|
BuildRequires: %{python_module py}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: psmisc
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: redis
|
||||||
Requires: python-py
|
Requires: python-py
|
||||||
|
Requires: redis
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,9 +50,14 @@ The Python interface to the Redis key-value store.
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %python_files
|
%check
|
||||||
%defattr(-,root,root,-)
|
%{_sbindir}/redis-server --port 6379 &
|
||||||
%doc CHANGES LICENSE README.rst
|
%python_exec setup.py test
|
||||||
|
killall redis-server
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc CHANGES README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user