Sync from SUSE:SLFO:Main python-filelock revision 3cab854adf4285e93f6ba55f81104921

This commit is contained in:
Adrian Schröter 2024-12-13 11:26:03 +01:00
parent f00f01c64c
commit 80ea6e1426
5 changed files with 100 additions and 11 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
filelock-3.12.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
filelock-3.16.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,7 +1,76 @@
-------------------------------------------------------------------
Wed Oct 9 07:27:30 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.16.1
* CI improvements
-------------------------------------------------------------------
Sun Sep 8 15:56:37 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.16.0:
* Test Python 3.13
* Add 3.13 to CI
- update to 3.15.4:
* Pass `file_lock` as positional argument
- update to 3.15.3:
* Add test for virtualenv stability
* Fix `TypeError: _CountedFileLock.__init__() got an unexpected
keyword argument 'timeout'`
- update to 3.15.2:
* Use a metaclass to implement the singleton pattern
- split into test multibuild to avoid cycle over virtualenv
-------------------------------------------------------------------
Mon Jun 17 06:00:15 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.15.1:
* Hotfix: Restore __init__ method; more robust initialization
for singleton locks
- update to 3.15.0:
* asyncio support
* Don't initialize BaseFileLock when just returning existing
instance
-------------------------------------------------------------------
Fri May 3 07:35:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.14.0:
* feat: `blocking` parameter on lock constructor with tests and
docs
-------------------------------------------------------------------
Fri Apr 12 17:03:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.13.4:
* Raise error on incompatible singleton timeout and mode args
- update to 3.13.3:
* Make singleton class instance dict unique per subclass
-------------------------------------------------------------------
Mon Mar 25 17:29:15 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.13.2:
* Fixed small typo in _unix.py
* Update SECURITY.md to reflect Python 3.7 support dropoff
* Update index.rst to improve the demo usage
* [BugFix] fix permission denied error when lock file is placed
in `/tmp`
-------------------------------------------------------------------
Mon Nov 27 15:45:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.13.1:
* Allow users to subclass FileLock with custom keyword
arguments
* Support reentrant locking on lock file path via optional
singleton instance
* change typing-extensions to be installed only with the
[typing] extra
-------------------------------------------------------------------
Fri Sep 8 04:26:16 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing Requires on typing-extensions if < 3.11
- Add missing Requires on typing-extensions if < 3.11
-------------------------------------------------------------------
Thu Sep 7 11:00:28 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-filelock
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2018 Matthias Fehring <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@ -17,25 +17,39 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define pkg_suffix -test
%bcond_without test
%else
%define pkg_suffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-filelock
Version: 3.12.3
Name: python-filelock%{?pkg_suffix}
Version: 3.16.1
Release: 0
Summary: Platform Independent File Lock in Python
License: Unlicense
URL: https://github.com/tox-dev/py-filelock
Source: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz
BuildRequires: %{python_module asyncio}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module virtualenv}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 311
Requires: python-typing_extensions >= 4.7.1
%endif
Requires: python-asyncio
BuildArch: noarch
%python_subpackages
@ -50,17 +64,20 @@ inter-process communication.
%build
%pyproject_wheel
%if !%{with test}
%install
%pyproject_install
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
%pytest -rs
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/filelock
%{python_sitelib}/filelock-%{version}*-info
%else
%check
%pytest -rs
%endif
%changelog