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