dev-python/setuptools: Add a PDEP on dev-python/trove-classifiers

Modern versions of setuptools optionally use
dev-python/trove-classifiers for verification.  This has the side issue
that if an old version happens to be installed, random packages may
fail to install.  Until upstream makes this properly optional (and we
disable it), depend on the very newest version.

Andrew noticed it while trying to bump dev-python/pyzotero.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-07-05 17:12:17 +02:00
parent ee2ad0f3f7
commit 75f9cd36ea
2 changed files with 11 additions and 0 deletions

View File

@@ -63,8 +63,13 @@ BDEPEND="
"
# setuptools-scm is here because installing plugins apparently breaks stuff at
# runtime, so let's pull it early. See bug #663324.
#
# trove-classifiers are optionally used in validation, if they are
# installed. Since we really oughtn't block them, let's always enforce
# the newest version for the time being to avoid errors.
PDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
>=dev-python/trove-classifiers-2024.7.2[${PYTHON_USEDEP}]
"
src_prepare() {

View File

@@ -63,8 +63,14 @@ BDEPEND="
"
# setuptools-scm is here because installing plugins apparently breaks stuff at
# runtime, so let's pull it early. See bug #663324.
#
# trove-classifiers are optionally used in validation, if they are
# installed. Since we really oughtn't block them, let's always enforce
# the newest version for the time being to avoid errors.
# https://github.com/pypa/setuptools/issues/4459
PDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
>=dev-python/trove-classifiers-2024.7.2[${PYTHON_USEDEP}]
"
src_prepare() {