From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFB67158043 for ; Mon, 11 Mar 2024 08:42:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CC332BC016; Mon, 11 Mar 2024 08:42:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC3E92BC016 for ; Mon, 11 Mar 2024 08:42:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9765933BEEE for ; Mon, 11 Mar 2024 08:42:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E30D21512 for ; Mon, 11 Mar 2024 08:42:19 +0000 (UTC) From: "Henri Gasc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Henri Gasc" Message-ID: <1710146526.30eaec69dfe9008d12847e35418bba0233a91b63.gasc@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/textual/, dev-python/textual/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/textual/Manifest dev-python/textual/files/fix-mkdocstrings.patch dev-python/textual/textual-0.47.1.ebuild dev-python/textual/textual-0.52.1.ebuild X-VCS-Directories: dev-python/textual/files/ dev-python/textual/ X-VCS-Committer: gasc X-VCS-Committer-Name: Henri Gasc X-VCS-Revision: 30eaec69dfe9008d12847e35418bba0233a91b63 X-VCS-Branch: dev Date: Mon, 11 Mar 2024 08:42:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 73c88475-3f01-4945-abd7-cfed19cbb7b3 X-Archives-Hash: 765f5e19da380ee7221705b0dad55b82 commit: 30eaec69dfe9008d12847e35418bba0233a91b63 Author: Henri Gasc eurecom fr> AuthorDate: Mon Mar 11 08:41:25 2024 +0000 Commit: Henri Gasc eurecom 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 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-material-9.0.11[${PYTHON_USEDEP}] - =dev-python/time-machine-2.6.0[${PYTHON_USEDEP}] - =dev-python/textual-dev-1.2.0[${PYTHON_USEDEP}] "${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]