From 80ea6e1426c250762add0c208bc17f7d657f7055e7bcf6b15b32f073b416f6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:26:03 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-filelock revision 3cab854adf4285e93f6ba55f81104921 --- _multibuild | 3 ++ filelock-3.12.3.tar.gz | 3 -- filelock-3.16.1.tar.gz | 3 ++ python-filelock.changes | 71 ++++++++++++++++++++++++++++++++++++++++- python-filelock.spec | 31 ++++++++++++++---- 5 files changed, 100 insertions(+), 11 deletions(-) create mode 100644 _multibuild delete mode 100644 filelock-3.12.3.tar.gz create mode 100644 filelock-3.16.1.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/filelock-3.12.3.tar.gz b/filelock-3.12.3.tar.gz deleted file mode 100644 index 978a1e4..0000000 --- a/filelock-3.12.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ecc1dd2ec4672a10c8550a8182f1bd0c0a5088470ecd5a125e45f49472fac3d -size 13746 diff --git a/filelock-3.16.1.tar.gz b/filelock-3.16.1.tar.gz new file mode 100644 index 0000000..58482b9 --- /dev/null +++ b/filelock-3.16.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435 +size 18037 diff --git a/python-filelock.changes b/python-filelock.changes index 8b0337c..0a82910 100644 --- a/python-filelock.changes +++ b/python-filelock.changes @@ -1,7 +1,76 @@ +------------------------------------------------------------------- +Wed Oct 9 07:27:30 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 3.16.1 + * CI improvements + +------------------------------------------------------------------- +Sun Sep 8 15:56:37 UTC 2024 - Dirk Müller + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 -- 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 diff --git a/python-filelock.spec b/python-filelock.spec index 10ad1e8..949b4e3 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -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 # # 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