From f3e23bd15ecf298a471c0f1237cecff096fc9863d7823a7833ece67cd54c990c Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 9 Oct 2020 17:07:53 +0000 Subject: [PATCH] - Fix building and installation of exampleprojects for testing OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=66 --- python-isort.changes | 2 +- python-isort.spec | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/python-isort.changes b/python-isort.changes index dda0bd6..698c5a0 100644 --- a/python-isort.changes +++ b/python-isort.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Fri Oct 9 16:47:11 UTC 2020 - Benjamin Greiner -- Fix wheel building and installation for testing exampleprojects +- Fix building and installation of exampleprojects for testing ------------------------------------------------------------------- Thu Oct 8 15:56:53 UTC 2020 - Benjamin Greiner diff --git a/python-isort.spec b/python-isort.spec index 1542a70..38db251 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -91,23 +91,17 @@ chmod -x LICENSE %check ORIGPATH=$PATH %{python_expand # install isort and required example projects into custom root -exampleprojects="example_shared_isort_profile example_isort_formatting_plugin" -for eproj in $exampleprojects; do - pushd $eproj - %pyproject_wheel - popd - mv $eproj/$eproj*.whl . -done mkdir isort-test-%{$python_bin_suffix} -for proj in isort $exampleprojects; do +for proj in isort*.whl ./example_shared_isort_profile ./example_isort_formatting_plugin; do $python -m pip install --verbose \ + --no-index \ --root $(pwd)/isort-test-%{$python_bin_suffix} \ --no-deps \ --use-pep517 \ --no-build-isolation \ --progress-bar off \ --disable-pip-version-check \ - ${proj}*.whl + ${proj} done export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"