diff options
author | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-06-24 17:24:50 +0100 |
---|---|---|
committer | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-06-24 17:24:50 +0100 |
commit | 8d271a778e63c0854a3f2ecafdcd80e5c072adf2 (patch) | |
tree | bf8dc5d64af1b349a78d25c8ed0471d3424e7b65 /dev-python | |
parent | Update dvdstyler ffmpeg dependency (diff) | |
download | ssnb-8d271a778e63c0854a3f2ecafdcd80e5c072adf2.tar.gz ssnb-8d271a778e63c0854a3f2ecafdcd80e5c072adf2.tar.bz2 ssnb-8d271a778e63c0854a3f2ecafdcd80e5c072adf2.zip |
Add rstcheck
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/rstcheck/Manifest | 3 | ||||
-rw-r--r-- | dev-python/rstcheck/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/rstcheck/rstcheck-3.3.1.ebuild | 45 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/rstcheck/Manifest b/dev-python/rstcheck/Manifest new file mode 100644 index 0000000..c139979 --- /dev/null +++ b/dev-python/rstcheck/Manifest @@ -0,0 +1,3 @@ +DIST rstcheck-3.3.1.tar.gz 13825 BLAKE2B 94c1e8226b372b25907fb5e713716f46d972788f5d996a6c351fdf92728d1274e625564ec6417e0e3be7c7ec8d4ef07a193e8b80ca38085d28c1e9ee13e0ca36 SHA512 d390565c59466e1047fb41491eb5a2261fec91848806e04137bcc6053759fc87c8e4c72721d39b35c959b0baddaf90f2c8459213cec76b82be9b78bdd44076c5 +EBUILD rstcheck-3.3.1.ebuild 1309 BLAKE2B b0c53ba0f7c9ecff87642080bdaef980a51a34d8bc89ef956a7c9c1695051d432cf45d4eefd0b82d5bf72eac6042b6d5fc377ba4348b144ae4ac34517860a11d SHA512 92e6aaed5b7b8be33cf3d54ed67d29a90c933861e8e0b105974078ba7ec210da9e86be7dabf50fbcc3e8dc1445dcbca03ac055c6e336dee345f2f88a6a6f9ab2 +MISC metadata.xml 447 BLAKE2B bd3748caeb70137f23c0bc3534f3ea9b302527e7f12b115eefe0fe9048b6f0ca9a8b5f430c92d30a5e7fa2b82a315f477d5f14bbf6aab86a18405c03067c68e0 SHA512 5b4398e38872d15d207159fcc7d03a8ecf99692001ee47fedf9b5c4b7c34274e5bb6dcd778302974c4f4f0c0acd734f760ad3bcddabc9a7e0c481ceb77b0f81b diff --git a/dev-python/rstcheck/metadata.xml b/dev-python/rstcheck/metadata.xml new file mode 100644 index 0000000..d19e6b0 --- /dev/null +++ b/dev-python/rstcheck/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">rstcheck</remote-id> + <remote-id type="github">myint/rstcheck</remote-id> + <bugs-to>https://github.com/myint/rstcheck/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/dev-python/rstcheck/rstcheck-3.3.1.ebuild b/dev-python/rstcheck/rstcheck-3.3.1.ebuild new file mode 100644 index 0000000..c169959 --- /dev/null +++ b/dev-python/rstcheck/rstcheck-3.3.1.ebuild @@ -0,0 +1,45 @@ +# 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="Checks syntax of reStructuredText and code blocks nested within it" +HOMEPAGE="https://github.com/myint/rstcheck" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' pypy3 python3_{6,7}) + dev-python/python-dateutil[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/path-py[${PYTHON_USEDEP}] + >=dev-python/pytest-3.4[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${P}" + +distutils_enable_sphinx docs ">=dev-python/jaraco-packaging-3.2" + +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}" +} |