loguru: fork, python 3.14 support

This commit is contained in:
Anton Bolshakov 2025-12-19 15:11:34 +08:00
parent 020e7b87c4
commit 5eb8dfb757
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST loguru-0.7.3.gh.tar.gz 459102 BLAKE2B 7d7cf167e1350814eea6a358cc00bac217ea6b153ae29ffd70c026f3be63cc126fbc184668ea643ea03416fc8f805bd51502fd8cc9e8d9bcc19099814b8c3fe6 SHA512 9bceddf7c83a14b4c62e3f48f9dc5d6957e068b4f0a8ce3e83ade0b558acd35dda86372d4c6c7abc489aebac3a3203eca56615c5973f42e15973e85894799fe7

View file

@ -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
}

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<upstream>
<remote-id type="github">Delgan/loguru</remote-id>
<remote-id type="pypi">loguru</remote-id>
</upstream>
</pkgmetadata>