File python-concurrent-log-handler.spec of Package python-concurrent-log-handler

#
# spec file for package python-concurrent-log-handler
#
# Copyright (c) 2025 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/
#


Name:           python-concurrent-log-handler
Version:        0.9.28
Release:        0
Summary:        RotatingFileHandler replacement with concurrency, gzip and Windows support. Size and time based rotation
License:        Apache-2.0
URL:            https://github.com/Preston-Landers/concurrent-log-handler
Source:         concurrent-log-handler-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module hatchling}
BuildRequires:  %{python_module pip}
# SECTION test requirements
BuildRequires:  %{python_module portalocker >= 1.6.0}
BuildRequires:  %{python_module pytest >= 7.4}
BuildRequires:  %{python_module coverage}
BuildRequires:  %{python_module pytest-sugar}
BuildRequires:  %{python_module pytest-mock}
BuildRequires:  %{python_module pytest-cov}
# /SECTION
BuildRequires:  fdupes
Requires:       python-portalocker >= 1.6.0
BuildArch:      noarch
%python_subpackages

%description
The concurrent-log-handler package provides robust logging handlers for Python's standard `logging` package (PEP 282).
It enables multiple processes (and threads) to safely write to a single log file, with built-in support for size-based
and time-based log rotation and optional log compression.

%prep
%autosetup -p1 -n concurrent-log-handler-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pytest tests

%files %{python_files}
%license LICENSE
%{python_sitelib}/concurrent_log_handler
%{python_sitelib}/concurrent_log_handler-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by