Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rich/
Date: Fri, 28 Jan 2022 18:38:56
Message-Id: 1643395122.19d30c05fe8da246e607fead9799fa4ce29d0351.arthurzam@gentoo
1 commit: 19d30c05fe8da246e607fead9799fa4ce29d0351
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 18:34:59 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 18:38:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d30c05
7
8 dev-python/rich: add 11.1.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/rich/Manifest | 1 +
13 dev-python/rich/rich-11.1.0.ebuild | 40 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest
17 index b00addec007a..440f6f1d5a12 100644
18 --- a/dev-python/rich/Manifest
19 +++ b/dev-python/rich/Manifest
20 @@ -1,2 +1,3 @@
21 DIST rich-10.16.2.tar.gz 16282443 BLAKE2B ccc7292e265770880539d6a1a6b2e819b45e2e3d4d152f1a16c56f2da74c9a472ae49ea0a4a677ad71c4dd087fade2c415484073b4b2cd86869ad7c43c32b162 SHA512 9cb8b0c8105589db22d7efdc47cbfa20531cd184f07855db4bfafb667299c7d3e520b19e3b33e7818affb7a5674805849ee9f2e770927e285ccd7f4f838982c3
22 DIST rich-11.0.0.tar.gz 16293684 BLAKE2B bd38f84a7e0623dc9474bdc369b452fc668cd4756f00f6dd1b185f95dffb3d55f6b95a7f6dfaed5ee1ec5f2d9514af6080835b9ffd010f150005b15afb761d97 SHA512 bf8218ff43a101c4624baff1ecc316eb95912d0b634c41293b44de135ea4c6ead0fa2c6a96ab1403ce4dd80961915dbe7753415a74c7d41fc1f2d227113e9ff3
23 +DIST rich-11.1.0.gh.tar.gz 16295117 BLAKE2B 1d326edea18b1eaad633665c2e50aa789f9eba19ee9b4cb50b94a160a69d12604fdf87d57ffbc903835b6e1e745fe17e0c521801b515ae73c8a44bf9ef17b6c2 SHA512 9da2015a66e0924bdd04deebd8fe8e963151d0a912f78320f8de8e61d656a693595c4feb0ce2436610602308d690ed96c8d10b5c81a9fc12a350b2e40907dbcb
24
25 diff --git a/dev-python/rich/rich-11.1.0.ebuild b/dev-python/rich/rich-11.1.0.ebuild
26 new file mode 100644
27 index 000000000000..76113d1d7315
28 --- /dev/null
29 +++ b/dev-python/rich/rich-11.1.0.ebuild
30 @@ -0,0 +1,40 @@
31 +# Copyright 2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=poetry
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +inherit distutils-r1 optfeature
39 +
40 +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal"
41 +HOMEPAGE="https://github.com/Textualize/rich"
42 +SRC_URI="
43 + https://github.com/Textualize/${PN}/archive/v${PV}.tar.gz
44 + -> ${P}.gh.tar.gz
45 +"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
50 +
51 +RDEPEND="
52 + dev-python/colorama[${PYTHON_USEDEP}]
53 + dev-python/commonmark[${PYTHON_USEDEP}]
54 + dev-python/pygments[${PYTHON_USEDEP}]"
55 +
56 +distutils_enable_tests pytest
57 +
58 +python_test() {
59 + local EPYTEST_DESELECT=(
60 + # check for exact color render string, which changes across pygments bumps
61 + tests/test_syntax.py::test_python_render
62 + tests/test_syntax.py::test_python_render_simple
63 + tests/test_syntax.py::test_python_render_indent_guides
64 + )
65 + epytest -p no:pytest-qt
66 +}
67 +
68 +pkg_postinst() {
69 + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
70 +}