summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/coloredlogs')
-rw-r--r--dev-python/coloredlogs/Manifest2
-rw-r--r--dev-python/coloredlogs/coloredlogs-15.0.1-r1.ebuild (renamed from dev-python/coloredlogs/coloredlogs-14.0.ebuild)32
-rw-r--r--dev-python/coloredlogs/metadata.xml2
3 files changed, 17 insertions, 19 deletions
diff --git a/dev-python/coloredlogs/Manifest b/dev-python/coloredlogs/Manifest
index 33c860803bc3..db81430ab4ea 100644
--- a/dev-python/coloredlogs/Manifest
+++ b/dev-python/coloredlogs/Manifest
@@ -1 +1 @@
-DIST coloredlogs-14.0.tar.gz 275863 BLAKE2B 0a8c026220955397378ad2b43a69c89c5710a09e2d9ed81a3f25408c60e171f4b8f78239696a0bc1b51fc3dd9bfca80df63e1f1d7afb6bee0046209a089e0d6d SHA512 3434a95f3216d19af5d7a48324e5afd5e975f92d9f6b99f40df2c0a635f1738e0bc6d7277a549a42a0fec5a8601f82908c4b0205ceeb3666f49210f66fe58671
+DIST coloredlogs-15.0.1.tar.gz 278520 BLAKE2B 446aea9adfc8a1ea7f2e5b4a0279d124a3e174feec4a6d9346059fa00fbcb2717d6480392051cc44f0c1f66e022cfc03238acae59b9496e9f70695d99143dfd6 SHA512 577af26af8d27bca3f10e6aaa257245aba608cc3832985ba57bcb2b590b10bf054796a2210749c15ee1b1a17623e007e4ac3ba17bed6af95544f85f5dfafaf21
diff --git a/dev-python/coloredlogs/coloredlogs-14.0.ebuild b/dev-python/coloredlogs/coloredlogs-15.0.1-r1.ebuild
index 89c3d911e9f4..a7f88b2d71c3 100644
--- a/dev-python/coloredlogs/coloredlogs-14.0.ebuild
+++ b/dev-python/coloredlogs/coloredlogs-15.0.1-r1.ebuild
@@ -1,13 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( pypy3 python3_{6..9} )
-
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
-inherit distutils-r1
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
DESCRIPTION="Colored stream handler for the logging module"
HOMEPAGE="
@@ -15,13 +13,13 @@ HOMEPAGE="
https://github.com/xolox/python-coloredlogs
https://coloredlogs.readthedocs.io/en/latest/
"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
-RDEPEND="dev-python/humanfriendly[${PYTHON_USEDEP}]"
+RDEPEND="
+ >=dev-python/humanfriendly-9.1[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/capturer[${PYTHON_USEDEP}]
@@ -31,16 +29,16 @@ BDEPEND="
)
"
-PATCHES=( "${FILESDIR}/${P}-fix-install-prefix.patch" )
+PATCHES=( "${FILESDIR}/coloredlogs-14.0-fix-install-prefix.patch" )
distutils_enable_sphinx docs
distutils_enable_tests pytest
-python_test() {
- # test_cli_conversion requires the package to be installed
- distutils_install_for_testing
+EPYTEST_DESELECT=(
# test_auto_install fails because the pth file isn't being loaded
- pytest -vv ${PN}/tests.py \
- --deselect ${PN}/tests.py::ColoredLogsTestCase::test_auto_install \
- || die "Tests fail with ${EPYTHON}"
+ coloredlogs/tests.py::ColoredLogsTestCase::test_auto_install
+)
+
+python_test() {
+ epytest coloredlogs/tests.py
}
diff --git a/dev-python/coloredlogs/metadata.xml b/dev-python/coloredlogs/metadata.xml
index 42593b5baca9..4a1738b9498b 100644
--- a/dev-python/coloredlogs/metadata.xml
+++ b/dev-python/coloredlogs/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>