dev-python/textual: drop 0.88.1 and 3.2.0, add 6.2.1 and 5.3.0

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc
2025-10-08 19:08:39 +02:00
parent 56e53e06ed
commit 2eba4fc539
3 changed files with 42 additions and 23 deletions

View File

@@ -1,2 +1,2 @@
DIST textual-0.88.1.gh.tar.gz 29517235 BLAKE2B 457caef7957eab0b7317e94ce4dd991cf0da54c4b7c9b670089de6cb762b1fd28c1021b8be89e66947717452dcc4925ff70eb856cef470eacda6062322df2e7a SHA512 7c849dac56ca93853b36ad8c67f5544f5a071ad3b23f7753f46a6b62a1017098b40ce2be0aa526aa5a4de397ec26bb7b42a245170516e22ef297ccbc49321394
DIST textual-3.2.0.gh.tar.gz 30131889 BLAKE2B 080b32fbf1370caf4da82953212432b04d5dd2066597422f802a7b46438e1a6a7396f0270c5fa9ef974117a905439d9cbca3c15f79687689d5463014ea356dee SHA512 caea5b0373a3748ecc05f2f3747528e8a377853f0027c2337152d08e94f0dd1fe537a567ef2ab8eb6c5d15139f9a7b20deb3e95cd0653683537db8179d55cdfa
DIST textual-5.3.0.gh.tar.gz 30143229 BLAKE2B 4cdf7410efcbe4a87fd7346d3e083dfca03a3c546e598b21a3460270685b19ca7bc630c01acd8e1f132679199dab5cabdf525fb8e90fa7b6d6b4f1f5f43dba72 SHA512 df05703d7ef310a1f6e26b055550627ad6d981145d7ec215fb0abb01362c574b67701bf504ba088d4fe8c6f287942175f0e1d8a111c8424bf06acc6b65ead135
DIST textual-6.2.1.gh.tar.gz 30159422 BLAKE2B 547afbe1d1da3f0bb182b9cf8bdda7ab9d685fd44d0f2b1899e86c538946cba6c576c65a4cf3e8090a811918d47c11ce1becf720432c1e3941221ac325e75d03 SHA512 f09ccda10303c6e0ca3f90b1ad4304b0ba18bc818148b754ec5318c2d5b5358b00ac4778c645b2c4931f96f5da114c0a7456051529b2f32c452134c439ef4a72

View File

@@ -66,6 +66,9 @@ EPYTEST_DESELECT=(
tests/test_focus.py::test_focus_chain
tests/test_focus.py::test_allow_focus
tests/test_focus.py::test_focus_next_and_previous_with_type_selector_without_self
# Needs a fixture that does not exist
tests/test_progress_bar.py::test_progress_bar_width_1fr
)
distutils_enable_tests pytest
# python_test() {

View File

@@ -1,10 +1,11 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{11..13} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="
dev-python/mkdocstrings
@@ -16,7 +17,7 @@ DOCS_DEPEND="
"
DOCS_INITIALIZE_GIT=1
inherit distutils-r1 optfeature #docs
inherit distutils-r1 optfeature docs
DESCRIPTION="Modern Text User Interface framework"
HOMEPAGE="https://github.com/Textualize/textual https://pypi.org/project/textual/"
@@ -36,18 +37,13 @@ BDEPEND="
test? (
dev-python/griffe[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/platformdirs[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
=dev-python/textual-dev-1.7*[${PYTHON_USEDEP}]
)
"
# currently masked
#BDEPEND+="doc? ( dev-python/tree-sitter-languages[${PYTHON_USEDEP}] )
DEPEND="${RDEPEND}"
# PATCHES=(
# "${FILESDIR}/fix-mkdocstrings.patch"
# )
DOCS+=( CHANGELOG.md LICENSE README.md )
EPYTEST_XDIST=1
EPYTEST_DESELECT=(
@@ -57,28 +53,48 @@ EPYTEST_DESELECT=(
# Need a package that should be optional
tests/text_area/test_languages.py
# Xdist fails thoses
tests/test_focus.py::test_focus_next_and_previous
tests/test_focus.py::test_focus_next_wrap_around
tests/test_focus.py::test_focus_previous_wrap_around
tests/test_focus.py::test_wrap_around_selector
tests/test_focus.py::test_no_focus_empty_selector
tests/test_focus.py::test_focus_next_and_previous_with_type_selector
tests/test_focus.py::test_focus_next_and_previous_with_str_selector
tests/test_focus.py::test_focus_next_and_previous_with_str_selector_without_self
tests/test_focus.py::test_focus_chain
tests/test_focus.py::test_allow_focus
tests/test_focus.py::test_focus_next_and_previous_with_type_selector_without_self
# Needs a fixture that does not exist
tests/test_progress_bar.py::test_progress_bar_width_1fr
)
distutils_enable_tests pytest
python_test() {
if [[ ${EPYTHON} == python3.13 ]]; then
EPYTEST_DESELECT+=(
# See https://github.com/Textualize/textual/issues/5327
"tests/text_area"
)
epytest -m 'not syntax' tests
else
epytest tests
fi
}
# python_test() {
# if [[ ${EPYTHON} == python3.13 ]]; then
# EPYTEST_DESELECT+=(
# # See https://github.com/Textualize/textual/issues/5327
# "tests/text_area"
# # Some tests just do not work under python3.13 (more than half of those in this file)
# tests/test_focus.py
# )
# epytest -m 'not syntax' tests
# else
# epytest tests
# fi
# }
python_compile_all() {
echo "INHERIT: mkdocs-offline.yml" > "${S}/mkdocs.yml"
grep -v "\- \"*[Bb]log" "${S}/mkdocs-nav.yml" >> "${S}/mkdocs.yml"
#docs_compile
if use doc; then
DOCS+=( questions )
fi
docs_compile
rm "${S}/mkdocs.yml"
}
pkg_postinst() {
optfeature "bindings for python" dev-python/tree-sitter
#optfeature "support for all languages" dev-python/tree-sitter-languages
}