From 330462095522a4d1410ebe84e9a0c8960d087d0743a16bde50e76df3546ce23a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 22 May 2024 04:15:15 +0000 Subject: [PATCH] - Remove upper bound on pytest, and switch to importlib import-mode. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=59 --- python-jupyter-core.changes | 5 +++++ python-jupyter-core.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-jupyter-core.changes b/python-jupyter-core.changes index cecd116..5477426 100644 --- a/python-jupyter-core.changes +++ b/python-jupyter-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 22 04:15:02 UTC 2024 - Steve Kowalik + +- Remove upper bound on pytest, and switch to importlib import-mode. + ------------------------------------------------------------------- Fri Mar 29 18:20:02 UTC 2024 - Ben Greiner diff --git a/python-jupyter-core.spec b/python-jupyter-core.spec index 32cabda..d8b1f47 100644 --- a/python-jupyter-core.spec +++ b/python-jupyter-core.spec @@ -68,7 +68,7 @@ BuildArch: noarch %if %{with test} BuildRequires: %{python_module ipykernel} 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} %endif %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" # async failure donttest="$donttest or test_ensure_async" -%pytest -k "not ($donttest)" +%pytest --import-mode=importlib -k "not ($donttest)" %endif %pre