dev-python/rich: new package, add 12.6.0
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
181706471a
commit
541d8e8627
|
@ -0,0 +1,3 @@
|
|||
DIST rich-12.6.0.gh.tar.gz 15056457 BLAKE2B 58367ef0acb61d68931ea0394ea458e29b3bb59726c6b95d4b179553183c5cef2766484e0d040203181aad927add70198fb3483bfe6113e20851db141de3a867 SHA512 e05a0ad1d6b4f1e4f7e5e3d09c70d5892a618707ae0952e34274c5ffb18a833fe85a4ac15024cc34915515b63059c02f0df32a6c97cbe91e9ac96928c7134fb0
|
||||
EBUILD rich-12.6.0.ebuild 1499 BLAKE2B 9eac0269e6dc431879e498d9d396978cb3753d59a2d6939ac02e5bae610f39fab9159b87ba5fb7b221a8d8925ab64fedba36471e1274506391f0b7472b0639ac SHA512 9f57d004e0860eb1b1616bb317d15b898b2da717f8b2b2629f430e80d3caafbb07c8e7c922e8370feb45261b1ef5deb25747e56759020fb683beeea36ef61901
|
||||
MISC metadata.xml 507 BLAKE2B 385a08047e2b81bdf8e68f607e5416d94536dbde2a17d68d235343aa6abe06a6e3a3b59d496503c9e6e816c34184294576a6e098746d53f0020b7b082f3f2b6a SHA512 2edb01b89895d7a0b63dca4766d52ddab56c2b21f4b15151f81175e8f8b2e6b3d6f67b8884013b8be0da9987a2adc2a547ae3ec1a377fa2d5b00361290cc7fad
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">rich</remote-id>
|
||||
<remote-id type="github">Textualize/rich</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>willmcgugan@gmail.com</email>
|
||||
<name>Will McGugan</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Python library for rendering rich text, tables, etc. to the terminal"
|
||||
HOMEPAGE="
|
||||
https://github.com/Textualize/rich/
|
||||
https://pypi.org/project/rich/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/Textualize/rich/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
' 3.8)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local -x COLUMNS=80
|
||||
local EPYTEST_DESELECT=(
|
||||
# broken with >=dev-python/pygments-2.12.0
|
||||
tests/test_console.py::test_size_can_fall_back_to_std_descriptors
|
||||
tests/test_inspect.py::test_inspect_integer_with_methods_python38_and_python39
|
||||
)
|
||||
[[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
|
||||
# the usual deal: output changes that cause test mismatches
|
||||
tests/test_inspect.py::test_inspect_text
|
||||
tests/test_inspect.py::test_inspect_builtin_function
|
||||
tests/test_inspect.py::test_inspect_integer_with_methods
|
||||
tests/test_log.py::test_log
|
||||
tests/test_pretty.py::test_attrs_broken
|
||||
)
|
||||
epytest -p no:pytest-qt
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
|
||||
}
|
Loading…
Reference in New Issue