SHA256
1
0
forked from pool/python-isort

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:
Sebastian Wagner 2024-01-23 07:17:16 +00:00 committed by Git OBS Bridge
parent 02c9ad66ff
commit 857e5d3d8d
2 changed files with 22 additions and 1 deletions

View File

@ -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>

View File

@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,12 @@
%bcond_with test
%endif
%if 0%{?suse_version} < 1550
%bcond_with pylama
%else
%bcond_without pylama
%endif
%{?sle15_python_module_pythons}
Name: python-isort%{psuffix}
Version: 5.13.2
@ -58,7 +64,9 @@ BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs}
BuildRequires: %{python_module poetry}
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
BuildRequires: %{python_module pytest > 6.0}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module toml >= 0.10.2}
@ -79,6 +87,10 @@ too.
%setup -q -n isort-%{version}
chmod -x LICENSE
%if %{without pylama}
sed -i '/import isort.pylama_isort/d' tests/unit/test_importable.py
%endif
echo "
# increase test deadline for slow obs executions
import hypothesis
@ -107,6 +119,9 @@ hypothesis.settings.register_profile(
ignoretests="--ignore tests/integration/test_projects_using_isort.py"
# don't run benchmarks
ignoretests+=" --ignore tests/benchmark"
%if %{without pylama}
ignoretests+=" --ignore tests/unit/test_pylama_isort.py"
%endif
# test_setting_combinations.py::test_isort_is_idempotent
# is flaky https://github.com/PyCQA/isort/issues/1466
donttest="(test_setting_combinations and test_isort_is_idempotent)"