dev-python/sphinx-argparse: treeclean

This commit is contained in:
Alarig Le Lay 2023-07-14 16:49:25 +02:00
parent 2e95fefa1a
commit 5878445245
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
3 changed files with 0 additions and 51 deletions

View File

@ -1 +0,0 @@
DIST sphinx-argparse-0.2.5.tar.gz 24890 BLAKE2B 870329d588c5c1131bb104e548e6f1caf673b6b4ffa9cb074a9a6e769f90d8d351ec14ce05f902d10ce4ae2336e05a119a386ea154faf2a5c57ba240514c9b92 SHA512 8e946947c9d018c10d7283b19c49cf19bf5813ba5c227bf3aac21752e5ecddf4653ec2bb1e2b67b8c1c3d8eb50ede55acc5b0e0071297433a2468606d3baa0b1

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Alarig Le Lay</name>
<email>alarig@swordarmor.fr</email>
</maintainer>
</pkgmetadata>

View File

@ -1,42 +0,0 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Sphinx extension that automatically documents argparse commands and options"
HOMEPAGE="https://pypi.org/project/sphinx-argparse/
https://github.com/alex-rudakov/sphinx-argparse"
SRC_URI="https://github.com/alex-rudakov/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="
${DEPEND}
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/commonmark[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
# requires self to build own documentation
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-argparse
python_prepare_all() {
# test fails, skip it until a fix is found:
# AssertionError: assert [{'action_groups': [{'description': None,\n 'options': [{'default': None,\n
sed -i -e 's:test_parse_nested:_&:' \
-e 's:test_parse_nested_traversal:_&:' \
test/test_parser.py || die
# needs test files in workdir to compile docs for some reason
cp -r test "${WORKDIR}/test/" || die
distutils-r1_python_prepare_all
}