SPECS: Add python-loguru

Signed-off-by: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
This commit is contained in:
Xuhai Chang
2026-03-18 14:23:36 +08:00
committed by Kiryuu Sakuya
parent 02a7f9d79f
commit 68698b0497

View File

@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname loguru
Name: python-%{srcname}
Version: 0.7.3
Release: %autorelease
Summary: Python logging made (stupidly) simple
License: MIT
URL: https://github.com/Delgan/loguru
#!RemoteAsset: sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6
Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): loguru
BuildRequires: pkgconfig(python3)
BuildRequires: pyproject-rpm-macros
BuildRequires: python3dist(pip)
BuildRequires: python3dist(flit-core)
Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}
%description
Loguru is a library which aims to bring enjoyable logging in Python. It
provides a pre-configured logger with sensible defaults and a simple API
for adding sinks, filtering, and formatting log messages.
%generate_buildrequires
%pyproject_buildrequires
%files -f %{pyproject_files}
%doc README.md
%changelog
%autochangelog