diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-07-05 15:22:02 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-07-05 15:22:58 +0200 |
| commit | ffbbd141c355e1f207d55753011d1fb861e35d12 (patch) | |
| tree | 95d1d967a7b771e2195d95f1951db22f53d6ab6e /dev-python | |
| parent | a0f5ee41071e751fd45c92f2783e9555c565e2df (diff) | |
| download | gentoo-ffbbd141c355e1f207d55753011d1fb861e35d12.tar.gz gentoo-ffbbd141c355e1f207d55753011d1fb861e35d12.tar.bz2 gentoo-ffbbd141c355e1f207d55753011d1fb861e35d12.zip | |
dev-python/pip: Update testing, wrap completion script
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pip/pip-25.1.1.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dev-python/pip/pip-25.1.1.ebuild b/dev-python/pip/pip-25.1.1.ebuild index b7f8e74be8c2..21d48cae3968 100644 --- a/dev-python/pip/pip-25.1.1.ebuild +++ b/dev-python/pip/pip-25.1.1.ebuild @@ -106,7 +106,13 @@ python_compile_all() { # 'pip completion' command embeds full $0 into completion script, which confuses # 'complete' and causes QA warning when running as "${PYTHON} -m pip". # This trick sets correct $0 while still calling just installed pip. - local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())' + local pipcmd='if True: + import sys + sys.argv[0] = "pip" + __file__ = "" + from pip._internal.cli.main import main + sys.exit(main()) + ' "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die } @@ -184,12 +190,12 @@ python_test() { fi local -x PIP_DISABLE_PIP_VERSION_CHECK=1 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_PLUGINS=( pytest-rerunfailures ) local EPYTEST_XDIST=1 # rerunfailures because test suite breaks if packages are installed # in parallel epytest -m "not network" -o tmp_path_retention_policy=all \ - -p rerunfailures --reruns=5 --use-venv + --reruns=5 --use-venv } python_install_all() { |
