Benjamin Greiner 2023-12-24 14:24:51 +00:00 committed by Git OBS Bridge
parent a9629a9c96
commit 8c96429b5e

View File

@ -36,7 +36,7 @@ Summary: A pytest plugin for testing Jupyter libraries and extensions
License: BSD-3-Clause AND MIT
URL: https://github.com/jupyter-server/pytest-jupyter
Source: https://files.pythonhosted.org/packages/source/p/pytest_jupyter/pytest_jupyter-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
@ -45,7 +45,6 @@ Requires: python-jupyter_core
Requires: python-pytest
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module nbformat}
BuildRequires: %{python_module pytest-jupyter = %{version}}
BuildRequires: %{python_module pytest-jupyter-client = %{version}}
%if !%{with ringdisabled}
@ -60,8 +59,9 @@ A pytest plugin for testing Jupyter libraries and extensions.
%package client
Summary: A pytest plugin for testing Jupyter libraries and extensions [client] extra
Requires: python-ipykernel
Requires: python-ipykernel >= 6.14
Requires: python-jupyter_client >= 7.4
Requires: python-nbformat >= 5.3
Requires: python-pytest-jupyter = %{version}
%description client
@ -70,6 +70,7 @@ This subpackage provides the [client] extra dependencies
%package server
Summary: A pytest plugin for testing Jupyter libraries and extensions [server] extra
Requires: python-ipykernel >= 6.14
Requires: python-jupyter-server >= 1.21
Requires: python-nbformat >= 5.3
Requires: python-pytest-jupyter = %{version}
@ -81,7 +82,7 @@ This subpackage provides the [server] extra dependencies
%prep
%setup -q -n pytest_jupyter-%{version}
sed -i 's/--color=yes//' pyproject.toml
sed -i 's/ "--color=yes",//' pyproject.toml
%if !%{with test}
%build
@ -94,6 +95,7 @@ sed -i 's/--color=yes//' pyproject.toml
%if %{with test}
%check
mv pytest_jupyter pytest_jupyter.moved
%pytest
%endif