From c11015498505f291234bdbadecc6a8d87741552d0f929cce822fbdd8df795b72 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 25 Dec 2022 21:49:37 +0000 Subject: [PATCH] - Initial specfile for v0.6.2 - Required to test jupyter-server 2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pytest-jupyter?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _multibuild | 3 + pytest_jupyter-0.6.2.tar.gz | 3 + python-pytest-jupyter.changes | 5 ++ python-pytest-jupyter.spec | 106 ++++++++++++++++++++++++++++++++++ 6 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 pytest_jupyter-0.6.2.tar.gz create mode 100644 python-pytest-jupyter.changes create mode 100644 python-pytest-jupyter.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..ec2fdbb --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + \ No newline at end of file diff --git a/pytest_jupyter-0.6.2.tar.gz b/pytest_jupyter-0.6.2.tar.gz new file mode 100644 index 0000000..2ff1385 --- /dev/null +++ b/pytest_jupyter-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f80f573384f274470282d044cd2566b81d7379112446f69adb1fcdfc3351ca +size 15174 diff --git a/python-pytest-jupyter.changes b/python-pytest-jupyter.changes new file mode 100644 index 0000000..bbbcbfb --- /dev/null +++ b/python-pytest-jupyter.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Dec 25 21:36:22 UTC 2022 - Ben Greiner + +- Initial specfile for v0.6.2 +- Required to test jupyter-server 2 diff --git a/python-pytest-jupyter.spec b/python-pytest-jupyter.spec new file mode 100644 index 0000000..6fae3ee --- /dev/null +++ b/python-pytest-jupyter.spec @@ -0,0 +1,106 @@ +# +# spec file for package python-pytest-jupyter +# +# Copyright (c) 2022 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.6.2 +Release: 0 +Summary: A pytest plugin for testing Jupyter libraries and extensions +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-0.6.2.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: fdupes +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 +%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 + +%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 + +%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 +%{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