diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-04-10 12:04:38 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-04-16 09:50:57 +0300 |
commit | ddb72bf65a2c3fcf2e5e1a63efa4fafdf0deb25b (patch) | |
tree | cea3befb715dcc07b48702d860c8c8936d12c476 /dev-python/mkautodoc | |
parent | app-crypt/pius: add missing die for 3.0.0 (diff) | |
download | gentoo-ddb72bf65a2c3fcf2e5e1a63efa4fafdf0deb25b.tar.gz gentoo-ddb72bf65a2c3fcf2e5e1a63efa4fafdf0deb25b.tar.bz2 gentoo-ddb72bf65a2c3fcf2e5e1a63efa4fafdf0deb25b.zip |
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 <andrewammerlaan@riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/15286
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/mkautodoc')
-rw-r--r-- | dev-python/mkautodoc/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mkautodoc/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/mkautodoc/mkautodoc-0.1.0.ebuild | 28 |
3 files changed, 46 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>andrewammerlaan@riseup.net</email> + <name>Andrew Ammerlaan</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">tomchristie/mkautodoc</remote-id> + <remote-id type="pypi">mkautodoc</remote-id> + </upstream> +</pkgmetadata> 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}" +} |