Пакет python3-module-loguru: Specfile

%define _unpackaged_files_terminate_build 1
%define pypi_name loguru
%def_with check

Name: python3-module-%pypi_name
Version: 0.6.0
Release: alt1.gitc926fd0
Summary: Python logging made (stupidly) simple
License: MIT
Group: Development/Python3
Url: https://github.com/Delgan/loguru
Source: %name-%version.tar

BuildArch: noarch
ExcludeArch: ppc64le

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)

%if_with check
BuildRequires: python3(colorama)
BuildRequires: python3(freezegun)
BuildRequires: python3(mypy)
%endif

%description
Loguru is a library which aims to bring enjoyable logging in Python.

%prep
%setup

%build
%pyproject_build

%install
%pyproject_install

%check
%tox_create_default_config
%tox_check_pyproject

%files
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}

%changelog
* Sun Mar 05 2023 Alexander Makeenkov <amakeenk@altlinux.org> 0.6.0-alt1.gitc926fd0
- Initial build for ALT