commit: f7a7c27b26fe71f4d607f78ec540cf91f9ce926f
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 03:09:45 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 26 09:03:48 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7a7c27b
dev-util/pkgdev: add dependency on tomli for old impls
It is missing it in wheel metadata, and also in the ebuild metadata. It
is only necessary for versions of python that don't have it in the
stdlib, and all those are old versions, but that's no reason not to
depend correctly on it where needed.
The "doc" USE flag also depends on tomli and does so unconditionally. It
appears that it doesn't allow one to select specific USEDEPs, which is
interesting but ok.
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/pkgdev/{pkgdev-9999.ebuild => pkgdev-0.2.10-r1.ebuild} | 5 ++++-
dev-util/pkgdev/pkgdev-9999.ebuild | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild
b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild
similarity index 94%
copy from dev-util/pkgdev/pkgdev-9999.ebuild
copy to dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild
index 207bcf10ce9c..1fc8f43e2948 100644
--- a/dev-util/pkgdev/pkgdev-9999.ebuild
+++ b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild
@@ -14,7 +14,7 @@ if [[ ${PV} == *9999 ]] ; then
inherit git-r3
else
inherit pypi
- KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv
~sparc ~x86 ~x64-macos"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv
~s390 ~sparc ~x86 ~x64-macos"
fi
DESCRIPTION="Collection of tools for Gentoo development"
@@ -40,6 +40,9 @@ fi
RDEPEND+="
dev-vcs/git
+ $(python_gen_cond_dep '
+ dev-python/tomli[${PYTHON_USEDEP}]
+ ' 3.10)
"
BDEPEND="
>=dev-python/flit-core-3.8[${PYTHON_USEDEP}]
diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild
b/dev-util/pkgdev/pkgdev-9999.ebuild
index 207bcf10ce9c..a1858addd1ea 100644
--- a/dev-util/pkgdev/pkgdev-9999.ebuild
+++ b/dev-util/pkgdev/pkgdev-9999.ebuild
@@ -40,6 +40,9 @@ fi
RDEPEND+="
dev-vcs/git
+ $(python_gen_cond_dep '
+ dev-python/tomli[${PYTHON_USEDEP}]
+ ' 3.10)
"
BDEPEND="
>=dev-python/flit-core-3.8[${PYTHON_USEDEP}]