From: Andrew Ammerlaan Date: Fri, 10 Apr 2020 10:04:38 +0000 (+0200) Subject: dev-python/mkautodoc: autodoc for mkdocs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ddb72bf65a2c3fcf2e5e1a63efa4fafdf0deb25b;p=gentoo.git dev-python/mkautodoc: autodoc for mkdocs Part of effort to get mkdocs-material in ::gentoo: https://github.com/gentoo/guru/issues/3 Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan Closes: https://github.com/gentoo/gentoo/pull/15286 Signed-off-by: Joonas Niilola --- diff --git a/dev-python/mkautodoc/Manifest b/dev-python/mkautodoc/Manifest new file mode 100644 index 000000000000..7467e3b3f01f --- /dev/null +++ b/dev-python/mkautodoc/Manifest @@ -0,0 +1 @@ +DIST mkautodoc-0.1.0.tar.gz 5654 BLAKE2B c0ae754e800ea25e9cccc621b4fd5c8d1561c57808b301ac5a3036ca18fda1adc432006e13b777a83dcc2cd6960a34745e17dfbcbbda24098902198d4fc9d743 SHA512 7ccb0a03016e2984d88d78eca2a8ee01e2153ff574c912358640c158b2084e3c365ace0fdb89cb74bb1950c68775d9d3cb11201cbf3c6d136dc7886a3294dc89 diff --git a/dev-python/mkautodoc/metadata.xml b/dev-python/mkautodoc/metadata.xml new file mode 100644 index 000000000000..0858ff1d0d1b --- /dev/null +++ b/dev-python/mkautodoc/metadata.xml @@ -0,0 +1,17 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + + tomchristie/mkautodoc + mkautodoc + + diff --git a/dev-python/mkautodoc/mkautodoc-0.1.0.ebuild b/dev-python/mkautodoc/mkautodoc-0.1.0.ebuild new file mode 100644 index 000000000000..bfc7f38cd6b5 --- /dev/null +++ b/dev-python/mkautodoc/mkautodoc-0.1.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-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="Auto documentation for MkDocs" +HOMEPAGE=" + https://github.com/tomchristie/mkautodoc + https://pypi.org/project/mkautodoc +" +SRC_URI="https://github.com/tomchristie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/markdown[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_test() { + PYTHONPATH="${WORKDIR}/${P}/tests/mocklib:${WORKDIR}/${P}" + pytest -vv || die "tests fail with ${EPYTHON}" +}