14
0
Files
python-python-redis-lock/python-python-redis-lock.spec
Dirk Mueller 7a1c3aae8b Accepting request 1008616 from home:yarunachalam:branches:devel:languages:python
- Update to version 3.7.0 (2020-11-20)
  Made logger names more specific. Now can have granular filtering on these new logger names:
  redis_lock.acquire (emits DEBUG messages)
  redis_lock.acquire (emits WARN messages)
  redis_lock.acquire (emits INFO messages)
  redis_lock.refresh.thread.start (emits DEBUG messages)
  redis_lock.refresh.thread.exit (emits DEBUG messages)
  redis_lock.refresh.start (emits DEBUG messages)
  redis_lock.refresh.shutdown (emits DEBUG messages)
  redis_lock.refresh.exit (emits DEBUG messages)
  redis_lock.release (emits DEBUG messages)
  Contributed by Salomon Smeke Cohen in #80.
  Fixed few CI issues regarding doc checks. Contributed by Salomon Smeke Cohen in #81.

OBS-URL: https://build.opensuse.org/request/show/1008616
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-redis-lock?expand=0&rev=10
2022-10-07 07:54:44 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package python-python-redis-lock
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-redis-lock
Version: 3.7.0
Release: 0
Summary: Lock context manager implemented via redis SETNX/BLPOP
License: BSD-2-Clause
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
Recommends: python-django-redis >= 3.8.0
BuildArch: noarch
# SECTION test requirements
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
%description
Lock context manager implemented via redis SETNX/BLPOP.
%prep
%setup -q -n python-redis-lock-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# redis-server is in sbin
export PATH=$PATH:%{_sbindir}
export PYTHONPATH=$(pwd)/tests
export DJANGO_SETTINGS_MODULE=test_project.settings
# gh#ionelmc/python-redis-lock#86
%pytest -k 'not test_no_overlap2'
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog