Accepting request 1140766 from home:alarrosa:branches:devel:languages:python
- Disable pylama tests in SLE since pylama adds too many dependencies. OBS-URL: https://build.opensuse.org/request/show/1140766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=113
This commit is contained in:
parent
02c9ad66ff
commit
857e5d3d8d
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 15 17:50:47 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Disable pylama tests in SLE since pylama adds too many
|
||||||
|
dependencies.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Dec 17 02:10:01 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Sun Dec 17 02:10:01 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,6 +25,12 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
|
%bcond_with pylama
|
||||||
|
%else
|
||||||
|
%bcond_without pylama
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-isort%{psuffix}
|
Name: python-isort%{psuffix}
|
||||||
Version: 5.13.2
|
Version: 5.13.2
|
||||||
@ -58,7 +64,9 @@ BuildRequires: %{python_module numpy}
|
|||||||
BuildRequires: %{python_module pip-api}
|
BuildRequires: %{python_module pip-api}
|
||||||
BuildRequires: %{python_module pipreqs}
|
BuildRequires: %{python_module pipreqs}
|
||||||
BuildRequires: %{python_module poetry}
|
BuildRequires: %{python_module poetry}
|
||||||
|
%if %{with pylama}
|
||||||
BuildRequires: %{python_module pylama}
|
BuildRequires: %{python_module pylama}
|
||||||
|
%endif
|
||||||
BuildRequires: %{python_module pytest > 6.0}
|
BuildRequires: %{python_module pytest > 6.0}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
BuildRequires: %{python_module toml >= 0.10.2}
|
BuildRequires: %{python_module toml >= 0.10.2}
|
||||||
@ -79,6 +87,10 @@ too.
|
|||||||
%setup -q -n isort-%{version}
|
%setup -q -n isort-%{version}
|
||||||
chmod -x LICENSE
|
chmod -x LICENSE
|
||||||
|
|
||||||
|
%if %{without pylama}
|
||||||
|
sed -i '/import isort.pylama_isort/d' tests/unit/test_importable.py
|
||||||
|
%endif
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# increase test deadline for slow obs executions
|
# increase test deadline for slow obs executions
|
||||||
import hypothesis
|
import hypothesis
|
||||||
@ -107,6 +119,9 @@ hypothesis.settings.register_profile(
|
|||||||
ignoretests="--ignore tests/integration/test_projects_using_isort.py"
|
ignoretests="--ignore tests/integration/test_projects_using_isort.py"
|
||||||
# don't run benchmarks
|
# don't run benchmarks
|
||||||
ignoretests+=" --ignore tests/benchmark"
|
ignoretests+=" --ignore tests/benchmark"
|
||||||
|
%if %{without pylama}
|
||||||
|
ignoretests+=" --ignore tests/unit/test_pylama_isort.py"
|
||||||
|
%endif
|
||||||
# test_setting_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
|
||||||
donttest="(test_setting_combinations and test_isort_is_idempotent)"
|
donttest="(test_setting_combinations and test_isort_is_idempotent)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user