Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rst-linker/
Date: Thu, 29 Oct 2020 15:33:58
Message-Id: 1603985085.b29ff8a784bd9300bcbe42a33d6198725d0d5313.sbraz@gentoo
1 commit: b29ff8a784bd9300bcbe42a33d6198725d0d5313
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 13:20:42 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 15:24:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b29ff8a7
7
8 dev-python/rst-linker: bump to 2.1.1
9
10 Use distutils_enable_tests to simplify dependency handling.
11
12 Package-Manager: Portage-3.0.8, Repoman-3.0.2
13 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
14
15 dev-python/rst-linker/Manifest | 1 +
16 dev-python/rst-linker/rst-linker-2.1.1.ebuild | 41 +++++++++++++++++++++++++++
17 2 files changed, 42 insertions(+)
18
19 diff --git a/dev-python/rst-linker/Manifest b/dev-python/rst-linker/Manifest
20 index bce775091e2..f48e515c83f 100644
21 --- a/dev-python/rst-linker/Manifest
22 +++ b/dev-python/rst-linker/Manifest
23 @@ -1 +1,2 @@
24 DIST rst.linker-2.0.0.tar.gz 12861 BLAKE2B f52ddab3c8119f0bac64e294e4a5a3cc50916f19f49ca1ca4983d8b5d2bb5401c6accb5873df38609386e12fcd1cb02b867f3633edd4d10606a98936e96e62eb SHA512 ea9fa95de66c95dc384c888446512be66b180d0d76e99fe7a6b8f8348436d4be959d3d567fa521d9fc925b537467a4fdf05f9e9d17f7a6df4aafd6dfd323e4fc
25 +DIST rst.linker-2.1.1.tar.gz 13492 BLAKE2B 0f53f3110c4a54e7eb36787ed08f81d0ce551174251203b7184ccbcc0153ee450e8e8927e8989b572b929219b1002019f49167482d59956ad96a54360317f998 SHA512 c49e6b3de41636184f75941d8fa258c2dad3d13a7d82b6221a10f583ada228a96f56abefce7840f93cbae8512332b69430601961cc396f3917b912e369b2b1b9
26
27 diff --git a/dev-python/rst-linker/rst-linker-2.1.1.ebuild b/dev-python/rst-linker/rst-linker-2.1.1.ebuild
28 new file mode 100644
29 index 00000000000..f893fc98c94
30 --- /dev/null
31 +++ b/dev-python/rst-linker/rst-linker-2.1.1.ebuild
32 @@ -0,0 +1,41 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( pypy3 python3_{6..9} )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN/-/.}"
43 +DESCRIPTION="Sphinx plugin to add links and timestamps to the changelog"
44 +HOMEPAGE="https://github.com/jaraco/rst.linker"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
46 +S="${WORKDIR}/${MY_PN}-${PV}"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
51 +
52 +RDEPEND="
53 + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' pypy3 python3_{6,7})
54 + dev-python/python-dateutil[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
58 + test? (
59 + dev-python/path-py[${PYTHON_USEDEP}]
60 + )
61 +"
62 +
63 +distutils_enable_sphinx docs ">=dev-python/jaraco-packaging-3.2"
64 +distutils_enable_tests pytest
65 +
66 +python_test() {
67 + # Ignore the module from ${S}, use the one from ${BUILD_DIR}
68 + # Otherwise, ImportMismatchError may occur
69 + # https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396
70 + # Override pytest options to skip flake8
71 + pytest -vv --ignore=rst --override-ini="addopts=--doctest-modules" \
72 + || die "tests failed with ${EPYTHON}"
73 +}