commit: 81cb9e7d46fa58537c50e92fe58fb386e38f4755 Author: Henri Gasc <gasc <AT> eurecom <DOT> fr> AuthorDate: Sat Mar 11 14:34:24 2023 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sun Mar 12 17:37:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=81cb9e7d
dev-python/textual: Update atom, allow tests Closes: https://bugs.gentoo.org/893386 Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr> dev-python/textual/Manifest | 2 +- dev-python/textual/textual-0.10.1.ebuild | 35 -------------- dev-python/textual/textual-0.14.0.ebuild | 82 ++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 36 deletions(-) diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest index 00cd6ba2b..bdae15212 100644 --- a/dev-python/textual/Manifest +++ b/dev-python/textual/Manifest @@ -1 +1 @@ -DIST v0.10.1.gh.tar.gz 24509468 BLAKE2B 12747e3d602087d848687b8fe4fcd230c2dc842a50a808d103bfa6eff6bd71393cd0ec9a0ef3bdb46f1f887cc1c32a2d8d44041842c30f46440e2135dc8ae433 SHA512 1b8e584dc2872a5067bcb7e1568c77c92d4313448888bc2e244a222f00699468fd0153c78e8dc91c4e2b9c0149d4248bddb7d37d9eee3e68e4c334abb3eee951 +DIST textual-0.14.0.gh.tar.gz 25273607 BLAKE2B 9ce16bcb6e4fc5e3dea432f7a15086f5edef1740d9a0f55f6eeabf373fd7e64d0a3b06c277d1e61020def66b2d1d7d2b8f095747583b3a80da06c1103b198fe1 SHA512 1830546f8b07078f94525127f6a99771e54e29a9c4a217fda59f9b9de0fc85e893014af0d1a0b79fab4c237a76114516513662f67ce0203e72d2cba7f4f1bec7 diff --git a/dev-python/textual/textual-0.10.1.ebuild b/dev-python/textual/textual-0.10.1.ebuild deleted file mode 100644 index 031e2a1b2..000000000 --- a/dev-python/textual/textual-0.10.1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 - -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 -> v${PV}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -# For the tests we would need many python modules not in any overlays I could find - -RDEPEND=" - dev-python/rich[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-lang/python - dev-python/poetry-core[${PYTHON_USEDEP}] - dev-python/importlib_metadata[${PYTHON_USEDEP}] -" -DEPEND=" - ${BDEPEND} - ${RDEPEND} -" - -distutils_enable_tests pytest diff --git a/dev-python/textual/textual-0.14.0.ebuild b/dev-python/textual/textual-0.14.0.ebuild new file mode 100644 index 000000000..6a188c7f5 --- /dev/null +++ b/dev-python/textual/textual-0.14.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +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" # If set, can not commit because of dev-python/py-nanoid and dev-python/mkdocs-blog-plugin +IUSE="doc" + +RDEPEND=" + dev-python/rich[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/importlib_metadata[${PYTHON_USEDEP}] + test? ( + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/pytest-syrupy[${PYTHON_USEDEP}] + dev-python/py-nanoid[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/time-machine[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) + doc? ( + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/mkdocs[${PYTHON_USEDEP}] + dev-python/mkdocs-exclude[${PYTHON_USEDEP}] + dev-python/mkdocs-mkdocstrings[${PYTHON_USEDEP}] + dev-python/mkdocs-mkdocstrings-python[${PYTHON_USEDEP}] + dev-python/mkdocs-material[${PYTHON_USEDEP}] + dev-python/mkdocs-material-extensions[${PYTHON_USEDEP}] + dev-python/mkdocs-blog-plugin[${PYTHON_USEDEP}] + dev-python/mkdocs-rss-plugin[${PYTHON_USEDEP}] + dev-python/mkdocs-autorefs[${PYTHON_USEDEP}] + dev-python/py-nanoid[${PYTHON_USEDEP}] + ) +" +DEPEND=" + ${BDEPEND} + ${RDEPEND} +" + +distutils_enable_tests pytest + +python_prepare_all() { + # MkDocs need git repo + if use doc; then + git init -b temp || die + git config user.email "y...@example.com" || die + git config user.name "Your Name" || die + git add . || die + git commit -m 'init' -q || die + fi + distutils-r1_python_prepare_all +} + +python_install() { + if use doc; then + mkdocs build --config-file mkdocs-common.yml + einstalldocs site + fi + distutils-r1_python_install +} + +python_test() { + # Those tests ask to press keys + local EPYTEST_IGNORE="tests/snapshot_tests/test_snapshots.py" + epytest "${S}/tests" || die "Tests failed with ${EPYTHON}" +}