Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rope/
Date: Sat, 26 Feb 2022 08:35:00
Message-Id: 1645864486.d3ab063bbec541e45b197730701b8994bc8cc433.mgorny@gentoo
1 commit: d3ab063bbec541e45b197730701b8994bc8cc433
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 08:24:59 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 08:34:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3ab063b
7
8 dev-python/rope: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rope/rope-0.22.0-r1.ebuild | 42 +++++++++++++++++++++++++++++++++++
13 1 file changed, 42 insertions(+)
14
15 diff --git a/dev-python/rope/rope-0.22.0-r1.ebuild b/dev-python/rope/rope-0.22.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..f461efcc5f5f
18 --- /dev/null
19 +++ b/dev-python/rope/rope-0.22.0-r1.ebuild
20 @@ -0,0 +1,42 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python refactoring library"
32 +HOMEPAGE="https://github.com/python-rope/rope"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="LGPL-3+"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="doc"
39 +
40 +BDEPEND="
41 + doc? ( dev-python/docutils[${PYTHON_USEDEP}] )
42 + test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )
43 +"
44 +
45 +distutils_enable_tests pytest
46 +
47 +python_compile_all() {
48 + if use doc; then
49 + pushd docs > /dev/null || die
50 + mkdir build || die
51 + local i
52 + for i in ./*.rst; do
53 + rst2html.py $i > ./build/${i/rst/html} || die
54 + done
55 + popd > /dev/null || die
56 + fi
57 +}
58 +
59 +python_install_all() {
60 + use doc && local HTML_DOCS=( docs/build/. )
61 + distutils-r1_python_install_all
62 +}