1
0

Accepting request 1175661 from devel:languages:python:jupyter

- Remove upper bound on pytest, and switch to importlib import-mode.

OBS-URL: https://build.opensuse.org/request/show/1175661
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter-core?expand=0&rev=26
This commit is contained in:
Ana Guerrero 2024-05-22 19:29:28 +00:00 committed by Git OBS Bridge
commit bade43cf3b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 22 04:15:02 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Remove upper bound on pytest, and switch to importlib import-mode.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 29 18:20:02 UTC 2024 - Ben Greiner <code@bnavigator.de> Fri Mar 29 18:20:02 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -68,7 +68,7 @@ BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module jupyter-core = %{version}} BuildRequires: %{python_module jupyter-core = %{version}}
BuildRequires: %{python_module pytest >= 7 with %python-pytest < 8} BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest-timeout}
%endif %endif
%python_subpackages %python_subpackages
@ -115,7 +115,7 @@ donttest="test_jupyter_path_prefer_env or test_jupyter_config_path_prefer_env"
donttest="$donttest or test_config_dir_linux" donttest="$donttest or test_config_dir_linux"
# async failure # async failure
donttest="$donttest or test_ensure_async" donttest="$donttest or test_ensure_async"
%pytest -k "not ($donttest)" %pytest --import-mode=importlib -k "not ($donttest)"
%endif %endif
%pre %pre