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: Mon, 10 Jan 2022 04:58:17
Message-Id: 1641790683.f3d8600eddaec31ed5d500622637c35a69a91ca0.mgorny@gentoo
1 commit: f3d8600eddaec31ed5d500622637c35a69a91ca0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 10 04:52:00 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 10 04:58:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d8600e
7
8 dev-python/rich: Bump to 11.0.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rich/Manifest | 1 +
13 dev-python/rich/metadata.xml | 2 +-
14 dev-python/rich/rich-11.0.0.ebuild | 37 +++++++++++++++++++++++++++++++++++++
15 3 files changed, 39 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest
18 index 59a7fbf2208f..3f122ee70cbe 100644
19 --- a/dev-python/rich/Manifest
20 +++ b/dev-python/rich/Manifest
21 @@ -1,3 +1,4 @@
22 DIST rich-10.16.0.tar.gz 16280103 BLAKE2B af66398a4bc6e3e5503418721906679dc6f964b6dcbb56195f64d0ef4f504d9e0002f8b727c4fba7b42dda8790a03bb12a85150b99d5294712e38dea2800f841 SHA512 48c9e4d0b733cf79e9bceac284ca3cf37c14f52c0f3590f08acd9b0ea791da0200753f3cbae13a619b9c42fdb1167d55724c80123e2935bf2ed7133a15639ac8
23 DIST rich-10.16.1.tar.gz 16280385 BLAKE2B dda2e6a64f9ecfe99fdda3a2e24c6a859e25eca48ebc2af63dbea3c8b90f977e10253721e85b876165c9f51c52ceed057e77b08cf2c77c28de67b8a2c49c4617 SHA512 341aa3fdb7fe608d15c867eb50f36fcc250e041a256e4bee86f0c69e7e0f9239c84be88833dad56f05edeb09a734d64f423b9080bd13b88c3a59d958e8ff1f4c
24 DIST rich-10.16.2.tar.gz 16282443 BLAKE2B ccc7292e265770880539d6a1a6b2e819b45e2e3d4d152f1a16c56f2da74c9a472ae49ea0a4a677ad71c4dd087fade2c415484073b4b2cd86869ad7c43c32b162 SHA512 9cb8b0c8105589db22d7efdc47cbfa20531cd184f07855db4bfafb667299c7d3e520b19e3b33e7818affb7a5674805849ee9f2e770927e285ccd7f4f838982c3
25 +DIST rich-11.0.0.tar.gz 16293684 BLAKE2B bd38f84a7e0623dc9474bdc369b452fc668cd4756f00f6dd1b185f95dffb3d55f6b95a7f6dfaed5ee1ec5f2d9514af6080835b9ffd010f150005b15afb761d97 SHA512 bf8218ff43a101c4624baff1ecc316eb95912d0b634c41293b44de135ea4c6ead0fa2c6a96ab1403ce4dd80961915dbe7753415a74c7d41fc1f2d227113e9ff3
26
27 diff --git a/dev-python/rich/metadata.xml b/dev-python/rich/metadata.xml
28 index f39155ecdf42..baf8ac70a801 100644
29 --- a/dev-python/rich/metadata.xml
30 +++ b/dev-python/rich/metadata.xml
31 @@ -8,6 +8,6 @@
32 <stabilize-allarches/>
33 <upstream>
34 <remote-id type="pypi">rich</remote-id>
35 - <remote-id type="github">willmcgugan/rich</remote-id>
36 + <remote-id type="github">Textualize/rich</remote-id>
37 </upstream>
38 </pkgmetadata>
39
40 diff --git a/dev-python/rich/rich-11.0.0.ebuild b/dev-python/rich/rich-11.0.0.ebuild
41 new file mode 100644
42 index 000000000000..17a1b08bfda1
43 --- /dev/null
44 +++ b/dev-python/rich/rich-11.0.0.ebuild
45 @@ -0,0 +1,37 @@
46 +# Copyright 2022 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=8
50 +
51 +PYTHON_COMPAT=( python3_{8..10} )
52 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
53 +inherit distutils-r1 optfeature
54 +
55 +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal"
56 +HOMEPAGE="https://github.com/Textualize/rich"
57 +SRC_URI="https://github.com/Textualize/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
58 +
59 +LICENSE="MIT"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
62 +
63 +RDEPEND="
64 + dev-python/colorama[${PYTHON_USEDEP}]
65 + dev-python/commonmark[${PYTHON_USEDEP}]
66 + dev-python/pygments[${PYTHON_USEDEP}]"
67 +
68 +distutils_enable_tests pytest
69 +
70 +python_test() {
71 + local EPYTEST_DESELECT=(
72 + # check for exact color render string, which changes across pygments bumps
73 + tests/test_syntax.py::test_python_render
74 + tests/test_syntax.py::test_python_render_simple
75 + tests/test_syntax.py::test_python_render_indent_guides
76 + )
77 + epytest -p no:pytest-qt
78 +}
79 +
80 +pkg_postinst() {
81 + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
82 +}