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/toml/
Date: Tue, 10 May 2022 16:49:05
Message-Id: 1652201335.2e15acf5334bc0f0f2840d3b8f41144a1667d125.mgorny@gentoo
1 commit: 2e15acf5334bc0f0f2840d3b8f41144a1667d125
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 16:39:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 16:48:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e15acf5
7
8 dev-python/toml: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/toml/toml-0.10.2-r1.ebuild | 48 +++++++++++++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-python/toml/toml-0.10.2-r1.ebuild b/dev-python/toml/toml-0.10.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..7389b2fc2a62
18 --- /dev/null
19 +++ b/dev-python/toml/toml-0.10.2-r1.ebuild
20 @@ -0,0 +1,48 @@
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} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +TOML_TEST_VER="280497fa5f12e43d7233aed0d74e07ca61ef176b"
32 +
33 +DESCRIPTION="Python library for handling TOML files"
34 +HOMEPAGE="
35 + https://github.com/uiri/toml/
36 + https://pypi.org/project/toml/
37 +"
38 +SRC_URI="
39 + https://github.com/uiri/${PN}/archive/${PV}.tar.gz -> ${P}-1.tar.gz
40 + test? (
41 + https://github.com/BurntSushi/toml-test/archive/${TOML_TEST_VER}.tar.gz
42 + -> toml-test-${TOML_TEST_VER}.tar.gz
43 + )
44 +"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
49 +
50 +BDEPEND="
51 + test? (
52 + $(python_gen_cond_dep '
53 + dev-python/numpy[${PYTHON_USEDEP}]
54 + ' python3_{8..10})
55 + )
56 +"
57 +
58 +DOCS=( README.rst )
59 +
60 +distutils_enable_tests pytest
61 +
62 +python_prepare_all() {
63 + if use test; then
64 + mv "${WORKDIR}/toml-test-${TOML_TEST_VER#v}" "${S}/toml-test" || die
65 + fi
66 +
67 + distutils-r1_python_prepare_all
68 +}