Hello community, here is the log from the commit of package python-redis for openSUSE:Factory checked in at 2018-08-29 12:26:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-redis (Old) and /work/SRC/openSUSE:Factory/.python-redis.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-redis" Wed Aug 29 12:26:51 2018 rev:16 rq:631998 version:2.10.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-redis/python-redis.changes 2017-10-05 11:58:16.220946076 +0200 +++ /work/SRC/openSUSE:Factory/.python-redis.new/python-redis.changes 2018-08-29 12:26:51.423614179 +0200 @@ -1,0 +2,6 @@ +Tue Aug 28 14:25:18 UTC 2018 - [email protected] + +- Run tests by launching redis server +- Require redis on runtime + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-redis.spec ++++++ --- /var/tmp/diff_new_pack.JRXHmo/_old 2018-08-29 12:26:51.911615250 +0200 +++ /var/tmp/diff_new_pack.JRXHmo/_new 2018-08-29 12:26:51.911615250 +0200 @@ -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 @@ %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
