14
0

- Update to 3.5.0:

* support for newer redis releases

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-redis-lock?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2020-06-16 12:38:27 +00:00
committed by Git OBS Bridge
parent 95de91900f
commit 3326314a66
4 changed files with 21 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-redis-lock
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,22 +18,24 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-redis-lock
Version: 3.3.1
Version: 3.5.0
Release: 0
Summary: Lock context manager implemented via redis SETNX/BLPOP
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/ionelmc/python-redis-lock
Source: https://files.pythonhosted.org/packages/source/p/python-redis-lock/python-redis-lock-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-redis >= 2.10.0
Suggests: python-django-redis >= 3.8.0
Recommends: python-django-redis >= 3.8.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module redis >= 2.10.0}
BuildRequires: %{python_module django-redis >= 3.8.0}
BuildRequires: %{python_module process-tests}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module redis >= 2.10.0}
# /SECTION
%python_subpackages
@@ -51,7 +53,11 @@ Lock context manager implemented via redis SETNX/BLPOP.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
# redis-server is in sbin
export PATH=$PATH:%{_sbindir}
export PYTHONPATH=$(pwd)/tests
export DJANGO_SETTINGS_MODULE=test_project.settings
%pytest
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst