forked from pool/python-flufl.lock
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user