[gentoo-dev] [PATCH 1/3] python-utils-r1.eclass: Do not pass `-p xdist` w/ PYTEST_PLUGINS

2023-11-18 Thread Michał Górny
Fix `epytest` with `EPYTEST_XDIST` not to pass a duplicate `-p xdist` when `xdist.plugin` is already present in `PYTEST_PLUGINS`. Otherwise, pytest will fail due to the plugin being loaded twice. Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 10 +++--- 1 file changed, 7 in

[gentoo-dev] [PATCH 2/3] python-utils-r1.eclass: Do not pass `-p no:*` w/ no autoloading

2023-11-18 Thread Michał Górny
Modify `epytest` not to pass our plethora of `-p no:*` arguments when `PYTEST_DISABLE_PLUGIN_AUTOLOAD` is set. This is NFC since the plugins wouldn't be loaded anyway. Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 51 +++ 1 file changed, 28 inse

[gentoo-dev] [PATCH 3/3] distutils-r1.eclass: Silence pydevd warnings

2023-11-18 Thread Michał Górny
Set `PYDEVD_DISABLE_FILE_VALIDATION` to silence warnings about frozen modules from dev-python/pydevd. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 3d756eaad556..0a7b