mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
dev-python/textual: drop 8.2.3, 8.2.4
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST textual-8.2.3.gh.tar.gz 30218244 BLAKE2B 4de2f7675c5424541eb0d2652f670d71801c1639325f4df7671678a567f5edd51db1db43e6ac7d4d65d0ac872845faf93dc6cbac62bc0ae0b77cdd8f7f2b4528 SHA512 a9949612e58e8e6889c739430c1c15be05c96619bec9386691645e91f6842b422127d4a5b7d5a3dcaf0ed2015864d2338ffde7352b7394c4fdb167f9a129aadd
|
||||
DIST textual-8.2.4.gh.tar.gz 30218505 BLAKE2B 22edaad2ffd09b9991606c65cce0c69e9073c003b2bc7053a6ff7e85e2dd46571ff6f181d064b4f7ce1abc60893665f15689d62b9efbd605f212f1d8b6f5c994 SHA512 9e4292a43a3f633831c0b1ba75fac14271ea3bd997d522591a70452aeb2e9f23ef2064598014519c65428c6d5e413d2d97248d1bccbf9237aa3928d05c9722d4
|
||||
DIST textual-8.2.5.gh.tar.gz 30222909 BLAKE2B 87082ca21f86ca09e314fab9e39c47c329cf99e5e60b6a1b9724acfd793ce8086d7f9d80be493e2d7501183a9f34f43d125e66e9a53ca8ead37b76f8ac1f6f02 SHA512 dd7139423821a9167bcf82f0fbd6e852187abd29558a90a83f7cba656db97d1006602cc20b89169e7b8f81cc360214aca6ec2afe05ff1de5f3abec3ce43fe465
|
||||
DIST textual-8.2.6.gh.tar.gz 30228030 BLAKE2B 830b033d72984ac54862ea2000904f8afa986cdd8969a1ff02b5082dbd9333bfa76547deba09dbe1504e778e23cd945e1e48024f8ea7ddfa40ce9314dcb75cd0 SHA512 90ff5e12939174620cddc95d28692e90d24935a74e57b3dfc5362d6ab65ddaaca01acb2e90a621804dba8a66860b5fab7e622a8e8c74e945751d7248cc430b0e
|
||||
DIST textual-8.2.7.gh.tar.gz 30229419 BLAKE2B 801dd523c84ea6e5a35cded7ca08ef7c4913a97a266d1e9f03ce929629dd3a16d2043b469a33e567418e49a8d20e99f7ac972d506fb4f5406b9f031f8255ab7e SHA512 64cafd157feb0d92ffac4659eb0cf9be2e1863522db14464e86d9599c9fa1eebbb7ae39dcc5f3077f5f15d31cdb97599dc9f334a320eea5f83fef71d603a8041
|
||||
|
||||
@@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Modern Text User Interface framework"
|
||||
HOMEPAGE="
|
||||
https://textual.textualize.io/
|
||||
https://github.com/Textualize/textual
|
||||
https://pypi.org/project/textual/
|
||||
"
|
||||
SRC_URI="https://github.com/Textualize/textual/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/markdown-it-py-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-3.6.0[${PYTHON_USEDEP}]
|
||||
<dev-python/platformdirs-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-14.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/typing-extensions-5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
declare -A SYNTAX_LANGS=(
|
||||
["bash"]="Bash"
|
||||
["c"]="C"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["cmake"]="CMake"
|
||||
["cpp"]="C++"
|
||||
["html"]="HTML"
|
||||
["javascript"]="JavaScript"
|
||||
["json"]="JSON"
|
||||
["lua"]="Lua"
|
||||
# TODO No Python bindings in ::gentoo
|
||||
#["markdown"]="Markdown"
|
||||
["python"]="Python"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["ruby"]="Ruby"
|
||||
["rust"]="Rust"
|
||||
# TODO Many other (common) languages are neither in ::gentoo nor ::guru
|
||||
)
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/httpx[${PYTHON_USEDEP}]
|
||||
=dev-python/textual-dev-1.8*[${PYTHON_USEDEP}]
|
||||
$(printf " dev-libs/tree-sitter-%s[python,${PYTHON_USEDEP}]" "${!SYNTAX_LANGS[@]}")
|
||||
)
|
||||
"
|
||||
|
||||
DOCS+=( {CHANGELOG,README}.md )
|
||||
|
||||
EPYTEST_PLUGINS=(
|
||||
syrupy
|
||||
pytest-{asyncio,textual-snapshot}
|
||||
)
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Require unavailable tree-sitter-*[python] grammar packages (v8.1.1)
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[markdown]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[toml]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[yaml]"
|
||||
"tests/text_area/test_languages.py::test_setting_builtin_language_via_constructor" # markdown
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[css]"
|
||||
"tests/text_area/test_languages.py::test_setting_builtin_language_via_attribute" # markdown
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[go]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[regex]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[sql]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[java]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[xml]"
|
||||
|
||||
# These tests do not render correctly per visual inspection of snapshot_report.html (v8.1.1)
|
||||
# TODO Investigate/ask upstream
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_width"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_min_width"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_deferred_render_expand"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_welcome"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_wrapping_and_folding"
|
||||
|
||||
# Likely missed in this PR: (v8.1.1)
|
||||
# https://github.com/Textualize/textual/pull/6410#issuecomment-4135017177
|
||||
"tests/test_arrange.py::test_arrange_dock_left"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
# Tests use @pytest.mark.xdist_group
|
||||
epytest --dist loadgroup
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Install additional packages for syntax highlighting:"
|
||||
|
||||
local lang
|
||||
for lang in "${!SYNTAX_LANGS[@]}"; do
|
||||
optfeature "${SYNTAX_LANGS[${lang}]}" "dev-libs/tree-sitter-${lang}[python]"
|
||||
done
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Modern Text User Interface framework"
|
||||
HOMEPAGE="
|
||||
https://textual.textualize.io/
|
||||
https://github.com/Textualize/textual
|
||||
https://pypi.org/project/textual/
|
||||
"
|
||||
SRC_URI="https://github.com/Textualize/textual/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/markdown-it-py-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-3.6.0[${PYTHON_USEDEP}]
|
||||
<dev-python/platformdirs-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-14.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/typing-extensions-5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
declare -A SYNTAX_LANGS=(
|
||||
["bash"]="Bash"
|
||||
["c"]="C"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["cmake"]="CMake"
|
||||
["cpp"]="C++"
|
||||
["html"]="HTML"
|
||||
["javascript"]="JavaScript"
|
||||
["json"]="JSON"
|
||||
["lua"]="Lua"
|
||||
# TODO No Python bindings in ::gentoo
|
||||
#["markdown"]="Markdown"
|
||||
["python"]="Python"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["ruby"]="Ruby"
|
||||
["rust"]="Rust"
|
||||
# TODO Many other (common) languages are neither in ::gentoo nor ::guru
|
||||
)
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/httpx[${PYTHON_USEDEP}]
|
||||
=dev-python/textual-dev-1.8*[${PYTHON_USEDEP}]
|
||||
$(printf " dev-libs/tree-sitter-%s[python,${PYTHON_USEDEP}]" "${!SYNTAX_LANGS[@]}")
|
||||
)
|
||||
"
|
||||
|
||||
DOCS+=( {CHANGELOG,README}.md )
|
||||
|
||||
EPYTEST_PLUGINS=(
|
||||
syrupy
|
||||
pytest-{asyncio,textual-snapshot}
|
||||
)
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Require unavailable tree-sitter-*[python] grammar packages (v8.1.1)
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[markdown]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[toml]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[yaml]"
|
||||
"tests/text_area/test_languages.py::test_setting_builtin_language_via_constructor" # markdown
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[css]"
|
||||
"tests/text_area/test_languages.py::test_setting_builtin_language_via_attribute" # markdown
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[go]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[regex]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[sql]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[java]"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_language_rendering[xml]"
|
||||
|
||||
# These tests do not render correctly per visual inspection of snapshot_report.html (v8.1.1)
|
||||
# TODO Investigate/ask upstream
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_width"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_min_width"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_richlog_deferred_render_expand"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_welcome"
|
||||
"tests/snapshot_tests/test_snapshots.py::test_text_area_wrapping_and_folding"
|
||||
|
||||
# Likely missed in this PR: (v8.1.1)
|
||||
# https://github.com/Textualize/textual/pull/6410#issuecomment-4135017177
|
||||
"tests/test_arrange.py::test_arrange_dock_left"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
# Tests use @pytest.mark.xdist_group
|
||||
epytest --dist loadgroup
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Install additional packages for syntax highlighting:"
|
||||
|
||||
local lang
|
||||
for lang in "${!SYNTAX_LANGS[@]}"; do
|
||||
optfeature "${SYNTAX_LANGS[${lang}]}" "dev-libs/tree-sitter-${lang}[python]"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user