commit: c2650be655749256f441afe6120a0a092f92cfe9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Dec 30 07:45:23 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Dec 30 07:45:53 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2650be6
dev-python/terminaltables3: New package, v4.0.0 This is basically a renamed version of the existing fork providing dev-python/terminaltables. Its only reverse dependency, dev-python/keep, now requires this name, so *shrug*. Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/terminaltables3/Manifest | 1 + dev-python/terminaltables3/metadata.xml | 12 +++++++ .../terminaltables3/terminaltables3-4.0.0.ebuild | 40 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/dev-python/terminaltables3/Manifest b/dev-python/terminaltables3/Manifest new file mode 100644 index 000000000000..e273e6f9d03a --- /dev/null +++ b/dev-python/terminaltables3/Manifest @@ -0,0 +1 @@ +DIST terminaltables3-4.0.0.gh.tar.gz 311975 BLAKE2B 5a89b46c2357905a7029f7ca3ecabf08cd7c4b5ab3a82dd239242939c98a1ff495be73451bc4a0f75c0aff27bdd3c6ab087de8da7ac3a989b9e26493fd497dc2 SHA512 9d7641f5c0225661a2d4f1c4374aa18bf2abc26e33455015a414b1684f6ec85dd032453637416e1e36273c43b78acaff1da8228a13a2cf393b429d6fa7328923 diff --git a/dev-python/terminaltables3/metadata.xml b/dev-python/terminaltables3/metadata.xml new file mode 100644 index 000000000000..349b07363031 --- /dev/null +++ b/dev-python/terminaltables3/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">matthewdeanmartin/terminaltables3</remote-id> + <remote-id type="pypi">terminaltables3</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/terminaltables3/terminaltables3-4.0.0.ebuild b/dev-python/terminaltables3/terminaltables3-4.0.0.ebuild new file mode 100644 index 000000000000..6ffc94fde017 --- /dev/null +++ b/dev-python/terminaltables3/terminaltables3-4.0.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Generate simple tables in terminals from a nested list of strings" +HOMEPAGE=" + https://github.com/matthewdeanmartin/terminaltables3/ + https://pypi.org/project/terminaltables3/ +" +SRC_URI=" + https://github.com/matthewdeanmartin/terminaltables3/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +BDEPEND=" + test? ( + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/colorclass[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + # We override FORCE_COLOR otherwise termcolor + # would pick it up from env. and give unexpected + # output for tests. + FORCE_COLOR=1 epytest +}
