diff options
author | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-09-19 12:01:40 +0100 |
---|---|---|
committer | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-09-19 12:01:40 +0100 |
commit | c61729de7244958a841932f6baabc89eb583c893 (patch) | |
tree | c8da6e2a1e92196a5fc4c9a80e0169e135c1f64c /dev-python | |
parent | Update visual-studio-code (diff) | |
download | ssnb-c61729de7244958a841932f6baabc89eb583c893.tar.gz ssnb-c61729de7244958a841932f6baabc89eb583c893.tar.bz2 ssnb-c61729de7244958a841932f6baabc89eb583c893.zip |
Add sphinx-tabs extension
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/sphinx-tabs/Manifest | 3 | ||||
-rw-r--r-- | dev-python/sphinx-tabs/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/sphinx-tabs/sphinx-tabs-1.3.0.ebuild | 40 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/sphinx-tabs/Manifest b/dev-python/sphinx-tabs/Manifest new file mode 100644 index 0000000..f4f95e1 --- /dev/null +++ b/dev-python/sphinx-tabs/Manifest @@ -0,0 +1,3 @@ +DIST sphinx-tabs-1.3.0.tar.gz 23246 BLAKE2B 5bab0f184503acf21402c4e393e3db07d9ef292abad7bf1c3bc0c58836e9d18ffb13b86c445f9705b37bc22ec9caf312c4a69dde53aa86b58626ec2e330ff034 SHA512 d616a543bf0cd9184574928859714d975a063a7b607be0b93d548dceeed8d9442ee723d1557267258f7b1c50c917f66a31b15d4579c2adf360b965e10c7d23de +EBUILD sphinx-tabs-1.3.0.ebuild 987 BLAKE2B b498e8549ff8ef872d770de3b9ab10688c73b0c0c3d1fe75a6885c251617fe095e6e69157d8899f6089933076eafba58bd76b23f66f112223c606154b6c1333d SHA512 a24b2b45af3191e0714d3fca1e4cc9a9992a1b090758669780098d77b73a55215bb9da9e8cb2c8f037eb21db648a8d837dd79e15c297f7e9151a2c8fbb2fff87 +MISC metadata.xml 476 BLAKE2B 1257cd686b7693024076d7bd29e92ca434796c5a4ba7416520df6563cde9baf960c7cef0c7a08e486c18d724471d0b8e315876538f769e3678ccdd946d0e1ac2 SHA512 01386a935008237e0767cd5bb6bbd4268d96f07ae6fb3dc74b3ff391985177c00124776c2be65a893fa74a9143283da44a103819357477d25e1a9cbe981e8c0f diff --git a/dev-python/sphinx-tabs/metadata.xml b/dev-python/sphinx-tabs/metadata.xml new file mode 100644 index 0000000..901d83f --- /dev/null +++ b/dev-python/sphinx-tabs/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>samuelbernardo.mail@gmail.com</email> + <name>Samuel Bernardo</name> + </maintainer> + <upstream> + <remote-id type="pypi">sphinx-tabs</remote-id> + <remote-id type="github">executablebooks/sphinx-tabs</remote-id> + <bugs-to>https://github.com/executablebooks/sphinx-tabs/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/dev-python/sphinx-tabs/sphinx-tabs-1.3.0.ebuild b/dev-python/sphinx-tabs/sphinx-tabs-1.3.0.ebuild new file mode 100644 index 0000000..c55dbd5 --- /dev/null +++ b/dev-python/sphinx-tabs/sphinx-tabs-1.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Create tabbed content in Sphinx documentation when building HTML" +HOMEPAGE="https://github.com/executablebooks/sphinx-tabs" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/docutils[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/path-py[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${P}" + +distutils_enable_tests pytest + +python_test() { + # Ignore the module from ${S}, use the one from ${BUILD_DIR} + # Otherwise, ImportMismatchError may occur + # https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396 + # Override pytest options to skip flake8 + pytest -vv --ignore=rst --override-ini="addopts=--doctest-modules" \ + || die "tests failed with ${EPYTHON}" +} |