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_core/
Date: Sun, 16 Jan 2022 17:53:20
Message-Id: 1642354915.6cb599698d9e2629c47f5553231e75506564548a.mgorny@gentoo
1 commit: 6cb599698d9e2629c47f5553231e75506564548a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 12 22:59:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 16 17:41:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cb59969
7
8 dev-python/flit_core: Convert to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/flit_core/flit_core-3.6.0-r2.ebuild | 33 ++++++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/dev-python/flit_core/flit_core-3.6.0-r2.ebuild b/dev-python/flit_core/flit_core-3.6.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..9c37301f443b
18 --- /dev/null
19 +++ b/dev-python/flit_core/flit_core-3.6.0-r2.ebuild
20 @@ -0,0 +1,33 @@
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=standalone
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Simplified packaging of Python modules (core module)"
31 +HOMEPAGE="
32 + https://pypi.org/project/flit-core/
33 + https://github.com/pypa/flit/"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
39 +
40 +RDEPEND="
41 + dev-python/tomli[${PYTHON_USEDEP}]
42 +"
43 +BDEPEND="
44 + test? ( dev-python/testpath[${PYTHON_USEDEP}] )
45 +"
46 +
47 +distutils_enable_tests pytest
48 +
49 +src_prepare() {
50 + rm -r flit_core/vendor || die
51 + sed -i -e 's:from \.vendor ::' flit_core/*.py || die
52 + distutils-r1_src_prepare
53 +}