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/ini2toml/
Date: Sat, 25 Jun 2022 05:11:47
Message-Id: 1656133898.409b0481dd5d8baeaad109aac23735a14a7663b2.mgorny@gentoo
1 commit: 409b0481dd5d8baeaad109aac23735a14a7663b2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 04:50:18 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 05:11:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=409b0481
7
8 dev-python/ini2toml: Add more test deps
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ini2toml/ini2toml-0.11-r1.ebuild | 51 +++++++++++++++++++++++++++++
13 1 file changed, 51 insertions(+)
14
15 diff --git a/dev-python/ini2toml/ini2toml-0.11-r1.ebuild b/dev-python/ini2toml/ini2toml-0.11-r1.ebuild
16 new file mode 100644
17 index 000000000000..71e549fccc36
18 --- /dev/null
19 +++ b/dev-python/ini2toml/ini2toml-0.11-r1.ebuild
20 @@ -0,0 +1,51 @@
21 +# Copyright 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=( pypy3 python3_{8..11} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Automatically conversion of .ini/.cfg files to TOML equivalents"
32 +HOMEPAGE="
33 + https://pypi.org/project/ini2toml/
34 + https://github.com/abravalheri/ini2toml/
35 +"
36 +SRC_URI="
37 + https://github.com/abravalheri/ini2toml/archive/v${PV}.tar.gz
38 + -> ${P}.gh.tar.gz
39 +"
40 +
41 +LICENSE="MPL-2.0"
42 +SLOT="0"
43 +KEYWORDS="~amd64"
44 +
45 +RDEPEND="
46 + >=dev-python/packaging-20.7[${PYTHON_USEDEP}]
47 + >=dev-python/tomli-w-0.4.0[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
51 + test? (
52 + dev-python/configupdater[${PYTHON_USEDEP}]
53 + dev-python/pyproject-fmt[${PYTHON_USEDEP}]
54 + dev-python/tomli[${PYTHON_USEDEP}]
55 + dev-python/tomlkit[${PYTHON_USEDEP}]
56 + )
57 +"
58 +
59 +distutils_enable_tests pytest
60 +
61 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
62 +
63 +EPYTEST_IGNORE=(
64 + # validate_pyproject is not packaged
65 + tests/test_examples.py
66 +)
67 +
68 +src_prepare() {
69 + sed -i -e 's:--cov ini2toml --cov-report term-missing::' setup.cfg || die
70 + distutils-r1_src_prepare
71 +}