commit: 8de8ad69e47d26eed17070abbaef1e24ccaf9b49
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Oct 29 22:27:36 2024 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue Oct 29 22:36:50 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8de8ad69
dev-python/rst2ansi: add tests, fix deps, enable py3.13
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/rst2ansi/Manifest | 1 +
dev-python/rst2ansi/rst2ansi-0.1.5-r3.ebuild | 44 ++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/dev-python/rst2ansi/Manifest b/dev-python/rst2ansi/Manifest
index ce5c205f6..2e53d6e56 100644
--- a/dev-python/rst2ansi/Manifest
+++ b/dev-python/rst2ansi/Manifest
@@ -1 +1,2 @@
+DIST rst2ansi-0.1.5.gh.tar.gz 15465 BLAKE2B
7e05c485521c41a1b233efd18578d252928e9c2b529c21baf218f7c06370a8ec77f38f64a456d1fe5bb0b9cc6e218891614fbe13504ba0c81ae6ecc9995e25db
SHA512
4ff47b58b8121fc72154dddb687b6e7d8aeda2ad2a00987a0598c3b33c44979aef8bfe8335d0c3f1f352eff9dcade533927bafd03e06c13193c80ba5fa874db0
DIST rst2ansi-0.1.5.tar.gz 9989 BLAKE2B
6792a7a4c0c23ea3eff6ef9462b2349743d3a0ea956e3dce2965981b1c058152a4117be031d5cfca7df18e992994453b2a4db8b7ab719d2279978ab659a78321
SHA512
ab964c9a263df3a638e24537f8077345d9240f88e0e62bcb423caea74c0ffa7736365beb777c9f240c7ccd8ae6ba68a94358f5c487ccc9a6175ce3a81b083b65
diff --git a/dev-python/rst2ansi/rst2ansi-0.1.5-r3.ebuild
b/dev-python/rst2ansi/rst2ansi-0.1.5-r3.ebuild
new file mode 100644
index 000000000..ef728aa76
--- /dev/null
+++ b/dev-python/rst2ansi/rst2ansi-0.1.5-r3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+MY_PN="python-${PN}"
+DESCRIPTION="Render reStructuredText documents to the terminal"
+HOMEPAGE="
+ https://pypi.org/project/rst2ansi/
+ https://github.com/Snaipe/python-rst2ansi
+"
+# use git archives for CLI test data
+SRC_URI="https://github.com/Snaipe/python-rst2ansi/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/docutils[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? ( dev-util/cram )
+"
+
+distutils_enable_tests setup.py
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # remove failing test
+ rm test/lists.t || die
+}
+
+python_test_all() {
+ emake test
+}
+
+python_test() {
+ :
+}