diff options
author | Louis Sautier <sbraz@gentoo.org> | 2020-10-29 14:20:42 +0100 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2020-10-29 16:24:45 +0100 |
commit | b29ff8a784bd9300bcbe42a33d6198725d0d5313 (patch) | |
tree | 58628e2a316a194685ff847ebb6e6c7504094c21 /dev-python/rst-linker | |
parent | dev-lang/go: remove old version (diff) | |
download | gentoo-b29ff8a784bd9300bcbe42a33d6198725d0d5313.tar.gz gentoo-b29ff8a784bd9300bcbe42a33d6198725d0d5313.tar.bz2 gentoo-b29ff8a784bd9300bcbe42a33d6198725d0d5313.zip |
dev-python/rst-linker: bump to 2.1.1
Use distutils_enable_tests to simplify dependency handling.
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/rst-linker')
-rw-r--r-- | dev-python/rst-linker/Manifest | 1 | ||||
-rw-r--r-- | dev-python/rst-linker/rst-linker-2.1.1.ebuild | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/rst-linker/Manifest b/dev-python/rst-linker/Manifest index bce775091e28..f48e515c83f5 100644 --- a/dev-python/rst-linker/Manifest +++ b/dev-python/rst-linker/Manifest @@ -1 +1,2 @@ DIST rst.linker-2.0.0.tar.gz 12861 BLAKE2B f52ddab3c8119f0bac64e294e4a5a3cc50916f19f49ca1ca4983d8b5d2bb5401c6accb5873df38609386e12fcd1cb02b867f3633edd4d10606a98936e96e62eb SHA512 ea9fa95de66c95dc384c888446512be66b180d0d76e99fe7a6b8f8348436d4be959d3d567fa521d9fc925b537467a4fdf05f9e9d17f7a6df4aafd6dfd323e4fc +DIST rst.linker-2.1.1.tar.gz 13492 BLAKE2B 0f53f3110c4a54e7eb36787ed08f81d0ce551174251203b7184ccbcc0153ee450e8e8927e8989b572b929219b1002019f49167482d59956ad96a54360317f998 SHA512 c49e6b3de41636184f75941d8fa258c2dad3d13a7d82b6221a10f583ada228a96f56abefce7840f93cbae8512332b69430601961cc396f3917b912e369b2b1b9 diff --git a/dev-python/rst-linker/rst-linker-2.1.1.ebuild b/dev-python/rst-linker/rst-linker-2.1.1.ebuild new file mode 100644 index 000000000000..f893fc98c94b --- /dev/null +++ b/dev-python/rst-linker/rst-linker-2.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6..9} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Sphinx plugin to add links and timestamps to the changelog" +HOMEPAGE="https://github.com/jaraco/rst.linker" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +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_scm-1.15.0[${PYTHON_USEDEP}] + test? ( + dev-python/path-py[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs ">=dev-python/jaraco-packaging-3.2" +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}" +} |