diff --git a/0001-BugFix-fix-permission-denied-error-when-lock-file-is.patch b/0001-BugFix-fix-permission-denied-error-when-lock-file-is.patch deleted file mode 100644 index 78e90a908b5a4d4250b7d581beda535288b39cb4..0000000000000000000000000000000000000000 --- a/0001-BugFix-fix-permission-denied-error-when-lock-file-is.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 9a6437521131490a72e68813164885cecfd1232d Mon Sep 17 00:00:00 2001 -From: kota-iizuka <64062831+kota-iizuka@users.noreply.github.com> -Date: Mon, 25 Mar 2024 23:24:53 +0900 -Subject: [PATCH] [BugFix] fix permission denied error when lock file is placed - in `/tmp` (#317) - ---- - src/filelock/_unix.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/src/filelock/_unix.py b/src/filelock/_unix.py -index 4ee6033..4ae1fbe 100644 ---- a/src/filelock/_unix.py -+++ b/src/filelock/_unix.py -@@ -4,6 +4,7 @@ import os - import sys - from contextlib import suppress - from errno import ENOSYS -+from pathlib import Path - from typing import cast - - from ._api import BaseFileLock -@@ -35,7 +36,9 @@ else: # pragma: win32 no cover - - def _acquire(self) -> None: - ensure_directory_exists(self.lock_file) -- open_flags = os.O_RDWR | os.O_CREAT | os.O_TRUNC -+ open_flags = os.O_RDWR | os.O_TRUNC -+ if not Path(self.lock_file).exists(): -+ open_flags |= os.O_CREAT - fd = os.open(self.lock_file, open_flags, self._context.mode) - with suppress(PermissionError): # This locked is not owned by this UID - os.fchmod(fd, self._context.mode) --- -2.33.0 - diff --git a/filelock-3.13.1.tar.gz b/filelock-3.13.1.tar.gz deleted file mode 100644 index 25d217db13e794f59549e2b1edc455d5d1ac0184..0000000000000000000000000000000000000000 Binary files a/filelock-3.13.1.tar.gz and /dev/null differ diff --git a/filelock-3.15.4.tar.gz b/filelock-3.15.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f7657f136af62a91ad4370ee873c0d106094ed90 Binary files /dev/null and b/filelock-3.15.4.tar.gz differ diff --git a/python-filelock.spec b/python-filelock.spec index f392b6e134f2e06b21726e4b511a264a33490e8c..4f83a2a1fa241a8163e3d57db84bac9eab813e40 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -1,16 +1,15 @@ Name: python-filelock -Version: 3.13.1 -Release: 2 +Version: 3.15.4 +Release: 1 Summary: A platform independent file lock License: Unlicense URL: https://github.com/benediktschmitt/py-filelock -Source0: https://files.pythonhosted.org/packages/70/70/41905c80dcfe71b22fb06827b8eae65781783d4a14194bce79d16a013263/filelock-3.13.1.tar.gz -Patch0: 0001-BugFix-fix-permission-denied-error-when-lock-file-is.patch +Source0: %{pypi_source filelock} BuildArch: noarch BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest -BuildRequires: python3-pytest-mock +BuildRequires: python3-pytest-mock python3-pytest-virtualenv python3-virtualenv %description This package contains a single module, which implements a platform @@ -63,6 +62,9 @@ pytest %doc README.md %changelog +* Mon Aug 12 2024 Ge Wang - 3.15.4-1 +- Update package to version 3.15.4 + * Thu May 09 2024 wangxiaomeng - 3.13.1-2 - Backport patch:fix permission denied error when lock file is placed in /tmp