From 200ef37b1433221205f95ad1bf1dd0687c4739b6f5a5cb7c3799f4e74a0388e5 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 4 Aug 2022 10:26:58 +0000 Subject: [PATCH] - Remove nbformat from the :test flavor. Run locally `--with localtests` for not skipping the tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=90 --- python-ipython.changes | 6 ++++++ python-ipython.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-ipython.changes b/python-ipython.changes index 5f1ab70..fca1067 100644 --- a/python-ipython.changes +++ b/python-ipython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 4 10:24:27 UTC 2022 - Ben Greiner + +- Remove nbformat from the :test flavor. Run locally + `--with localtests` for not skipping the tests. + ------------------------------------------------------------------- Sat Jun 4 23:13:12 UTC 2022 - Arun Persaud diff --git a/python-ipython.spec b/python-ipython.spec index 4e16556..0be7e38 100644 --- a/python-ipython.spec +++ b/python-ipython.spec @@ -24,13 +24,15 @@ %define psuffix %{nil} %bcond_with test %endif -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 +# extra tests are skipped automatically, don't require these packages for Ring1 +%bcond_with localtest + %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif + Name: python-ipython%{psuffix} Version: 8.4.0 Release: 0 @@ -83,7 +85,6 @@ BuildArch: noarch BuildRequires: %{python_module curio} BuildRequires: %{python_module ipython = %{version}} BuildRequires: %{python_module matplotlib} -BuildRequires: %{python_module nbformat} BuildRequires: %{python_module numpy >= 1.19} BuildRequires: %{python_module pandas} BuildRequires: %{python_module pygments} @@ -92,6 +93,9 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module testpath} BuildRequires: %{python_module trio} %endif +%if %{with localtest} +BuildRequires: %{python_module nbformat} +%endif %if !%{with test} BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme