From a58490a334d2a8b2ab04af773446deadb3baaff973a6707d44785029facf6d5d Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 29 Dec 2022 22:30:51 +0000 Subject: [PATCH 1/2] - Apply spec-cleaner and package README OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pytest-jupyter?expand=0&rev=3 --- python-pytest-jupyter.changes | 5 +++++ python-pytest-jupyter.spec | 42 ++++++++++++++++++----------------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/python-pytest-jupyter.changes b/python-pytest-jupyter.changes index bbbcbfb..cde0f0e 100644 --- a/python-pytest-jupyter.changes +++ b/python-pytest-jupyter.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 29 22:30:34 UTC 2022 - Ben Greiner + +- Apply spec-cleaner and package README + ------------------------------------------------------------------- Sun Dec 25 21:36:22 UTC 2022 - Ben Greiner diff --git a/python-pytest-jupyter.spec b/python-pytest-jupyter.spec index 28b47b1..54f1766 100644 --- a/python-pytest-jupyter.spec +++ b/python-pytest-jupyter.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -28,45 +29,45 @@ Name: python-pytest-jupyter%{psuffix} Version: 0.6.2 Release: 0 Summary: A pytest plugin for testing Jupyter libraries and extensions -License: MIT and BSD-3-Clause +License: MIT AND BSD-3-Clause 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-rpm-macros +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: %{python_module base >= 3.7} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-jupyter_core Requires: python-pytest -%if %{with test} -BuildRequires: %{python_module pytest-jupyter = %{version}} -BuildRequires: %{python_module pytest-jupyter-server = %{version}} -BuildRequires: %{python_module pytest-jupyter-client = %{version}} -BuildRequires: %{python_module pytest-timeout} -BuildRequires: %{python_module nbformat} -%endif 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-pytest-jupyter = %{version} -Requires: python-jupyter_client >= 7.4 -Requires: python-ipykernel +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-pytest-jupyter = %{version} -Requires: python-pytest-jupyter-client = %{version} -Requires: python-nbformat >= 5.3 -Requires: python-jupyter-server >= 1.21 +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. @@ -93,6 +94,7 @@ sed -i 's/--color=yes//' pyproject.toml %if !%{with test} %files %{python_files} %license LICENSE +%doc README.md %{python_sitelib}/pytest_jupyter %{python_sitelib}/pytest_jupyter-%{version}.dist-info From 966b4d6de8a45a0a2623da4a9c49735feec936218ec058b46495e3cc69d96fac Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 29 Dec 2022 22:31:01 +0000 Subject: [PATCH 2/2] - Apply spec-cleaner and package README OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pytest-jupyter?expand=0&rev=4 --- python-pytest-jupyter.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pytest-jupyter.changes b/python-pytest-jupyter.changes index cde0f0e..0877b6b 100644 --- a/python-pytest-jupyter.changes +++ b/python-pytest-jupyter.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu Dec 29 22:30:34 UTC 2022 - Ben Greiner -- Apply spec-cleaner and package README +- Apply spec-cleaner and package README ------------------------------------------------------------------- Sun Dec 25 21:36:22 UTC 2022 - Ben Greiner