From 24fab197189909152a7412f83c4897bac190320de1cdad4cab18286be53af329 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 03:47:17 +0000 Subject: [PATCH] - Switch to pyproject macros. - Run the testsuite in the buildroot. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zc.lockfile?expand=0&rev=14 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-zc.lockfile.changes | 93 ++++++++++++++++++++++++++++++++++++ python-zc.lockfile.spec | 83 ++++++++++++++++++++++++++++++++ zc.lockfile-3.0.post1.tar.gz | 3 ++ 5 files changed, 203 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-zc.lockfile.changes create mode 100644 python-zc.lockfile.spec create mode 100644 zc.lockfile-3.0.post1.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-zc.lockfile.changes b/python-zc.lockfile.changes new file mode 100644 index 0000000..4104707 --- /dev/null +++ b/python-zc.lockfile.changes @@ -0,0 +1,93 @@ +------------------------------------------------------------------- +Fri Jun 6 03:08:08 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Run the testsuite in the buildroot. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Fri Dec 29 08:59:15 UTC 2023 - Dirk Müller + +- update to 3.0.post1: + * Add ``python_requires`` to ``setup.py`` to prevent installing + on not supported old Python versions. + * Add support for Python 3.9, 3.10, 3.11. + * Drop support for Python 2.7, 3.5, 3.6. + * Drop support for deprecated ``python setup.py test``. + +------------------------------------------------------------------- +Sat Jun 10 09:15:59 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Sep 23 09:53:37 UTC 2021 - pgajdos@suse.com + +- %check: do not use python setup.py test + +------------------------------------------------------------------- +Mon Aug 12 10:35:36 UTC 2019 - Marketa Calabkova + +- update to version 2.0 + * Extracted new SimpleLockFile that removes implicit behavior + writing to the lock file, and instead allows a subclass to + define that behavior. + * SimpleLockFile and thus LockFile are now new-style classes. Any + clients relying on LockFile being an old-style class will need + to be adapted. + * Drop support for Python 3.4. + * Add support for Python 3.8b3. + +------------------------------------------------------------------- +Tue Apr 9 11:06:01 UTC 2019 - Marketa Calabkova + +- update to version 1.4 + * Claim support for Python 3.4, 3.5, 3.6 and 3.7. + * Drop Python 2.6, 3.2 and 3.3. + * Stop logging failure to acquire locks. Clients can do that if + they wish. + +------------------------------------------------------------------- +Sat Jun 24 10:53:56 UTC 2017 - aloisio@gmx.com + +- Update to 1.2.1 + * Fixed: unlocking and locking didn’t work when a + multiprocessing process was running (and presumably other + conditions). + 1.2.0: + * Added the ability to include the hostname in the lock file + content. + * Code and ReST markup cosmetics. [alecghica] + +- Converted to single-spec + +------------------------------------------------------------------- +Sat Aug 3 17:36:14 UTC 2013 - hpj@urpla.net + +- Update to 1.1.0 version: + * Added Trove classifiers and made setup.py zest.releaser friendly. + * Added Python 3.2, 3.3 and PyPy 1.9 support. + * Removed Python 2.4 and Python 2.5 support. + +- renamed to python-zc.lockfile +- enable testing +- improve doc and packaging + +------------------------------------------------------------------- +Mon Jan 14 14:45:30 UTC 2013 - p.drouand@gmail.com + +- Update to 1.0.2 version: + * Fixed: the fix included in 1.0.1 caused multiple pids to be written + to the lock file +- Clean the specfile by removing redundant and useless tags + +------------------------------------------------------------------- +Wed Nov 10 12:49:38 UTC 2010 - coolo@novell.com + +- fix file list + +------------------------------------------------------------------- +Wed Jun 2 14:14:44 UTC 2010 - hvogel@novell.com + +- Initial Package, Version 1.0.0 + diff --git a/python-zc.lockfile.spec b/python-zc.lockfile.spec new file mode 100644 index 0000000..9d3913b --- /dev/null +++ b/python-zc.lockfile.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-zc.lockfile +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2013 LISA GmbH, Bingen, Germany. +# +# 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-zc.lockfile +Version: 3.0.post1 +Release: 0 +Summary: Basic inter-process locks +License: ZPL-2.1 +URL: https://pypi.python.org/pypi/zc.lockfile +Source: https://files.pythonhosted.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module zope.testing} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if 0%{?suse_version} <= 1500 +BuildRequires: python2-mock +%endif +Provides: python-zc-lockfile = %{version} +Obsoletes: python-zc-lockfile < %{version} +Requires: python-setuptools +BuildArch: noarch +%python_subpackages + +%description +The zc.lockfile package provides a basic portable implementation of +interprocess locks using lock files. The purpose if not specifically to lock +files, but to simply provide locks with an implementation based on file-locking +primitives. Of course, these locks could be used to mediate access to other +files. For example, the ZODB file storage implementation uses file locks to +mediate access to file-storage database files. The database files and lock file +files are separate files. + +%prep +%setup -q -n zc.lockfile-%{version} +rm -rf src/zc.lockfile.egg-info +find -name *~ -delete + +%build +%pyproject_wheel + +%install +%pyproject_install +# concatenate both README.txt +cat %{buildroot}%{python_sitelib}/zc/lockfile/README.txt >> README.txt +rm %{buildroot}%{python_sitelib}/zc/lockfile/README.txt +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +touch %{buildroot}%{$python_sitelib}/zc/__init__.py +$python -B -m unittest -v zc.lockfile.tests +$python -B -m doctest -v src/zc/lockfile/README.txt +rm %{buildroot}%{$python_sitelib}/zc/__init__.py +} + +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst COPYRIGHT.txt README.txt +%dir %{python_sitelib}/zc +%{python_sitelib}/zc/lockfile +%{python_sitelib}/zc.lockfile-%{version}-py*-nspkg.pth +%{python_sitelib}/zc[._]lockfile-%{version}.dist-info + +%changelog diff --git a/zc.lockfile-3.0.post1.tar.gz b/zc.lockfile-3.0.post1.tar.gz new file mode 100644 index 0000000..a07fbba --- /dev/null +++ b/zc.lockfile-3.0.post1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adb2ee6d9e6a2333c91178dcb2c9b96a5744c78edb7712dc784a7d75648e81ec +size 10190