commit: 75acddcae5efa739cd4e3ce7b310d8a39c412b50
Author: dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Fri Oct 31 08:38:28 2025 +0000
Commit: dsaf <ghostyn678+git <AT> gmail <DOT> com>
CommitDate: Fri Oct 31 08:38:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=75acddca
dev-python/textual: add 6.4.0
Signed-off-by: dsaf <ghostyn678+git <AT> gmail.com>
dev-python/textual/Manifest | 1 +
dev-python/textual/textual-6.4.0.ebuild | 100 ++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest
index cd1731cbf1..814dbcd558 100644
--- a/dev-python/textual/Manifest
+++ b/dev-python/textual/Manifest
@@ -1,2 +1,3 @@
DIST textual-5.3.0.gh.tar.gz 30143229 BLAKE2B
4cdf7410efcbe4a87fd7346d3e083dfca03a3c546e598b21a3460270685b19ca7bc630c01acd8e1f132679199dab5cabdf525fb8e90fa7b6d6b4f1f5f43dba72
SHA512
df05703d7ef310a1f6e26b055550627ad6d981145d7ec215fb0abb01362c574b67701bf504ba088d4fe8c6f287942175f0e1d8a111c8424bf06acc6b65ead135
DIST textual-6.3.0.gh.tar.gz 30175259 BLAKE2B
cce4544155208165b0553808cf83a7e48061748eb023f5233db37516d70b47b599beeb3119c7147737b51b5507496790b3f114d065c68e77e92ec7bf28fc0fce
SHA512
5b76f76de987038644031a4517277b84c4118f231b0fb6ed3efccca87d1c9128da5552dbc422da2731624c664847ad9a0f313a4b51d1d03dcaaae06105af609c
+DIST textual-6.4.0.gh.tar.gz 30177436 BLAKE2B
b51842000329fa0da7b7111bac536d44d57a9c0d3df75f556efa812de4529e3b810d291966eb8999f9c0d4165544de92ebdd7a645565f843ac2c4b346be9203e
SHA512
8fb14d399dc4e5350768bb38e2bcf76527c3cc9626fb8b03767892e96cce62ba8ad0ea2bc5899742e7db7b3002d06bb9e2e03d36327bbafde2067f8fb1dfc2be
diff --git a/dev-python/textual/textual-6.4.0.ebuild
b/dev-python/textual/textual-6.4.0.ebuild
new file mode 100644
index 0000000000..f04d5d3437
--- /dev/null
+++ b/dev-python/textual/textual-6.4.0.ebuild
@@ -0,0 +1,100 @@
+# 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
+ dev-python/mkdocstrings-python
+ dev-python/mkdocs-exclude
+ dev-python/mkdocs-git-revision-date-localized-plugin
+ dev-python/mkdocs-material
+ dev-python/mkdocs-rss-plugin
+"
+DOCS_INITIALIZE_GIT=1
+
+inherit distutils-r1 optfeature docs
+
+DESCRIPTION="Modern Text User Interface framework"
+HOMEPAGE="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"
+
+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-13.3.3[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/griffe[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ =dev-python/textual-dev-1.7*[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS+=( CHANGELOG.md LICENSE README.md )
+
+EPYTEST_XDIST=1
+EPYTEST_DESELECT=(
+ # Those tests ask to press keys
+ tests/snapshot_tests/test_snapshots.py
+
tests/test_xterm_parser.py::test_escape_sequence_resulting_in_multiple_keypresses
+
+ # 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"
+# # 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"
+ if use doc; then
+ DOCS+=( questions )
+ fi
+ docs_compile
+ rm "${S}/mkdocs.yml"
+}
+
+pkg_postinst() {
+ optfeature "bindings for python" dev-python/tree-sitter
+}