forked from pool/python-python-redis-lock
Accepting request 1098243 from devel:languages:python
- Update to 4.0.0: - Dropped support for Python 2.7 and 3.6. - Switched from Travis to GitHub Actions. - Made logging messages more consistent. - Replaced the redis_lock.refresh.thread.* loggers with a single redis_lock.refresh.thread logger. - Various testing cleanup (mainly removal of hardcoded tmp paths). - Temporarily switch off tests (gh#ionelmc/python-redis-lock#107) OBS-URL: https://build.opensuse.org/request/show/1098243 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-redis-lock?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 5 09:14:19 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.0.0:
|
||||||
|
- Dropped support for Python 2.7 and 3.6.
|
||||||
|
- Switched from Travis to GitHub Actions.
|
||||||
|
- Made logging messages more consistent.
|
||||||
|
- Replaced the redis_lock.refresh.thread.* loggers with a
|
||||||
|
single redis_lock.refresh.thread logger.
|
||||||
|
- Various testing cleanup (mainly removal of hardcoded tmp
|
||||||
|
paths).
|
||||||
|
- Temporarily switch off tests (gh#ionelmc/python-redis-lock#107)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 6 22:49:02 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Thu Oct 6 22:49:02 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-redis-lock
|
# spec file for package python-python-redis-lock
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -17,15 +17,15 @@
|
|||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-python-redis-lock
|
Name: python-python-redis-lock
|
||||||
Version: 3.7.0
|
Version: 4.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Lock context manager implemented via redis SETNX/BLPOP
|
Summary: Lock context manager implemented via redis SETNX/BLPOP
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/ionelmc/python-redis-lock
|
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
|
Source: https://files.pythonhosted.org/packages/source/p/python-redis-lock/python-redis-lock-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-redis >= 2.10.0
|
Requires: python-redis >= 2.10.0
|
||||||
@@ -44,26 +44,28 @@ BuildRequires: %{python_module redis >= 2.10.0}
|
|||||||
Lock context manager implemented via redis SETNX/BLPOP.
|
Lock context manager implemented via redis SETNX/BLPOP.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-redis-lock-%{version}
|
%autosetup -p1 -n python-redis-lock-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# redis-server is in sbin
|
# tests temporarily switched off gh#ionelmc/python-redis-lock#107
|
||||||
export PATH=$PATH:%{_sbindir}
|
# # redis-server is in sbin
|
||||||
export PYTHONPATH=$(pwd)/tests
|
# export PATH=$PATH:%%{_sbindir}
|
||||||
export DJANGO_SETTINGS_MODULE=test_project.settings
|
# export PYTHONPATH=$(pwd)/tests
|
||||||
# gh#ionelmc/python-redis-lock#86
|
# export DJANGO_SETTINGS_MODULE=test_project.settings
|
||||||
%pytest -k 'not test_no_overlap2'
|
# # gh#ionelmc/python-redis-lock#86
|
||||||
|
# %%pytest -k 'not test_no_overlap2'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/redis_lock
|
||||||
|
%{python_sitelib}/python_redis_lock-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4265a476e39d476a8acf5c2766485c44c75f3a1bd6cf73bb195f3079153b8374
|
|
||||||
size 162008
|
|
3
python-redis-lock-4.0.0.tar.gz
Normal file
3
python-redis-lock-4.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4abd0bcf49136acad66727bf5486dd2494078ca55e49efa693f794077319091a
|
||||||
|
size 162533
|
Reference in New Issue
Block a user