From 0c313387ecf1e675cc841ce09eed16173c5340c015758f46962d0160d09a22fe Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 23 Jan 2022 23:14:21 +0000 Subject: [PATCH] Accepting request 948286 from home:mcepl:branches:devel:languages:python - Update to 7.0: - Fix spurious log messages when not breaking the lock. - Use modern package management by adopting pdm and pyproject.toml, and dropping setup.py and setup.cfg. - Build the docs with Python 3.8. - Update to version 3.0 of Sybil. - Adopt the Furo documentation theme. - Add a favicon and logos to the published documentation. - Use importlib.metadata.version() as a better way to get the package version number for the documentation. - Drop Python 3.6 support. - Update copyright years. - Remove now irrelevant patch python-flufl.lock-fix-setup.patch. OBS-URL: https://build.opensuse.org/request/show/948286 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flufl.lock?expand=0&rev=8 --- flufl.lock-6.0.tar.gz | 3 --- flufl.lock-7.0.tar.gz | 3 +++ python-flufl.lock-fix-setup.patch | 10 ---------- python-flufl.lock.changes | 17 +++++++++++++++++ python-flufl.lock.spec | 19 +++++++++++-------- 5 files changed, 31 insertions(+), 21 deletions(-) delete mode 100644 flufl.lock-6.0.tar.gz create mode 100644 flufl.lock-7.0.tar.gz delete mode 100644 python-flufl.lock-fix-setup.patch diff --git a/flufl.lock-6.0.tar.gz b/flufl.lock-6.0.tar.gz deleted file mode 100644 index f1bf3ef..0000000 --- a/flufl.lock-6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc748ee609ec864b4838ef649dbd1170fa79deb0c213c2fd51151bee6a7fc242 -size 30762 diff --git a/flufl.lock-7.0.tar.gz b/flufl.lock-7.0.tar.gz new file mode 100644 index 0000000..e05ba43 --- /dev/null +++ b/flufl.lock-7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1415f7d19d8dd96a58242e0efb90ce3cb1877fb545074ad8c1cae4cb7191fe01 +size 33169 diff --git a/python-flufl.lock-fix-setup.patch b/python-flufl.lock-fix-setup.patch deleted file mode 100644 index f4386cf..0000000 --- a/python-flufl.lock-fix-setup.patch +++ /dev/null @@ -1,10 +0,0 @@ -Index: flufl.lock-6.0/setup.cfg -=================================================================== ---- flufl.lock-6.0.orig/setup.cfg 2021-11-17 10:15:03.278762919 +0100 -+++ flufl.lock-6.0/setup.cfg 2021-11-17 10:15:21.578893997 +0100 -@@ -1,5 +1,4 @@ - [tool:pytest] --addopts = --cov=flufl --cov-report=term --cov-report=xml - testpaths = test docs - - [flake8] diff --git a/python-flufl.lock.changes b/python-flufl.lock.changes index caede36..d967e2a 100644 --- a/python-flufl.lock.changes +++ b/python-flufl.lock.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Thu Jan 20 18:33:51 UTC 2022 - Matej Cepl + +- Update to 7.0: + - Fix spurious log messages when not breaking the lock. + - Use modern package management by adopting pdm and + pyproject.toml, and dropping setup.py and setup.cfg. + - Build the docs with Python 3.8. + - Update to version 3.0 of Sybil. + - Adopt the Furo documentation theme. + - Add a favicon and logos to the published documentation. + - Use importlib.metadata.version() as a better way to get the + package version number for the documentation. + - Drop Python 3.6 support. + - Update copyright years. +- Remove now irrelevant patch python-flufl.lock-fix-setup.patch. + ------------------------------------------------------------------- Wed Nov 17 09:13:16 UTC 2021 - Andreas Schneider diff --git a/python-flufl.lock.spec b/python-flufl.lock.spec index 302a039..3538ec0 100644 --- a/python-flufl.lock.spec +++ b/python-flufl.lock.spec @@ -1,7 +1,7 @@ # # spec file for package python-flufl.lock # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-flufl.lock -Version: 6.0 +Version: 7.0 Release: 0 Summary: NFS-safe file locking with timeouts for POSIX and Windows License: Apache-2.0 -URL: https://flufllock.readthedocs.io +URL: https://gitlab.com/warsaw/flufl.lock Source: https://files.pythonhosted.org/packages/source/f/flufl.lock/flufl.lock-%{version}.tar.gz -Patch: python-flufl.lock-fix-setup.patch +BuildRequires: %{python_module pdm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing_extensions} BuildRequires: fdupes @@ -33,15 +33,16 @@ BuildRequires: python-rpm-macros Requires: python-atpublic Requires: python-psutil Requires: python-typing_extensions +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module atpublic} BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module sybil} # /SECTION -BuildArch: noarch %python_subpackages %description @@ -51,10 +52,10 @@ NFS-safe file locking with timeouts for POSIX and Windows. %autosetup -p1 -n flufl.lock-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,6 +64,8 @@ NFS-safe file locking with timeouts for POSIX and Windows. %files %{python_files} %doc README.rst docs/NEWS.rst %license LICENSE -%{python_sitelib}/* +%dir %{python_sitelib}/flufl +%{python_sitelib}/flufl/lock* +%{python_sitelib}/flufl.lock-%{version}*info %changelog