From 2c3fc348334c2a4f0b699dd0731a968e7c311eedda10810e20f0cdec784f18ef Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Nov 2024 15:11:56 +0000 Subject: [PATCH] - update to 3.0.0: * Completely modernized portalocker build system and added fully strict pyright and mypy compliance with ruff formatting and checking. Dropped support for deprecated Python versions, only 3.9 and up are supported now. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-portalocker?expand=0&rev=26 --- .gitattributes | 23 +++++++ .gitignore | 1 + python-portalocker.changes | 129 +++++++++++++++++++++++++++++++++++++ python-portalocker.spec | 69 ++++++++++++++++++++ v2.10.0.tar.gz | 3 + v2.10.1.tar.gz | 3 + v3.0.0.tar.gz | 3 + 7 files changed, 231 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-portalocker.changes create mode 100644 python-portalocker.spec create mode 100644 v2.10.0.tar.gz create mode 100644 v2.10.1.tar.gz create mode 100644 v3.0.0.tar.gz 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-portalocker.changes b/python-portalocker.changes new file mode 100644 index 0000000..c4d3283 --- /dev/null +++ b/python-portalocker.changes @@ -0,0 +1,129 @@ +------------------------------------------------------------------- +Wed Nov 20 15:11:44 UTC 2024 - Dirk Müller + +- update to 3.0.0: + * Completely modernized portalocker build system and added + fully strict pyright and mypy compliance with ruff formatting + and checking. Dropped support for deprecated Python versions, + only 3.9 and up are supported now. + +------------------------------------------------------------------- +Mon Aug 5 12:28:36 UTC 2024 - Dirk Müller + +- update to 2.10.1: + * fixed typo thanks to @harmstyler + +------------------------------------------------------------------- +Sun Jun 30 20:07:44 UTC 2024 - Dirk Müller + +- update to 2.10.0: + * Properly propagating exceptions for NFS read-only lock issues + and added support for being able to choose between lockf and + flock + +------------------------------------------------------------------- +Sun Jan 7 20:28:35 UTC 2024 - Dirk Müller + +- update to 2.8.2: + * Removed docs from build to fix #88 again +- update to 2.8.0: + * Added support for Python 3.11 and 3.12 + Made the package fully ruff, pyright and mypy compliant with + automated testsing using both tox and Github actions + +------------------------------------------------------------------- +Fri May 5 07:31:01 UTC 2023 - Daniel Garcia + +- Update to 2.7.0: + * Added fail_when_locked=False support to BoundedSemaphore thanks to + @flaviens +- 2.6.0: + * Added fileno() support. Fixes #80 on posix systems +- 2.5.1: + * Added clear warning when locking in non-blocking mode without + specifying either EXCLUSIVE or SHARED mode. Fixes #77 +- 2.5.0: + * Fixed shared locks on Windows and simplified locking mechanism +- 2.4.0: + * Added warning when trying to use a timeout in blocking mode. And + removed deprecated testing code and checks +- 2.3.2: + * Added semver indicator and specified needed Python release thanks + to @rayluo v2.3.2 +- 2.3.1: + * Removed Python 2 classifier thanks to @rayluo v2.3.1 +- 2.3.0: + * enabled PEP 561 compliance v2.3.0 +- 2.2.1: + * removed debug statement v2.2.1 +- 2.2.0: + * updated travis location +- 2.1.0: + * Added Redis based distributed lock which gracefully handles + connection loss and dying applications. Added full type hinting + support. Fixed bug where the file handle was not always explicitly + closed with errors +- v2.0.0: + * Removed support for old Python versions. Versions 3.5 and above + are supported. Added BoundedSemaphore class +- 1.7.1: + * removed tests from wheel file + +------------------------------------------------------------------- +Fri Apr 21 12:29:36 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:08 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Wed Jun 3 20:15:46 UTC 2020 - John Vandenberg + +- Update to v1.7.0 + * Fix ResourceWarning unclosed file if LockException is raised +- from v1.6.0 + * Fixed unlocking bug on Windows + +------------------------------------------------------------------- +Wed Mar 18 08:44:55 UTC 2020 - Marketa Calabkova + +- Update to 1.5.2 + * Allow for development setuptools + +------------------------------------------------------------------- +Tue Sep 10 13:21:44 UTC 2019 - Tomáš Chvátal + +- Update to 1.5.1: + * no upstream changelog + +------------------------------------------------------------------- +Tue Jul 23 11:18:57 UTC 2019 - Tomáš Chvátal + +- Update to 1.5.0: + * No upstream changelog +- Switch to github tarball to include tests + +------------------------------------------------------------------- +Thu Feb 14 12:13:23 UTC 2019 - Tomáš Chvátal + +- Update to 1.4.0: + * no upstream changelog +- Drop patch portalocker-1.2.1-old-Sphinx.patch + +------------------------------------------------------------------- +Fri May 18 11:27:33 UTC 2018 - jengelh@inai.de + +- Clear filler wording from description. + +------------------------------------------------------------------- +Thu May 17 12:40:14 UTC 2018 - mcepl@suse.com + +- Fix specfile name + +------------------------------------------------------------------- +Thu May 17 12:07:31 UTC 2018 - mcepl@suse.com + +- Initial packaging effort diff --git a/python-portalocker.spec b/python-portalocker.spec new file mode 100644 index 0000000..6f0f590 --- /dev/null +++ b/python-portalocker.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-portalocker +# +# Copyright (c) 2024 SUSE LLC +# +# 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-portalocker +Version: 3.0.0 +Release: 0 +Summary: Locking library for Python +License: Python-2.0 +Group: Development/Languages/Python +URL: https://github.com/WoLpH/portalocker +Source: https://github.com/WoLpH/portalocker/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 3.4.0} +BuildRequires: %{python_module setuptools >= 38.3.0} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-redis +BuildArch: noarch +%python_subpackages + +%description +Portalocker is a library to provide an API to file locking. + +On Linux and Unix systems, the locks are advisory by default. By +specifying the `-o mand` option to the mount command, it is possible +to enable mandatory file locking on Linux. This is generally not +recommended however. + +%prep +%setup -q -n portalocker-%{version} +# do not bother with benchmark and cov +rm pytest.ini + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Do not test redis, the optional dependency is not installed by +# default +%pytest --ignore portalocker_tests/test_redis.py + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/portalocker +%{python_sitelib}/portalocker-%{version}.dist-info + +%changelog diff --git a/v2.10.0.tar.gz b/v2.10.0.tar.gz new file mode 100644 index 0000000..facdd4f --- /dev/null +++ b/v2.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4d4418bf730bc19d0a4b0a0201cb3b004c59b1e1770fa3f5c4a139e0d524802 +size 34084 diff --git a/v2.10.1.tar.gz b/v2.10.1.tar.gz new file mode 100644 index 0000000..eb8d8d3 --- /dev/null +++ b/v2.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78967d066afd336baea06e2ba5e93d0ad96bf3f8dd03cb3fc0d40318154bb9cc +size 34084 diff --git a/v3.0.0.tar.gz b/v3.0.0.tar.gz new file mode 100644 index 0000000..e8998cf --- /dev/null +++ b/v3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ceeae343282a0dd6876d0cd37df8fbc2b51f91ddf10656c23aff4ffaf1cd3a8 +size 35104