Accepting request 855002 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/855002 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=21
This commit is contained in:
commit
f3ce8b5c0c
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 11 23:19:12 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix setup of test environment suitable for multiple
|
||||||
|
python flavors gh#openSUSE/python-rpm-macros#66
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 13 18:28:28 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Tue Oct 13 18:28:28 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -93,24 +93,26 @@ chmod -x LICENSE
|
|||||||
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
|
||||||
mkdir isort-test-%{$python_bin_suffix}
|
mkdir isort-test-%{$python_bin_suffix}
|
||||||
for proj in isort*.whl ./example_shared_isort_profile ./example_isort_formatting_plugin; do
|
export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
|
||||||
|
export PYTHONPATH="$(pwd)/isort-test-%{$python_bin_suffix}%{$python_sitelib}"
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
|
for proj in isort-%{version}-py3-none-any.whl ./example_shared_isort_profile ./example_isort_formatting_plugin; do
|
||||||
$python -m pip install --verbose \
|
$python -m pip install --verbose \
|
||||||
--no-index \
|
--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-cache-dir\
|
||||||
--no-build-isolation \
|
--no-build-isolation \
|
||||||
--progress-bar off \
|
--progress-bar off \
|
||||||
--disable-pip-version-check \
|
--disable-pip-version-check \
|
||||||
${proj}
|
${proj}
|
||||||
done
|
done
|
||||||
|
|
||||||
export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
|
|
||||||
export PYTHONPATH="$(pwd)/isort-test-%{$python_bin_suffix}%{$python_sitelib}"
|
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
# test_projects_using_isort.py: these tests try to clone from
|
# test_projects_using_isort.py: these tests try to clone from
|
||||||
# online git repositories.
|
# online git repositories.
|
||||||
# test_settung_combinations.py::test_isort_is_idempotent
|
# test_setting_combinations.py::test_isort_is_idempotent
|
||||||
# is flaky https://github.com/PyCQA/isort/issues/1466
|
# is flaky https://github.com/PyCQA/isort/issues/1466
|
||||||
pytest-%{$python_bin_suffix} -v \
|
pytest-%{$python_bin_suffix} -v \
|
||||||
-W "ignore::UserWarning" \
|
-W "ignore::UserWarning" \
|
||||||
@ -118,6 +120,7 @@ pytest-%{$python_bin_suffix} -v \
|
|||||||
--ignore tests/integration/test_projects_using_isort.py \
|
--ignore tests/integration/test_projects_using_isort.py \
|
||||||
-k "not (test_setting_combinations and test_isort_is_idempotent)"
|
-k "not (test_setting_combinations and test_isort_is_idempotent)"
|
||||||
}
|
}
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user