## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests 1 Name: python-loguru Version: 0.7.2 Release: %autorelease Summary: Python logging made (stupidly) simple License: MIT URL: https://github.com/Delgan/loguru # The GitHub archive contains CHANGELOG.rst, which the PyPI sdist lacks. Source: %{url}/archive/%{version}/loguru-%{version}.tar.gz # Test against Python 3.12 (non-dev) and 3.13 (dev) (#1079) # https://github.com/Delgan/loguru/commit/9311c763bb3528f87c3c5a13a25ec7387f2cc545 # # Fixes Python 3.13 compatibility. Patch: %{url}/commit/9311c763bb3528f87c3c5a13a25ec7387f2cc545.patch BuildArch: noarch BuildRequires: python3-devel # The dev extra pins exact versions and includes unwanted coverage tools etc. # (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters), # and developer tools, so we enumerate test dependencies manually: BuildRequires: %{py3_dist colorama} BuildRequires: %{py3_dist freezegun} BuildRequires: %{py3_dist pytest} # Normally we should not depend on typecheckers or linters, but the test that # uses mypy is simply confirming that the stub file is valid and usable. That # seems OK. Alternatively, we could pass --ignore=tests/test_type_hinting.py to # %%pytest. BuildRequires: %{py3_dist mypy} %global common_description %{expand: Loguru is a library which aims to bring enjoyable logging in Python.} %description %{common_description} %package -n python3-loguru Summary: %{summary} %description -n python3-loguru %{common_description} %prep %autosetup -n loguru-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l loguru %check %pyproject_check_import %if %{with tests} %pytest -rs %endif %files -n python3-loguru -f %{pyproject_files} %doc CHANGELOG.rst %doc README.rst %changelog ## START: Generated by rpmautospec * Sat Aug 31 2024 Benjamin A. Beasley - 0.7.2-1 - Initial package (close RHBZ#2307475) ## END: Generated by rpmautospec