Sync from SUSE:SLFO:Main python-pytest-jupyter revision ca32486a5aca023007a3a7070e784308

This commit is contained in:
Adrian Schröter 2024-05-03 22:25:27 +02:00
commit 1e61fe214c
5 changed files with 154 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

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

Binary file not shown.

View File

@ -0,0 +1,17 @@
-------------------------------------------------------------------
Sun Apr 23 17:24:28 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 0.7.0
* Enable header overrides in jp_ws_fetch fixture by @kevin-bates
in #51
-------------------------------------------------------------------
Thu Dec 29 22:30:34 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Apply spec-cleaner and package README
-------------------------------------------------------------------
Sun Dec 25 21:36:22 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.6.2
- Required to test jupyter-server 2

108
python-pytest-jupyter.spec Normal file
View File

@ -0,0 +1,108 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pytest-jupyter%{psuffix}
Version: 0.7.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 hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
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}}
BuildRequires: %{python_module pytest-jupyter-server = %{version}}
BuildRequires: %{python_module pytest-timeout}
%endif
%python_subpackages
%description
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-pytest-jupyter = %{version}
%description client
A pytest plugin for testing Jupyter libraries and extensions.
This subpackage provides the [client] extra dependencies
%package server
Summary: A pytest plugin for testing Jupyter libraries and extensions [server] extra
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.
This subpackage provides the [server] extra dependencies
%prep
%setup -q -n pytest_jupyter-%{version}
sed -i 's/--color=yes//' pyproject.toml
%if !%{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/pytest_jupyter
%{python_sitelib}/pytest_jupyter-%{version}.dist-info
%files %{python_files client}
%license LICENSE
%files %{python_files server}
%license LICENSE
%endif
%changelog