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/flit/
Date: Sun, 16 Jan 2022 17:53:20
Message-Id: 1642354916.654a45f307f09c6274eb70715ea8b404bd0f18cb.mgorny@gentoo
1 commit: 654a45f307f09c6274eb70715ea8b404bd0f18cb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 15:37:49 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 16 17:41:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=654a45f3
7
8 dev-python/flit: Convert to PEP517
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/flit/flit-3.6.0-r2.ebuild | 48 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-python/flit/flit-3.6.0-r2.ebuild b/dev-python/flit/flit-3.6.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..60a9fbf7f27a
18 --- /dev/null
19 +++ b/dev-python/flit/flit-3.6.0-r2.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 2019-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=flit
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Simplified packaging of Python modules"
31 +HOMEPAGE="https://github.com/pypa/flit https://flit.readthedocs.io/"
32 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +
38 +RDEPEND="
39 + dev-python/docutils[${PYTHON_USEDEP}]
40 + >=dev-python/flit_core-3.2.0[${PYTHON_USEDEP}]
41 + dev-python/requests[${PYTHON_USEDEP}]
42 + dev-python/requests_download[${PYTHON_USEDEP}]
43 + dev-python/tomli[${PYTHON_USEDEP}]
44 + dev-python/tomli-w[${PYTHON_USEDEP}]
45 +"
46 +BDEPEND="${RDEPEND}
47 + sys-apps/grep
48 + test? (
49 + dev-python/pip[${PYTHON_USEDEP}]
50 + dev-python/responses[${PYTHON_USEDEP}]
51 + dev-python/testpath[${PYTHON_USEDEP}]
52 + )
53 +"
54 +
55 +PATCHES=(
56 + "${FILESDIR}/flit-3.2.0-tests.patch"
57 +)
58 +
59 +distutils_enable_tests pytest
60 +distutils_enable_sphinx doc \
61 + dev-python/sphinxcontrib-github-alt \
62 + dev-python/pygments-github-lexers \
63 +
64 +src_prepare() {
65 + # make sure system install is used
66 + rm -r flit_core || die
67 + distutils-r1_src_prepare
68 +}