Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/sphinxcontrib-restbuilder/
Date: Mon, 27 Feb 2023 15:07:00
Message-Id: 1677455087.fa2947acde938b1d61979050f2b53a77d182d517.flow@gentoo
1 commit: fa2947acde938b1d61979050f2b53a77d182d517
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Feb 26 23:44:47 2023 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 26 23:44:47 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa2947ac
7
8 dev-python/sphinxcontrib-restbuilder: enable py3.11, fix tests
9
10 Closes: https://bugs.gentoo.org/862510
11 Closes: https://bugs.gentoo.org/897576
12 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
13
14 dev-python/sphinxcontrib-restbuilder/Manifest | 2 +-
15 .../sphinxcontrib-restbuilder-0.3-r1.ebuild | 39 ++++++++++++++++++++++
16 .../sphinxcontrib-restbuilder-0.3.ebuild | 29 ----------------
17 3 files changed, 40 insertions(+), 30 deletions(-)
18
19 diff --git a/dev-python/sphinxcontrib-restbuilder/Manifest b/dev-python/sphinxcontrib-restbuilder/Manifest
20 index bde5235cd..f64f350fe 100644
21 --- a/dev-python/sphinxcontrib-restbuilder/Manifest
22 +++ b/dev-python/sphinxcontrib-restbuilder/Manifest
23 @@ -1 +1 @@
24 -DIST sphinxcontrib-restbuilder-0.3.tar.gz 24926 BLAKE2B 885ec51030ef05c9bf528efc5ee8ac1552692d760854c750342947b599411a1d469aff577938286ef22de0e051450605e646b7b904dd69b513c9016ddbc8345c SHA512 0b94d05a2fed1f2203fea94cd3a525a62530ec1777d28d59f9232241dd6816eedf871d6a6f616f6f9ce2946a90143871be09d8cae75747b224a6032e284963ed
25 +DIST sphinxcontrib-restbuilder-0.3.gh.tar.gz 24926 BLAKE2B 885ec51030ef05c9bf528efc5ee8ac1552692d760854c750342947b599411a1d469aff577938286ef22de0e051450605e646b7b904dd69b513c9016ddbc8345c SHA512 0b94d05a2fed1f2203fea94cd3a525a62530ec1777d28d59f9232241dd6816eedf871d6a6f616f6f9ce2946a90143871be09d8cae75747b224a6032e284963ed
26
27 diff --git a/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3-r1.ebuild b/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3-r1.ebuild
28 new file mode 100644
29 index 000000000..a14a86b66
30 --- /dev/null
31 +++ b/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3-r1.ebuild
32 @@ -0,0 +1,39 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{9..11} pypy3 )
39 +DISTUTILS_USE_PEP517=setuptools
40 +inherit distutils-r1
41 +
42 +MY_PN=${PN#sphinxcontrib-}
43 +DESCRIPTION="A Sphinx builder/writer to output reStructuredText (rst) files"
44 +HOMEPAGE="
45 + https://pypi.org/project/sphinxcontrib-restbuilder/
46 + https://github.com/sphinx-contrib/restbuilder
47 +"
48 +SRC_URI="https://github.com/sphinx-contrib/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
49 +S="${WORKDIR}/${MY_PN}-${PV}"
50 +
51 +LICENSE="BSD-2"
52 +SLOT="0"
53 +KEYWORDS="~amd64"
54 +
55 +RDEPEND="
56 + dev-python/docutils[${PYTHON_USEDEP}]
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 +"
59 +
60 +distutils_enable_tests pytest
61 +
62 +python_compile() {
63 + distutils-r1_python_compile
64 + find "${BUILD_DIR}" -name '*.pth' -delete || die
65 +}
66 +
67 +python_test() {
68 + rm -rf sphinxcontrib || die
69 + distutils_write_namespace sphinxcontrib
70 + epytest
71 +}
72
73 diff --git a/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3.ebuild b/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3.ebuild
74 deleted file mode 100644
75 index 3c6ba0131..000000000
76 --- a/dev-python/sphinxcontrib-restbuilder/sphinxcontrib-restbuilder-0.3.ebuild
77 +++ /dev/null
78 @@ -1,29 +0,0 @@
79 -# Copyright 1999-2021 Gentoo Authors
80 -# Distributed under the terms of the GNU General Public License v2
81 -
82 -EAPI=8
83 -
84 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
85 -
86 -inherit distutils-r1
87 -
88 -DESCRIPTION="A Sphinx builder/writer to output reStructuredText (rst) files"
89 -HOMEPAGE="
90 - https://github.com/sphinx-contrib/restbuilder
91 - https://pypi.org/project/sphinxcontrib-restbuilder/
92 -"
93 -SRC_URI="https://github.com/sphinx-contrib/restbuilder/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
94 -S="${WORKDIR}/${P/sphinxcontrib-/}"
95 -
96 -LICENSE="BSD"
97 -SLOT="0"
98 -KEYWORDS="~amd64"
99 -
100 -RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
101 -
102 -distutils_enable_tests pytest
103 -
104 -python_install_all() {
105 - distutils-r1_python_install_all
106 - find "${ED}" -name '*.pth' -delete || die
107 -}