commit f00f01c64cd819fb6b0c9a73b7d697fefa62466b307cd979203b1f26315c6f52 Author: Adrian Schröter Date: Fri May 3 20:40:32 2024 +0200 Sync from SUSE:SLFO:Main python-filelock revision fb15e1f466ea959a83edc44a32d2e597 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/filelock-3.12.3.tar.gz b/filelock-3.12.3.tar.gz new file mode 100644 index 0000000..978a1e4 --- /dev/null +++ b/filelock-3.12.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ecc1dd2ec4672a10c8550a8182f1bd0c0a5088470ecd5a125e45f49472fac3d +size 13746 diff --git a/python-filelock.changes b/python-filelock.changes new file mode 100644 index 0000000..8b0337c --- /dev/null +++ b/python-filelock.changes @@ -0,0 +1,164 @@ +------------------------------------------------------------------- +Fri Sep 8 04:26:16 UTC 2023 - Steve Kowalik + +- Add missing Requires on typing-extensions if < 3.11 + +------------------------------------------------------------------- +Thu Sep 7 11:00:28 UTC 2023 - Dirk Müller + +- update to 3.12.3: + * Fix import ordering + * Exclude dependabot and pre-commit ci from release notes + * Create parent directories if necessary + +------------------------------------------------------------------- +Tue Jun 20 16:59:32 UTC 2023 - Dirk Müller + +- update to 3.12.2: + * Restore 'if TYPE_CHECKING' syntax for FileLock definition + +------------------------------------------------------------------- +Sun Jun 11 12:40:08 UTC 2023 - Dirk Müller + +- update to 3.12.1: + * Add 3.12 support + * Fix test_bad_lock_file for other OSes + +------------------------------------------------------------------- +Tue Apr 25 23:29:13 UTC 2023 - John Vandenberg + +- Update to v3.12.0 + * Make the thread local behaviour something the caller can + enable/disable via a flag during the lock creation. on by default. + * Better error handling on Windows. +- from v3.11.0 + * Make the lock thread local. +- from v3.10.7 + * Use fchmod instead of chmod to work around bug in PyPy via Anaconda. +- from v3.10.6 + * Enhance the robustness of the try/catch block in _soft.py. +- from v3.10.5 + * Add explicit error check as certain UNIX filesystems do not support + flock. +- from v3.10.4 + * Update os.open to preserve mode= for certain edge cases. +- from v3.10.3 + * Fix permission issue +- from v3.10.2 + * Bug fix for using filelock with threaded programs causing undesired + file permissions +- from v3.10.1 + * Handle pickle for :class:`filelock.Timeout` +- from v3.10.0 + * Add support for explicit file modes for lockfiles + +------------------------------------------------------------------- +Fri Apr 21 12:25:04 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:14 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Mar 14 22:23:25 UTC 2023 - Dirk Müller + +- update to 3.9.1: + * use time.perf_counter instead of time.monotonic + +------------------------------------------------------------------- +Wed Jan 4 12:59:24 UTC 2023 - Dirk Müller + +- update to 3.9.0: + * move to hatchling build backend + +------------------------------------------------------------------- +Wed Dec 14 08:34:14 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition +- More specific python_sitelib in %files + +------------------------------------------------------------------- +Tue Dec 13 15:23:18 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 3.8.2 + * What's Changed + Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.6.1 by @dependabot in #178 + Update the license classifier to "Unlicense" by @jond01 in #180 + +- Update to version 3.8.1 + * What's Changed + [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #166 + link to flufl.lock by @dholth in #167 + [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #168 + [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #169 + [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #170 + fix BaseFileLock.timeout's getter/setter being obscured by itself by @dearfl in #172 + Fix mypy fails understanding FileLock by @gaborbernat in #177 + +------------------------------------------------------------------- +Wed Oct 12 03:17:50 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 3.8.0 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #149 + * Bump actions/upload-artifact from 2 to 3 by @dependabot in #154 + * Bump actions/download-artifact from 2 to 3 by @dependabot in #152 + * Bump pre-commit/action from 2.0.3 to 3.0.0 by @dependabot in #151 + * Bump actions/checkout from 2 to 3 by @dependabot in #153 + * Bump actions/setup-python from 2 to 4 by @dependabot in #150 + * Add timeout unit to docstrings by @jnordberg in #148 + * Unify badges style by @DeadNews in #155 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #156 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #157 + * Check 3.11 support by @gaborbernat in #158 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #159 + * Bump dependencies by @gaborbernat in #160 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #162 + +------------------------------------------------------------------- +Fri Jun 3 15:17:25 UTC 2022 - Markéta Machová + +- Update to 3.7.1 + * Ownership moved from @benediktschmitt to the tox-dev organization + (new primary maintainer @gaborbernat) + * Raise when trying to acquire in R/O or missing folder + * Drop python 2.7, 3.5 and 3.6 support, add type hints + * Document asyncio support + * Accept path types (like pathlib.Path and pathlib.PurePath) in the + constructor for FileLock objects. + * Add correct spelling of poll interval parameter for acquire method + * Enable use as context decorator + * More changes, see upstream changelog +- Use PyPI tarball, switch to wheel for build (testsuite expects it) + +------------------------------------------------------------------- +Mon Oct 14 13:38:01 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Fri Jun 7 13:19:04 UTC 2019 - Marketa Calabkova + +- Update to 3.0.12 + * fixed python2 setup error + * fixed documentation + * other small fixes + +------------------------------------------------------------------- +Tue Mar 12 15:13:39 UTC 2019 - Tomáš Chvátal + +- Update to 3.0.10: + * No upstream changelog + +------------------------------------------------------------------- +Wed Aug 1 14:43:23 UTC 2018 - tchvatal@suse.com + +- Switch to github tarball +- Enable tests + +------------------------------------------------------------------- +Tue May 8 12:44:24 UTC 2018 - buschmann23@opensuse.org + +- initial package diff --git a/python-filelock.spec b/python-filelock.spec new file mode 100644 index 0000000..10ad1e8 --- /dev/null +++ b/python-filelock.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-filelock +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2018 Matthias Fehring +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-filelock +Version: 3.12.3 +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 hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if 0%{?python_version_nodots} < 311 +Requires: python-typing_extensions >= 4.7.1 +%endif +BuildArch: noarch +%python_subpackages + +%description +This package contains a single module, which implements a platform +independent file lock in Python, which provides a simple way of +inter-process communication. + +%prep +%setup -q -n filelock-%{version} + +%build +%pyproject_wheel + +%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 + +%changelog