From e195c5181895cc467699c39c541af988ca64f4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 8 Jul 2020 11:00:46 +0200 Subject: [PATCH] Switch to %pytest to simplify the spec file /usr/bin/pip is Python 3 now anyway, so we can drop the custom _bin hack. --- python-pip.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index a79ed00..22a7c02 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -368,16 +368,11 @@ pytest_k='not completion and not test_from_link_vcs_without_source_dir and not test_should_cache_git_sha' -mkdir _bin -export PATH="$PWD/_bin:$PATH" - -export PYTHONPATH=%{buildroot}%{python3_sitelib} -ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip # --deselect'ed tests are not compatible with the latest virtualenv # These files contain almost 500 tests so we should enable them back # as soon as pip will be compatible upstream # https://github.com/pypa/pip/pull/8441 -%{__python3} -m pytest -m 'not network' -k "$(echo $pytest_k)" \ +%pytest -m 'not network' -k "$(echo $pytest_k)" \ --deselect tests/functional --deselect tests/lib/test_lib.py --deselect tests/unit/test_build_env.py %endif