From b4803079ccaf30833a1b3e6cdca144b6907a3657 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 12 Mar 2024 06:41:06 +0000 Subject: Adding metadata --- dev-python/textual/Manifest | 2 +- dev-python/textual/files/fix-mkdocstrings.patch | 33 +++++++++++++ dev-python/textual/textual-0.47.1.ebuild | 61 ----------------------- dev-python/textual/textual-0.52.1.ebuild | 66 +++++++++++++++++++++++++ 4 files changed, 100 insertions(+), 62 deletions(-) create mode 100644 dev-python/textual/files/fix-mkdocstrings.patch delete mode 100644 dev-python/textual/textual-0.47.1.ebuild create mode 100644 dev-python/textual/textual-0.52.1.ebuild (limited to 'dev-python/textual') diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest index 14e206e3aa64..c880c1485af0 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 000000000000..a412fea2387e --- /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.47.1.ebuild deleted file mode 100644 index 83ae2d8f3988..000000000000 --- a/dev-python/textual/textual-0.47.1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="mkdocs" -DOCS_DIR="docs" -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 optfeature - -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" -IUSE="doc test" - -RDEPEND=" - >=dev-python/rich-13.3.3[${PYTHON_USEDEP}] - >=dev-python/markdown-it-py-2.1.0[${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] +} -- cgit v1.3.1