From 5eb8dfb7570d10b0f347a30bbc8c33ee1a264974 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Fri, 19 Dec 2025 15:11:34 +0800 Subject: [PATCH] loguru: fork, python 3.14 support --- dev-python/loguru/Manifest | 1 + dev-python/loguru/loguru-0.7.3.ebuild | 46 +++++++++++++++++++++++++++ dev-python/loguru/metadata.xml | 19 +++++++++++ 3 files changed, 66 insertions(+) create mode 100644 dev-python/loguru/Manifest create mode 100644 dev-python/loguru/loguru-0.7.3.ebuild create mode 100644 dev-python/loguru/metadata.xml diff --git a/dev-python/loguru/Manifest b/dev-python/loguru/Manifest new file mode 100644 index 000000000..c72c64e9f --- /dev/null +++ b/dev-python/loguru/Manifest @@ -0,0 +1 @@ +DIST loguru-0.7.3.gh.tar.gz 459102 BLAKE2B 7d7cf167e1350814eea6a358cc00bac217ea6b153ae29ffd70c026f3be63cc126fbc184668ea643ea03416fc8f805bd51502fd8cc9e8d9bcc19099814b8c3fe6 SHA512 9bceddf7c83a14b4c62e3f48f9dc5d6957e068b4f0a8ce3e83ade0b558acd35dda86372d4c6c7abc489aebac3a3203eca56615c5973f42e15973e85894799fe7 diff --git a/dev-python/loguru/loguru-0.7.3.ebuild b/dev-python/loguru/loguru-0.7.3.ebuild new file mode 100644 index 000000000..582b68a83 --- /dev/null +++ b/dev-python/loguru/loguru-0.7.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 + +DESCRIPTION="Python logging made (stupidly) simple" +HOMEPAGE=" + https://github.com/Delgan/loguru/ + https://pypi.org/project/loguru/ +" +SRC_URI=" + https://github.com/Delgan/loguru/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + >=dev-python/colorama-0.4.6[${PYTHON_USEDEP}] + >=dev-python/freezegun-1.5.0[${PYTHON_USEDEP}] + ) +" + +# filesystem buffering tests may fail +# on tmpfs with 64k PAGESZ, but pass fine on ext4 +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # mypy + tests/test_type_hinting.py +) + +src_prepare() { + distutils-r1_src_prepare + + # neuter mypy integration + sed -i -e 's:sys.version_info >= (3, 6):False:' tests/conftest.py || die +} diff --git a/dev-python/loguru/metadata.xml b/dev-python/loguru/metadata.xml new file mode 100644 index 000000000..726516bfb --- /dev/null +++ b/dev-python/loguru/metadata.xml @@ -0,0 +1,19 @@ + + + + + python@gentoo.org + Python + + + This library is intended to make Python logging less painful + by adding a bunch of useful functionalities that solve caveats + of the standard loggers. Using logs in your application should + be an automatism, Loguru tries to make it both pleasant + and powerful. + + + Delgan/loguru + loguru + +