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/sphinxcontrib-spelling/
Date: Sun, 04 Oct 2020 19:59:40
Message-Id: 1601841571.c3b319f59bb9a1b4feea2a0c2690c06d26a551c6.sbraz@gentoo
1 commit: c3b319f59bb9a1b4feea2a0c2690c06d26a551c6
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 4 19:41:33 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 19:59:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b319f5
7
8 dev-python/sphinxcontrib-spelling: bump to 5.4.0, remove broken doc
9
10 Also update dependencies (remove the unused ones and fix setuptools and pbr
11 which are not used at runtime).
12
13 Package-Manager: Portage-3.0.8, Repoman-3.0.1
14 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
15
16 dev-python/sphinxcontrib-spelling/Manifest | 1 +
17 .../sphinxcontrib-spelling-5.4.0.ebuild | 52 ++++++++++++++++++++++
18 2 files changed, 53 insertions(+)
19
20 diff --git a/dev-python/sphinxcontrib-spelling/Manifest b/dev-python/sphinxcontrib-spelling/Manifest
21 index 93f723547f3..5fd72d6b1ec 100644
22 --- a/dev-python/sphinxcontrib-spelling/Manifest
23 +++ b/dev-python/sphinxcontrib-spelling/Manifest
24 @@ -1,2 +1,3 @@
25 DIST sphinxcontrib-spelling-5.1.2.tar.gz 22962 BLAKE2B c7b15289b4b6dce5e6c5fb529c4be2cd7c1f41d8bfc6ac86daf1a982f711bd2c426d9b3a615471538fe221197b64ccd907efd4620ea2440f6ec07b2a078d6bee SHA512 4a0398b7c79a035e12d9ae96100fcaa4df42aeae07a01a73f7d875ba04fbbeb3d7441c9debe77491876d78b0a3753677cff4cb3a575e3490364fe5780f5a70b2
26 DIST sphinxcontrib-spelling-5.3.0.tar.gz 45665 BLAKE2B c44c8c2621aecd74734c6137e1344a763e99fb61b3ce882c8ea70364df17a7e2fac49acc8878753cab1b70df2cf084de5087bed77f8b1bffe311410ecec3504d SHA512 8f3c4718877e55b0ebcd3d8c0f078a6c06c27c2cdd3cc557fd2e0e990f0c8956179fd9a8b3135b280973e45c0c8657f71372746ef4b55319078db8f16c7e00e9
27 +DIST sphinxcontrib-spelling-5.4.0.tar.gz 46823 BLAKE2B 8303a97b87d953a37db4548d895559baf93969c11f8417aafeb67804ec537f9ea028bcbf6a56eb3290f13871a782dcde142b1927865a6f9eefd5a20dc53061b1 SHA512 7e0fe6289f9482982825a1204c926490a1e31dc85e25e6418ba47f5575430875e3df5f77202ad458044b810bc2a29f989e6bc6f0c9b4934af938716a4ab887f0
28
29 diff --git a/dev-python/sphinxcontrib-spelling/sphinxcontrib-spelling-5.4.0.ebuild b/dev-python/sphinxcontrib-spelling/sphinxcontrib-spelling-5.4.0.ebuild
30 new file mode 100644
31 index 00000000000..0865671ed3f
32 --- /dev/null
33 +++ b/dev-python/sphinxcontrib-spelling/sphinxcontrib-spelling-5.4.0.ebuild
34 @@ -0,0 +1,52 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python3_{6..9} )
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="Sphinx spelling extension"
45 +HOMEPAGE="https://github.com/sphinx-contrib/spelling"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="BSD-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
51 +
52 +RDEPEND="
53 + $(python_gen_cond_dep '
54 + >=dev-python/importlib_metadata-1.7.0[${PYTHON_USEDEP}]
55 + ' python3_{6,7})
56 + dev-python/pyenchant[${PYTHON_USEDEP}]
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 +"
59 +BDEPEND="
60 + dev-python/pbr[${PYTHON_USEDEP}]
61 + test? (
62 + app-dicts/myspell-en
63 + )
64 +"
65 +
66 +# The doc can only be built from a git repository
67 +distutils_enable_tests pytest
68 +
69 +# We don't want distutils_enable_tests to add the namespace
70 +# package to BDEPEND under "test?". Therefore we add it to RDEPEND
71 +# after running distutils_enable_tests.
72 +RDEPEND+="
73 + dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]
74 +"
75 +
76 +python_prepare_all() {
77 + # Needs to be run from a git repository
78 + sed -i 's/test_contributors/_&/' \
79 + sphinxcontrib/spelling/tests/test_filter.py || die
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_install_all() {
84 + distutils-r1_python_install_all
85 + find "${ED}" -name '*.pth' -delete || die
86 +}