summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* install-qa-check.d/60distutils...: silence requires.txt errorMichał Górny2020-10-171-1/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d/60distutils...: Squash more false positivesMichał Górny2020-10-161-3/+3
| | | | | | Thanks to Arfrever for help with the pipeline. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: Fix DUS check for DISTUTILS_OPTIONALMichał Górny2020-09-221-30/+33
| | | | | | | | | | | Fix DISTUTILS_USE_SETUPTOOLS check to process all Python implementations with egg-infos present in site-packages (possibly none). This fixes eclass errors when trying to call distutils-r1 functions when it is actually disabled in DISTUTILS_OPTIONAL ebuilds. It also reduces noise while processing. Closes: https://bugs.gentoo.org/744079 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: Simply DISTUTILS_USE_SETUPTOOLS logicMichał Górny2020-09-221-25/+24
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: Allow bdepend/rdepend mix in DUS checkMichał Górny2020-09-221-2/+9
| | | | | | | | | Allow DISTUTILS_USE_SETUPTOOLS guess to partially evaluate to bdepend and partially to rdepend. That is the case in dev-python/hypothesis that installs CLI tools for CPython but not PyPy3. In this case, rdepend is the expected value. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: Fix reporting integrity-errors in DUS checkMichał Górny2020-09-221-4/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: Account for setuptools in requires.txtMichał Górny2020-09-211-0/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* install-qa-check.d: add DISTUTILS_USE_SETUPTOOLS checkMichał Górny2020-09-211-0/+60
Move DISTUTILS_USE_SETUPTOOLS check from distutils-r1.eclass to install QA checks, and rewrite it to use installed egg-info rather than greps on input files. This produces less false positives, particularly in packages that use boilerplate empty 'entry_points' in their setup script or configuration file. We also no longer require explicit setuptools RDEPEND for packages using other entry point types than console_scripts -- instead, we assume that the package consuming these entry points will bring setuptools as necessary. The rough idea is to look at egg-info metadata installed by distutils or setuptools. Plain distutils installs it as a regular file, while setuptools as a directory, and that's how we distinguish the two. For setuptools, we additionally grep entry_points.txt for `[console_scripts]`, and require RDEPEND when they are present. Signed-off-by: Michał Górny <mgorny@gentoo.org>