- 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
This commit is contained in:
parent
59630a8909
commit
f3e23bd15e
@ -1,7 +1,7 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 9 16:47:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Fri Oct 9 16:47:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
- 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 <code@bnavigator.de>
|
Thu Oct 8 15:56:53 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
@ -91,23 +91,17 @@ chmod -x LICENSE
|
|||||||
%check
|
%check
|
||||||
ORIGPATH=$PATH
|
ORIGPATH=$PATH
|
||||||
%{python_expand # install isort and required example projects into custom root
|
%{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}
|
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 \
|
$python -m pip install --verbose \
|
||||||
|
--no-index \
|
||||||
--root $(pwd)/isort-test-%{$python_bin_suffix} \
|
--root $(pwd)/isort-test-%{$python_bin_suffix} \
|
||||||
--no-deps \
|
--no-deps \
|
||||||
--use-pep517 \
|
--use-pep517 \
|
||||||
--no-build-isolation \
|
--no-build-isolation \
|
||||||
--progress-bar off \
|
--progress-bar off \
|
||||||
--disable-pip-version-check \
|
--disable-pip-version-check \
|
||||||
${proj}*.whl
|
${proj}
|
||||||
done
|
done
|
||||||
|
|
||||||
export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
|
export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user