From 612cd20d7ffdff3d68fb466ba85a5b1c7484f4476f5d00526e5819954c093ea4 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 5 Feb 2023 17:31:26 +0000 Subject: [PATCH] - Initial specfile for v0.3.1 - Required by jupyterlab 3.6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-ydoc?expand=0&rev=2 --- python-jupyter-ydoc.changes | 5 +++ python-jupyter-ydoc.spec | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 python-jupyter-ydoc.changes create mode 100644 python-jupyter-ydoc.spec diff --git a/python-jupyter-ydoc.changes b/python-jupyter-ydoc.changes new file mode 100644 index 0000000..2339b5e --- /dev/null +++ b/python-jupyter-ydoc.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Feb 5 16:52:33 UTC 2023 - Ben Greiner + +- Initial specfile for v0.3.1 +- Required by jupyterlab 3.6 diff --git a/python-jupyter-ydoc.spec b/python-jupyter-ydoc.spec new file mode 100644 index 0000000..692aad9 --- /dev/null +++ b/python-jupyter-ydoc.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-jupyter-ydoc +# +# 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/ +# + + +Name: python-jupyter-ydoc +Version: 0.3.1 +Release: 0 +Summary: Document structures for collaborative editing using Ypy +License: BSD-3-Clause +URL: https://github.com/jupyter-server/jupyter_ydoc +Source: https://github.com/jupyter-server/jupyter_ydoc/archive/refs/tags/v%{version}.tar.gz#/jupyter_ydoc-%{version}-gh.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module hatch-nodejs-version} +BuildRequires: fdupes +Requires: (python-importlib-metadata if python-base < 3.10) +Requires: (python-y-py >= 0.5.3 with python-y-py < 0.6.0) +# SECTION test +BuildRequires: %{python_module importlib-metadata if %python-base < 3.10} +BuildRequires: %{python_module y-py >= 0.5.3 with %python-y-py < 0.6.0} +BuildRequires: %{python_module pytest} +# /SECTION +BuildArch: noarch +%python_subpackages + +%description +Ypy-based data structures for various documents used in the Jupyter ecosystem. +Built-in documents include: + - `YBlob`: a generic immutable binary document. + - `YUnicode`: a generic UTF8-encoded text document (`YFile` is an alias to `YUnicode`). + - `YNotebook`: a Jupyter notebook document. + + +%prep +%setup -q -n jupyter-ydoc-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/jupyter_ydoc +%{python_sitelib}/jupyter_ydoc-%{release}.dist-info + +%changelog