14
0

- Add patch use-logging-lock-directly.patch:

* Use logging._lock as a context manager.
- Switch to autosetup macro.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logutils?expand=0&rev=17
This commit is contained in:
2024-09-10 03:08:41 +00:00
committed by Git OBS Bridge
parent a2d8452bfa
commit 24b9fa9ee3
3 changed files with 76 additions and 5 deletions

View File

@@ -21,14 +21,15 @@ Version: 0.3.5
Release: 0
Summary: Logging utilities
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://logutils.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz
Patch0: sphinx4.patch
# PATCH-FIX-UPSTREAM logutils-pr1-fix-testasserts-py3.12.patch https://bitbucket.org/vinay.sajip/logutils/pull-requests/1
Patch1: https://bitbucket.org/hugovk/logutils/commits/0a3af211128567c437e68261a02591ffe2682d95/raw#/logutils-pr1-fix-testasserts-py3.12.patch
# PATCH-FIX-UPSTREA logutils-intersphinx.patch
# PATCH-FIX-UPSTREAM logutils-intersphinx.patch
Patch2: logutils-intersphinx.patch
# PATCH-FIX-OPENSUSE Use logging._lock as a context manager directly
Patch3: use-logging-lock-directly.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module redis}
BuildRequires: %{python_module setuptools}
@@ -51,7 +52,6 @@ of Python and so are packaged here.
%package -n python-logutils-doc
Summary: Documentation for %{name}
Group: Documentation/Other
Provides: %{python_module logutils-doc = %{version}}
%description -n python-logutils-doc
@@ -66,8 +66,7 @@ of Python and so are packaged here.
This package contains the documentation.
%prep
%setup -q -n logutils-%{version}
%autopatch -p1
%autosetup -p1 -n logutils-%{version}
%build
%pyproject_wheel