1 |
commit: 9170bba7020993928fb8cf38dc45ec9de0e6d924 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 2 09:18:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 2 09:26:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9170bba7 |
7 |
|
8 |
dev-python/tomlkit: Force setuptools build to fix poetry dep cycle |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832531 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
.../tomlkit/{tomlkit-0.9.0.ebuild => tomlkit-0.9.0-r1.ebuild} | 11 ++++++++++- |
14 |
1 file changed, 10 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/tomlkit/tomlkit-0.9.0.ebuild b/dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild |
17 |
similarity index 68% |
18 |
rename from dev-python/tomlkit/tomlkit-0.9.0.ebuild |
19 |
rename to dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild |
20 |
index 7ec87f0790cf..4de45e362c79 100644 |
21 |
--- a/dev-python/tomlkit/tomlkit-0.9.0.ebuild |
22 |
+++ b/dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild |
23 |
@@ -3,7 +3,7 @@ |
24 |
|
25 |
EAPI=8 |
26 |
|
27 |
-DISTUTILS_USE_PEP517=poetry |
28 |
+DISTUTILS_USE_PEP517=setuptools |
29 |
PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
30 |
|
31 |
inherit distutils-r1 |
32 |
@@ -19,3 +19,12 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~ |
33 |
BDEPEND="test? ( dev-python/pyyaml[${PYTHON_USEDEP}] )" |
34 |
|
35 |
distutils_enable_tests pytest |
36 |
+ |
37 |
+src_configure() { |
38 |
+ # use setup.py to avoid circular dep with poetry-core |
39 |
+ cat > pyproject.toml <<-EOF || die |
40 |
+ [build-system] |
41 |
+ requires = ["setuptools", "wheel"] |
42 |
+ build-backend = "setuptools.build_meta" |
43 |
+ EOF |
44 |
+} |