Accepting request 1134997 from devel:languages:python:jupyter

- Update to 0.8.0
  * Allow passing request_timeout to client_fetch #67 (@afbarbaro)
  * code maintenance
- Disable the -server subpackage for Ring1

OBS-URL: https://build.opensuse.org/request/show/1134997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-jupyter?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2023-12-25 18:04:25 +00:00 committed by Git OBS Bridge
commit 9924171176
4 changed files with 32 additions and 11 deletions

BIN
pytest_jupyter-0.7.0.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:842817c300802c8608676bbb1460ba0081f2688cf5cb55b87d7bad5dcb0e9729
size 15716

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Dec 24 14:14:51 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 0.8.0
* Allow passing request_timeout to client_fetch #67 (@afbarbaro)
* code maintenance
- Disable the -server subpackage for Ring1
-------------------------------------------------------------------
Sun Apr 23 17:24:28 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -25,14 +25,18 @@
%bcond_with test
%endif
# defined at Ring1-MinimalX lettered staging prjconf
# We do not want jupyter-server in ring1
%bcond_with ringdisabled
Name: python-pytest-jupyter%{psuffix}
Version: 0.7.0
Version: 0.8.0
Release: 0
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
@ -41,10 +45,11 @@ 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}
BuildRequires: %{python_module pytest-jupyter-server = %{version}}
%endif
BuildRequires: %{python_module pytest-timeout}
%endif
%python_subpackages
@ -54,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-jupyter_client >= 7.4
Requires: python-ipykernel >= 6.14
Requires: python-jupyter-client >= 7.4
Requires: python-nbformat >= 5.3
Requires: python-pytest-jupyter = %{version}
%description client
@ -64,10 +70,11 @@ 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-client >= 7.4
Requires: python-jupyter-server >= 1.21
Requires: python-nbformat >= 5.3
Requires: python-pytest-jupyter = %{version}
Requires: python-pytest-jupyter-client = %{version}
%description server
A pytest plugin for testing Jupyter libraries and extensions.
@ -75,7 +82,10 @@ This subpackage provides the [server] extra dependencies
%prep
%setup -q -n pytest_jupyter-%{version}
sed -i 's/--color=yes//' pyproject.toml
sed -e 's/ "--color=yes",//' -i pyproject.toml
%if %{with ringdisabled}
sed -e "/jupyter_server/d" -i tests/conftest.py
%endif
%if !%{with test}
%build
@ -88,7 +98,8 @@ sed -i 's/--color=yes//' pyproject.toml
%if %{with test}
%check
%pytest
mv pytest_jupyter pytest_jupyter.moved
%pytest %{?_with_ringdisabled:--ignore tests/test_jupyter_server.py}
%endif
%if !%{with test}
@ -101,8 +112,10 @@ sed -i 's/--color=yes//' pyproject.toml
%files %{python_files client}
%license LICENSE
%if !%{with ringdisabled}
%files %{python_files server}
%license LICENSE
%endif
%endif
%changelog