Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rich/
Date: Thu, 27 Jan 2022 10:02:33
Message-Id: 1643277743.baa5a7dd3177739ed654d65c8fd2fa58be733b50.mgorny@gentoo
1 commit: baa5a7dd3177739ed654d65c8fd2fa58be733b50
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:57:21 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baa5a7dd
7
8 dev-python/rich: Switch to PEP 517 build in 10* too
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rich/rich-10.16.2-r1.ebuild | 37 ++++++++++++++++++++++++++++++++++
13 1 file changed, 37 insertions(+)
14
15 diff --git a/dev-python/rich/rich-10.16.2-r1.ebuild b/dev-python/rich/rich-10.16.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..bd629c2ce249
18 --- /dev/null
19 +++ b/dev-python/rich/rich-10.16.2-r1.ebuild
20 @@ -0,0 +1,37 @@
21 +# Copyright 2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=poetry
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +inherit distutils-r1 optfeature
29 +
30 +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal"
31 +HOMEPAGE="https://github.com/willmcgugan/rich"
32 +SRC_URI="https://github.com/willmcgugan/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="MIT"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
37 +
38 +RDEPEND="
39 + dev-python/colorama[${PYTHON_USEDEP}]
40 + dev-python/commonmark[${PYTHON_USEDEP}]
41 + dev-python/pygments[${PYTHON_USEDEP}]"
42 +
43 +distutils_enable_tests pytest
44 +
45 +python_test() {
46 + local EPYTEST_DESELECT=(
47 + # check for exact color render string, which changes across pygments bumps
48 + tests/test_syntax.py::test_python_render
49 + tests/test_syntax.py::test_python_render_simple
50 + tests/test_syntax.py::test_python_render_indent_guides
51 + )
52 + epytest -p no:pytest-qt
53 +}
54 +
55 +pkg_postinst() {
56 + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
57 +}