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/files/, dev-python/rich/
Date: Wed, 09 Feb 2022 09:39:45
Message-Id: 1644397682.fe4e8215985e57c11cb57f54c4946b4d2e04caf5.mgorny@gentoo
1 commit: fe4e8215985e57c11cb57f54c4946b4d2e04caf5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 9 08:59:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 09:08:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4e8215
7
8 dev-python/rich: Bump to 11.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rich/Manifest | 1 +
13 dev-python/rich/files/rich-11.1.0-pypy3.patch | 37 ----------------------
14 dev-python/rich/rich-11.2.0.ebuild | 45 +++++++++++++++++++++++++++
15 3 files changed, 46 insertions(+), 37 deletions(-)
16
17 diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest
18 index 440f6f1d5a12..145720093c8a 100644
19 --- a/dev-python/rich/Manifest
20 +++ b/dev-python/rich/Manifest
21 @@ -1,3 +1,4 @@
22 DIST rich-10.16.2.tar.gz 16282443 BLAKE2B ccc7292e265770880539d6a1a6b2e819b45e2e3d4d152f1a16c56f2da74c9a472ae49ea0a4a677ad71c4dd087fade2c415484073b4b2cd86869ad7c43c32b162 SHA512 9cb8b0c8105589db22d7efdc47cbfa20531cd184f07855db4bfafb667299c7d3e520b19e3b33e7818affb7a5674805849ee9f2e770927e285ccd7f4f838982c3
23 DIST rich-11.0.0.tar.gz 16293684 BLAKE2B bd38f84a7e0623dc9474bdc369b452fc668cd4756f00f6dd1b185f95dffb3d55f6b95a7f6dfaed5ee1ec5f2d9514af6080835b9ffd010f150005b15afb761d97 SHA512 bf8218ff43a101c4624baff1ecc316eb95912d0b634c41293b44de135ea4c6ead0fa2c6a96ab1403ce4dd80961915dbe7753415a74c7d41fc1f2d227113e9ff3
24 DIST rich-11.1.0.gh.tar.gz 16295117 BLAKE2B 1d326edea18b1eaad633665c2e50aa789f9eba19ee9b4cb50b94a160a69d12604fdf87d57ffbc903835b6e1e745fe17e0c521801b515ae73c8a44bf9ef17b6c2 SHA512 9da2015a66e0924bdd04deebd8fe8e963151d0a912f78320f8de8e61d656a693595c4feb0ce2436610602308d690ed96c8d10b5c81a9fc12a350b2e40907dbcb
25 +DIST rich-11.2.0.gh.tar.gz 16300346 BLAKE2B 520f512a7e26613a4cc881834f8c150963b84a6dc3a43029dde6d64d1e405d82422b9c6f0098293b6f9bdb55749c7929426dad14840c9a287889c1a6a70f6bf2 SHA512 ec1178a6a320a48f589ead5163e974725f79ae63ddf9a2deb66400e43619ade8d366dbef6b524e66e603647a957b8e26266845a0bcb85912fd9ad2a81dd92f5e
26
27 diff --git a/dev-python/rich/files/rich-11.1.0-pypy3.patch b/dev-python/rich/files/rich-11.1.0-pypy3.patch
28 index 09a7f8022e26..e1ff1f3496d0 100644
29 --- a/dev-python/rich/files/rich-11.1.0-pypy3.patch
30 +++ b/dev-python/rich/files/rich-11.1.0-pypy3.patch
31 @@ -11,30 +11,6 @@ to fix test failure on PyPy3.
32 tests/test_syntax.py | 2 +-
33 3 files changed, 6 insertions(+), 1 deletion(-)
34
35 -diff --git a/CHANGELOG.md b/CHANGELOG.md
36 -index 4997ae3..17f3028 100644
37 ---- a/CHANGELOG.md
38 -+++ b/CHANGELOG.md
39 -@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40 -
41 - - Add support for US spelling of "gray" in ANSI color names https://github.com/Textualize/rich/issues/1890
42 -
43 -+### Fixed
44 -+
45 -+- Fixed `test_syntax.py::test_from_path_lexer_override` test failure on PyPy3 https://github.com/Textualize/rich/pull/1904
46 -+
47 - ## [11.1.0] - 2022-01-28
48 -
49 - ### Added
50 -diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
51 -index c29cd79..06e0618 100644
52 ---- a/CONTRIBUTORS.md
53 -+++ b/CONTRIBUTORS.md
54 -@@ -27,3 +27,4 @@ The following people have contributed to the development of Rich:
55 - - [Nicolas Simonds](https://github.com/0xDEC0DE)
56 - - [Gabriele N. Tornetta](https://github.com/p403n1x87)
57 - - [Patrick Arminio](https://github.com/patrick91)
58 -+- [Michał Górny](https://github.com/mgorny)
59 diff --git a/tests/test_syntax.py b/tests/test_syntax.py
60 index 46d0126..e5d904f 100644
61 --- a/tests/test_syntax.py
62 @@ -63,19 +39,6 @@ to be skipped appropriately.
63 tests/test_inspect.py | 9 +++++++++
64 2 files changed, 10 insertions(+), 1 deletion(-)
65
66 -diff --git a/CHANGELOG.md b/CHANGELOG.md
67 -index 17f3028..1a75bf3 100644
68 ---- a/CHANGELOG.md
69 -+++ b/CHANGELOG.md
70 -@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
71 -
72 - ### Fixed
73 -
74 --- Fixed `test_syntax.py::test_from_path_lexer_override` test failure on PyPy3 https://github.com/Textualize/rich/pull/1904
75 -+- Fixed test failures on PyPy3 https://github.com/Textualize/rich/pull/1904
76 -
77 - ## [11.1.0] - 2022-01-28
78 -
79 diff --git a/tests/test_inspect.py b/tests/test_inspect.py
80 index 63c5f06..b4c1d2a 100644
81 --- a/tests/test_inspect.py
82
83 diff --git a/dev-python/rich/rich-11.2.0.ebuild b/dev-python/rich/rich-11.2.0.ebuild
84 new file mode 100644
85 index 000000000000..96cdf74b9e78
86 --- /dev/null
87 +++ b/dev-python/rich/rich-11.2.0.ebuild
88 @@ -0,0 +1,45 @@
89 +# Copyright 2022 Gentoo Authors
90 +# Distributed under the terms of the GNU General Public License v2
91 +
92 +EAPI=8
93 +
94 +DISTUTILS_USE_PEP517=poetry
95 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
96 +
97 +inherit distutils-r1 optfeature
98 +
99 +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal"
100 +HOMEPAGE="https://github.com/Textualize/rich"
101 +SRC_URI="
102 + https://github.com/Textualize/${PN}/archive/v${PV}.tar.gz
103 + -> ${P}.gh.tar.gz
104 +"
105 +
106 +LICENSE="MIT"
107 +SLOT="0"
108 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
109 +
110 +RDEPEND="
111 + dev-python/colorama[${PYTHON_USEDEP}]
112 + dev-python/commonmark[${PYTHON_USEDEP}]
113 + dev-python/pygments[${PYTHON_USEDEP}]"
114 +
115 +distutils_enable_tests pytest
116 +
117 +PATCHES=(
118 + "${FILESDIR}"/rich-11.1.0-pypy3.patch
119 +)
120 +
121 +python_test() {
122 + local EPYTEST_DESELECT=(
123 + # check for exact color render string, which changes across pygments bumps
124 + tests/test_syntax.py::test_python_render
125 + tests/test_syntax.py::test_python_render_simple
126 + tests/test_syntax.py::test_python_render_indent_guides
127 + )
128 + epytest -p no:pytest-qt
129 +}
130 +
131 +pkg_postinst() {
132 + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
133 +}