From 3326314a6630be9f12359b540a130bf529dd88a2572a4c79ecde51b0895d5d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 16 Jun 2020 12:38:27 +0000 Subject: [PATCH] - 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 --- python-python-redis-lock.changes | 6 ++++++ python-python-redis-lock.spec | 18 ++++++++++++------ python-redis-lock-3.3.1.tar.gz | 3 --- python-redis-lock-3.5.0.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 9 deletions(-) delete mode 100644 python-redis-lock-3.3.1.tar.gz create mode 100644 python-redis-lock-3.5.0.tar.gz diff --git a/python-python-redis-lock.changes b/python-python-redis-lock.changes index a899927..4ca7792 100644 --- a/python-python-redis-lock.changes +++ b/python-python-redis-lock.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 16 12:17:26 UTC 2020 - Tomáš Chvátal + +- Update to 3.5.0: + * support for newer redis releases + ------------------------------------------------------------------- Wed Mar 27 08:50:40 AM UTC 2019 - John Vandenberg diff --git a/python-python-redis-lock.spec b/python-python-redis-lock.spec index 66e4656..a24b936 100644 --- a/python-python-redis-lock.spec +++ b/python-python-redis-lock.spec @@ -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 diff --git a/python-redis-lock-3.3.1.tar.gz b/python-redis-lock-3.3.1.tar.gz deleted file mode 100644 index e2883b0..0000000 --- a/python-redis-lock-3.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5316d473ce6ce86a774b9f9c110d84c3a9bd1a2abfda5d99e9c0c8a872a8e6d6 -size 158759 diff --git a/python-redis-lock-3.5.0.tar.gz b/python-redis-lock-3.5.0.tar.gz new file mode 100644 index 0000000..f384bc0 --- /dev/null +++ b/python-redis-lock-3.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06f28f63bf4ea3d739ff5c472e76563e24aa5c887002a85cbdb7a5b13aa05897 +size 161533