commit:     fe4e8215985e57c11cb57f54c4946b4d2e04caf5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  9 08:59:11 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  9 09:08:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4e8215

dev-python/rich: Bump to 11.2.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rich/Manifest                      |  1 +
 dev-python/rich/files/rich-11.1.0-pypy3.patch | 37 ----------------------
 dev-python/rich/rich-11.2.0.ebuild            | 45 +++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 37 deletions(-)

diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest
index 440f6f1d5a12..145720093c8a 100644
--- a/dev-python/rich/Manifest
+++ b/dev-python/rich/Manifest
@@ -1,3 +1,4 @@
 DIST rich-10.16.2.tar.gz 16282443 BLAKE2B 
ccc7292e265770880539d6a1a6b2e819b45e2e3d4d152f1a16c56f2da74c9a472ae49ea0a4a677ad71c4dd087fade2c415484073b4b2cd86869ad7c43c32b162
 SHA512 
9cb8b0c8105589db22d7efdc47cbfa20531cd184f07855db4bfafb667299c7d3e520b19e3b33e7818affb7a5674805849ee9f2e770927e285ccd7f4f838982c3
 DIST rich-11.0.0.tar.gz 16293684 BLAKE2B 
bd38f84a7e0623dc9474bdc369b452fc668cd4756f00f6dd1b185f95dffb3d55f6b95a7f6dfaed5ee1ec5f2d9514af6080835b9ffd010f150005b15afb761d97
 SHA512 
bf8218ff43a101c4624baff1ecc316eb95912d0b634c41293b44de135ea4c6ead0fa2c6a96ab1403ce4dd80961915dbe7753415a74c7d41fc1f2d227113e9ff3
 DIST rich-11.1.0.gh.tar.gz 16295117 BLAKE2B 
1d326edea18b1eaad633665c2e50aa789f9eba19ee9b4cb50b94a160a69d12604fdf87d57ffbc903835b6e1e745fe17e0c521801b515ae73c8a44bf9ef17b6c2
 SHA512 
9da2015a66e0924bdd04deebd8fe8e963151d0a912f78320f8de8e61d656a693595c4feb0ce2436610602308d690ed96c8d10b5c81a9fc12a350b2e40907dbcb
+DIST rich-11.2.0.gh.tar.gz 16300346 BLAKE2B 
520f512a7e26613a4cc881834f8c150963b84a6dc3a43029dde6d64d1e405d82422b9c6f0098293b6f9bdb55749c7929426dad14840c9a287889c1a6a70f6bf2
 SHA512 
ec1178a6a320a48f589ead5163e974725f79ae63ddf9a2deb66400e43619ade8d366dbef6b524e66e603647a957b8e26266845a0bcb85912fd9ad2a81dd92f5e

diff --git a/dev-python/rich/files/rich-11.1.0-pypy3.patch 
b/dev-python/rich/files/rich-11.1.0-pypy3.patch
index 09a7f8022e26..e1ff1f3496d0 100644
--- a/dev-python/rich/files/rich-11.1.0-pypy3.patch
+++ b/dev-python/rich/files/rich-11.1.0-pypy3.patch
@@ -11,30 +11,6 @@ to fix test failure on PyPy3.
  tests/test_syntax.py | 2 +-
  3 files changed, 6 insertions(+), 1 deletion(-)
 
-diff --git a/CHANGELOG.md b/CHANGELOG.md
-index 4997ae3..17f3028 100644
---- a/CHANGELOG.md
-+++ b/CHANGELOG.md
-@@ -11,6 +11,10 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
- 
- - Add support for US spelling of "gray" in ANSI color names 
https://github.com/Textualize/rich/issues/1890
- 
-+### Fixed
-+
-+- Fixed `test_syntax.py::test_from_path_lexer_override` test failure on PyPy3 
https://github.com/Textualize/rich/pull/1904
-+
- ## [11.1.0] - 2022-01-28
- 
- ### Added
-diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
-index c29cd79..06e0618 100644
---- a/CONTRIBUTORS.md
-+++ b/CONTRIBUTORS.md
-@@ -27,3 +27,4 @@ The following people have contributed to the development of 
Rich:
- - [Nicolas Simonds](https://github.com/0xDEC0DE)
- - [Gabriele N. Tornetta](https://github.com/p403n1x87)
- - [Patrick Arminio](https://github.com/patrick91)
-+- [Michał Górny](https://github.com/mgorny)
 diff --git a/tests/test_syntax.py b/tests/test_syntax.py
 index 46d0126..e5d904f 100644
 --- a/tests/test_syntax.py
@@ -63,19 +39,6 @@ to be skipped appropriately.
  tests/test_inspect.py | 9 +++++++++
  2 files changed, 10 insertions(+), 1 deletion(-)
 
-diff --git a/CHANGELOG.md b/CHANGELOG.md
-index 17f3028..1a75bf3 100644
---- a/CHANGELOG.md
-+++ b/CHANGELOG.md
-@@ -13,7 +13,7 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
- 
- ### Fixed
- 
--- Fixed `test_syntax.py::test_from_path_lexer_override` test failure on PyPy3 
https://github.com/Textualize/rich/pull/1904
-+- Fixed test failures on PyPy3 https://github.com/Textualize/rich/pull/1904
- 
- ## [11.1.0] - 2022-01-28
- 
 diff --git a/tests/test_inspect.py b/tests/test_inspect.py
 index 63c5f06..b4c1d2a 100644
 --- a/tests/test_inspect.py

diff --git a/dev-python/rich/rich-11.2.0.ebuild 
b/dev-python/rich/rich-11.2.0.ebuild
new file mode 100644
index 000000000000..96cdf74b9e78
--- /dev/null
+++ b/dev-python/rich/rich-11.2.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Python library for renrering rich text, tables, etc. to the 
terminal"
+HOMEPAGE="https://github.com/Textualize/rich";
+SRC_URI="
+       https://github.com/Textualize/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+       dev-python/colorama[${PYTHON_USEDEP}]
+       dev-python/commonmark[${PYTHON_USEDEP}]
+       dev-python/pygments[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+       "${FILESDIR}"/rich-11.1.0-pypy3.patch
+)
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # check for exact color render string, which changes across 
pygments bumps
+               tests/test_syntax.py::test_python_render
+               tests/test_syntax.py::test_python_render_simple
+               tests/test_syntax.py::test_python_render_indent_guides
+       )
+       epytest -p no:pytest-qt
+}
+
+pkg_postinst() {
+       optfeature "integration with HTML widgets for Jupyter" 
dev-python/ipywidgets
+}

Reply via email to