* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/textual/, dev-python/textual/files/
@ 2024-03-11 8:42 Henri Gasc
0 siblings, 0 replies; 2+ messages in thread
From: Henri Gasc @ 2024-03-11 8:42 UTC (permalink / raw
To: gentoo-commits
commit: 30eaec69dfe9008d12847e35418bba0233a91b63
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Mon Mar 11 08:41:25 2024 +0000
Commit: Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Mon Mar 11 08:42:06 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30eaec69
dev-python/textual: add 0.52.1, drop 0.47.1
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
dev-python/textual/Manifest | 2 +-
dev-python/textual/files/fix-mkdocstrings.patch | 33 +++++++++++++++++
...textual-0.47.1.ebuild => textual-0.52.1.ebuild} | 41 ++++++++++++----------
3 files changed, 57 insertions(+), 19 deletions(-)
diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest
index 14e206e3aa..c880c1485a 100644
--- a/dev-python/textual/Manifest
+++ b/dev-python/textual/Manifest
@@ -1 +1 @@
-DIST textual-0.47.1.gh.tar.gz 27860405 BLAKE2B f4047755d4faf7796ece4f8e08c409e4dc93ecd4eaa9543b6ca23b2824b8eb70c1e382509f55a15421eebd666f137c0ada7a4b99b6bc9d1f91f45ae2f251ddcf SHA512 f17684f8e822423164a6b549c261f5662b6997e9934e1c76f159610d1ed682e26d34e39ae22c3b8fe47e84c8b4a87cc6bd70e0121806b498ddda5ddb9f575bd1
+DIST textual-0.52.1.gh.tar.gz 27949270 BLAKE2B 3251df04137316b416b19ce91293034d226b5c54eaf4550578cc0b874a4ae4b1ab45578981ee98b41de04693b2d4fd43c55c8882f03bb8e8b35339faac2ffef7 SHA512 7eb8d54e7e18fab3d4013004d68c629b0f6a72258dc8e2c879c4ed54d32ca0e94594a992e25687d39356f61bd6a64372f67064d8888706bfa48df2e8ccce833d
diff --git a/dev-python/textual/files/fix-mkdocstrings.patch b/dev-python/textual/files/fix-mkdocstrings.patch
new file mode 100644
index 0000000000..a412fea238
--- /dev/null
+++ b/dev-python/textual/files/fix-mkdocstrings.patch
@@ -0,0 +1,33 @@
+diff --git a/docs/_templates/python/material/_base/class.html b/docs/_templates/python/material/_base/class.html
+index 120fe338f..731d2ae73 100644
+--- a/docs/_templates/python/material/_base/class.html
++++ b/docs/_templates/python/material/_base/class.html
+@@ -46,7 +46,7 @@
+ {% if "__init__" in class.members %}
+ {% with function = class.members["__init__"] %}
+ {% filter highlight(language="python", inline=False) -%}
+- def {% filter format_signature(config.line_length) %}
++ def {% filter format_signature(function, config.line_length) %}
+ __init__{% include "signature.html" with context %}
+ {% endfilter %}:
+ {% endfilter %}
+diff --git a/docs/_templates/python/material/_base/function.html b/docs/_templates/python/material/_base/function.html
+index 58a4c37ad..c5e574ffa 100644
+--- a/docs/_templates/python/material/_base/function.html
++++ b/docs/_templates/python/material/_base/function.html
+@@ -37,7 +37,7 @@
+
+ {% if config.separate_signature %}
+ {% filter highlight(language="python", inline=False) %}
+-def {% filter format_signature(config.line_length) %}
++def {% filter format_signature(function, config.line_length) %}
+ {% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
+ {% include "signature.html" with context %}
+ {% endfilter %}:
+diff --git a/docs/api/constants.md b/docs/api/constants.md
+index f4d97e8df..88aa35b2f 100644
+--- a/docs/api/constants.md
++++ b/docs/api/constants.md
+@@ -1 +1 @@
+-::: textuals.constants
++::: textual.constants
diff --git a/dev-python/textual/textual-0.47.1.ebuild b/dev-python/textual/textual-0.52.1.ebuild
similarity index 64%
rename from dev-python/textual/textual-0.47.1.ebuild
rename to dev-python/textual/textual-0.52.1.ebuild
index 65e553d1fa..b67924c3e5 100644
--- a/dev-python/textual/textual-0.47.1.ebuild
+++ b/dev-python/textual/textual-0.52.1.ebuild
@@ -3,12 +3,21 @@
EAPI=8
-DOCS_BUILDER="mkdocs"
-DOCS_DIR="docs"
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..12} )
-inherit distutils-r1 optfeature
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocstrings
+ dev-python/mkdocstrings-python
+ dev-python/mkdocs-material
+ dev-python/mkdocs-exclude
+ dev-python/mkdocs-rss-plugin
+ dev-python/pytz
+"
+DOCS_INITIALIZE_GIT=1
+
+inherit distutils-r1 docs optfeature
DESCRIPTION="Modern Text User Interface framework"
HOMEPAGE="https://github.com/Textualize/textual https://pypi.org/project/textual/"
@@ -17,24 +26,13 @@ SRC_URI="https://github.com/Textualize/textual/archive/refs/tags/v${PV}.tar.gz -
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="doc test"
RDEPEND="
- >=dev-python/rich-13.3.3[${PYTHON_USEDEP}]
>=dev-python/markdown-it-py-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/rich-13.3.3[${PYTHON_USEDEP}]
"
-
BDEPEND="
test? (
- dev-python/pytest-cov[${PYTHON_USEDEP}]
- >=dev-python/mkdocs-1.3.0[${PYTHON_USEDEP}]
- <dev-python/mkdocs-2.0.0[${PYTHON_USEDEP}]
- dev-python/mkdocstrings[${PYTHON_USEDEP}]
- dev-python/mkdocstrings-python[${PYTHON_USEDEP}]
- >=dev-python/mkdocs-material-9.0.11[${PYTHON_USEDEP}]
- <dev-python/mkdocs-material-10.0.0[${PYTHON_USEDEP}]
- >=dev-python/time-machine-2.6.0[${PYTHON_USEDEP}]
- <dev-python/time-machine-3.0.0[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
>=dev-python/textual-dev-1.2.0[${PYTHON_USEDEP}]
<dev-python/textual-dev-2.0.0[${PYTHON_USEDEP}]
@@ -42,19 +40,26 @@ BDEPEND="
dev-python/griffe[${PYTHON_USEDEP}]
)
"
-
DEPEND="${RDEPEND}"
+PATCHES=("${FILESDIR}/fix-mkdocstrings.patch")
+
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Those tests ask to press keys
tests/snapshot_tests/test_snapshots.py
# Need a package that should be optional
- tests/text_area/test_languages.py::test_register_language
- tests/text_area/test_languages.py::test_register_language_existing_language
+ tests/text_area/test_languages.py
)
+python_compile_all() {
+ echo "INHERIT: mkdocs-offline.yml" > "${S}/mkdocs.yml"
+ grep -v "\- \"*[Bb]log" "${S}/mkdocs-nav.yml" >> "${S}/mkdocs.yml"
+ docs_compile
+ rm "${S}/mkdocs.yml"
+}
+
pkg_postinst() {
optfeature "bindings for python" dev-python/tree-sitter
optfeature "support for [language]" dev-libs/tree-sitter-[language]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/textual/, dev-python/textual/files/
@ 2025-01-22 0:48 Henri Gasc
0 siblings, 0 replies; 2+ messages in thread
From: Henri Gasc @ 2025-01-22 0:48 UTC (permalink / raw
To: gentoo-commits
commit: d5964f057cd2ca17e460cf05566df6dfd35157c9
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Wed Jan 22 00:45:07 2025 +0000
Commit: Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Wed Jan 22 00:48:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d5964f05
dev-python/textual: add 1.0.0
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
dev-python/textual/Manifest | 1 +
dev-python/textual/files/fix-mkdocstrings.patch | 26 --------
dev-python/textual/textual-1.0.0.ebuild | 85 +++++++++++++++++++++++++
3 files changed, 86 insertions(+), 26 deletions(-)
diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest
index 409b91620..1f9938833 100644
--- a/dev-python/textual/Manifest
+++ b/dev-python/textual/Manifest
@@ -1 +1,2 @@
DIST textual-0.88.1.gh.tar.gz 29517235 BLAKE2B 457caef7957eab0b7317e94ce4dd991cf0da54c4b7c9b670089de6cb762b1fd28c1021b8be89e66947717452dcc4925ff70eb856cef470eacda6062322df2e7a SHA512 7c849dac56ca93853b36ad8c67f5544f5a071ad3b23f7753f46a6b62a1017098b40ce2be0aa526aa5a4de397ec26bb7b42a245170516e22ef297ccbc49321394
+DIST textual-1.0.0.gh.tar.gz 29642631 BLAKE2B e5122ed9f515c6c3f3707385523ec55d9281bda077fd80a9ca1b54030a0994800d6fe15b3f89998ac600b5e71120de0261d6b272132b5366d3bf53ec145dd1fa SHA512 d943ba0a01f84b526a15755fd1fb41b094e6029f73b317e098b8c23abbc87e43b7f75d1ab9bc92c0462463ef5e9229476f5d2700fa27d1245665b9aa89c2a2b5
diff --git a/dev-python/textual/files/fix-mkdocstrings.patch b/dev-python/textual/files/fix-mkdocstrings.patch
deleted file mode 100644
index d1b13868f..000000000
--- a/dev-python/textual/files/fix-mkdocstrings.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/docs/_templates/python/material/_base/class.html b/docs/_templates/python/material/_base/class.html
-index 120fe338f..731d2ae73 100644
---- a/docs/_templates/python/material/_base/class.html
-+++ b/docs/_templates/python/material/_base/class.html
-@@ -46,7 +46,7 @@
- {% if "__init__" in class.members %}
- {% with function = class.members["__init__"] %}
- {% filter highlight(language="python", inline=False) -%}
-- def {% filter format_signature(config.line_length) %}
-+ def {% filter format_signature(function, config.line_length) %}
- __init__{% include "signature.html" with context %}
- {% endfilter %}:
- {% endfilter %}
-diff --git a/docs/_templates/python/material/_base/function.html b/docs/_templates/python/material/_base/function.html
-index 58a4c37ad..c5e574ffa 100644
---- a/docs/_templates/python/material/_base/function.html
-+++ b/docs/_templates/python/material/_base/function.html
-@@ -37,7 +37,7 @@
-
- {% if config.separate_signature %}
- {% filter highlight(language="python", inline=False) %}
--def {% filter format_signature(config.line_length) %}
-+def {% filter format_signature(function, config.line_length) %}
- {% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
- {% include "signature.html" with context %}
- {% endfilter %}:
diff --git a/dev-python/textual/textual-1.0.0.ebuild b/dev-python/textual/textual-1.0.0.ebuild
new file mode 100644
index 000000000..ede113543
--- /dev/null
+++ b/dev-python/textual/textual-1.0.0.ebuild
@@ -0,0 +1,85 @@
+# 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_{10..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/platformdirs[${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
+)
+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
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-22 0:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 0:48 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/textual/, dev-python/textual/files/ Henri Gasc
-- strict thread matches above, loose matches on Subject: below --
2024-03-11 8:42 Henri Gasc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox