1 |
commit: 2ac9dae0460abbf256b54d00aefc52d0f56240db |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 25 10:43:33 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 23:02:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ac9dae0 |
7 |
|
8 |
dev-python/ini2toml: New dep for setuptools, v0.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/ini2toml/Manifest | 1 + |
13 |
dev-python/ini2toml/ini2toml-0.10.ebuild | 63 ++++++++++++++++++++++++++++++++ |
14 |
dev-python/ini2toml/metadata.xml | 12 ++++++ |
15 |
3 files changed, 76 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/ini2toml/Manifest b/dev-python/ini2toml/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..9fa4a3fcb1f6 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/ini2toml/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST ini2toml-0.10.gh.tar.gz 93535 BLAKE2B 8d8a5b31c53b9194e578b473dfd562b1b569d701b36b267ec4f59ea75ec03abd6e1df5541327b9414a2f1c04b1cb41ec57c6f900007f69a3c51a172143d2eacd SHA512 3d88f97c50a13fe3878e3fa35d70c9051874bec99d278411dcc7098d86898deb0e490be26f293e9a304d4c9a2842274e68126a2d20dac77b526161fde682dd75 |
24 |
|
25 |
diff --git a/dev-python/ini2toml/ini2toml-0.10.ebuild b/dev-python/ini2toml/ini2toml-0.10.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..4b26ed461480 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/ini2toml/ini2toml-0.10.ebuild |
30 |
@@ -0,0 +1,63 @@ |
31 |
+# Copyright 2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Automatically conversion of .ini/.cfg files to TOML equivalents" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/ini2toml/ |
44 |
+ https://github.com/abravalheri/ini2toml/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/abravalheri/ini2toml/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="MPL-2.0" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/packaging-20.7[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/tomli-w-0.4.0[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
61 |
+ test? ( |
62 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
69 |
+ |
70 |
+EPYTEST_DESELECT=( |
71 |
+ # pyproject_fmt is not packaged |
72 |
+ tests/test_cli.py::test_auto_formatting |
73 |
+ |
74 |
+ # fails on whitespace/comments/formatting |
75 |
+ tests/test_translator.py::test_simple_example |
76 |
+ tests/test_translator.py::test_parser_opts |
77 |
+ tests/plugins/test_setuptools_pep621.py::test_move_entry_points_and_apply_value_processing |
78 |
+ tests/plugins/test_setuptools_pep621.py::test_split_subtables |
79 |
+ tests/plugins/test_setuptools_pep621.py::test_entrypoints_and_split_subtables |
80 |
+ tests/plugins/test_setuptools_pep621.py::test_handle_dynamic |
81 |
+) |
82 |
+ |
83 |
+EPYTEST_IGNORE=( |
84 |
+ # configupdater is not packaged |
85 |
+ tests/test_examples.py |
86 |
+ tests/test_transformations.py |
87 |
+ tests/drivers/test_configupdater.py |
88 |
+) |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ sed -i -e 's:--cov ini2toml --cov-report term-missing::' setup.cfg || die |
92 |
+ distutils-r1_src_prepare |
93 |
+} |
94 |
|
95 |
diff --git a/dev-python/ini2toml/metadata.xml b/dev-python/ini2toml/metadata.xml |
96 |
new file mode 100644 |
97 |
index 000000000000..23719e79daa5 |
98 |
--- /dev/null |
99 |
+++ b/dev-python/ini2toml/metadata.xml |
100 |
@@ -0,0 +1,12 @@ |
101 |
+<?xml version="1.0" encoding="UTF-8"?> |
102 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
103 |
+<pkgmetadata> |
104 |
+ <maintainer type="person"> |
105 |
+ <email>python@g.o</email> |
106 |
+ </maintainer> |
107 |
+ <stabilize-allarches/> |
108 |
+ <upstream> |
109 |
+ <remote-id type="github">abravalheri/ini2toml</remote-id> |
110 |
+ <remote-id type="pypi">ini2toml</remote-id> |
111 |
+ </upstream> |
112 |
+</pkgmetadata> |