forked from pool/python-jupyter-ydoc
Accepting request 1063595 from home:bnavigator:branches:devel:languages:python:jupyter
- Initial specfile for v0.3.1 - Required by jupyterlab 3.6 - Provide node_modules.tar.xz generated by create_node_modules.sh for the tests. Those modules are not part of the python package OBS-URL: https://build.opensuse.org/request/show/1063595 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-ydoc?expand=0&rev=3
This commit is contained in:
parent
612cd20d7f
commit
532576a6a4
26
create_node_modules.sh
Normal file
26
create_node_modules.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Script to create node_modules.tar.xz for the tests.
|
||||||
|
# Adapted from .github/workflows/test.yml
|
||||||
|
# Execute this in an extracted github archive/cloned repository
|
||||||
|
# Note: The pathname MUST NOT include any ':' as is common
|
||||||
|
# in checked out obs package directories.
|
||||||
|
|
||||||
|
# requires: yarn, npm
|
||||||
|
|
||||||
|
pushd javascript
|
||||||
|
yarn
|
||||||
|
yarn build
|
||||||
|
popd
|
||||||
|
pushd tests
|
||||||
|
npm install
|
||||||
|
popd
|
||||||
|
|
||||||
|
tar cJf node_modules.tar.xz \
|
||||||
|
yarn.lock \
|
||||||
|
package-lock.json \
|
||||||
|
node_modules \
|
||||||
|
javascript/lib \
|
||||||
|
javascript/node_modules \
|
||||||
|
javascript/tsconfig.tsbuildinfo
|
||||||
|
|
3
jupyter_ydoc-0.3.1.tar.gz
Normal file
3
jupyter_ydoc-0.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:23948daf60a0c3c0a4b3715a66cb6ccad2de56694864842534fb1b1564b9b56b
|
||||||
|
size 148355
|
3
node_modules.tar.xz
Normal file
3
node_modules.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4fca47a96125f721282d6026d9379d3d7bab7cc3520bebb1eee67ea991f67f53
|
||||||
|
size 22739720
|
@ -3,3 +3,5 @@ Sun Feb 5 16:52:33 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
|||||||
|
|
||||||
- Initial specfile for v0.3.1
|
- Initial specfile for v0.3.1
|
||||||
- Required by jupyterlab 3.6
|
- Required by jupyterlab 3.6
|
||||||
|
- Provide node_modules.tar.xz generated by create_node_modules.sh
|
||||||
|
for the tests. Those modules are not part of the python package
|
||||||
|
@ -22,20 +22,31 @@ Release: 0
|
|||||||
Summary: Document structures for collaborative editing using Ypy
|
Summary: Document structures for collaborative editing using Ypy
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/jupyter-server/jupyter_ydoc
|
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
|
# Versioned sdist
|
||||||
BuildRequires: python-rpm-macros
|
Source0: https://files.pythonhosted.org/packages/source/j/jupyter-ydoc/jupyter_ydoc-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
# unversioned, but tests
|
||||||
|
Source1: https://github.com/jupyter-server/jupyter_ydoc/archive/refs/tags/v%{version}.tar.gz#/jupyter_ydoc-%{version}-gh.tar.gz
|
||||||
|
Source2: node_modules.tar.xz
|
||||||
|
# Execute this on every package update. See comments in the script.
|
||||||
|
Source3: create_node_modules.sh
|
||||||
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module hatch_nodejs_version}
|
||||||
BuildRequires: %{python_module hatchling}
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module hatch-nodejs-version}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: (python-importlib-metadata if python-base < 3.10)
|
Requires: (python-importlib-metadata if python-base < 3.10)
|
||||||
Requires: (python-y-py >= 0.5.3 with python-y-py < 0.6.0)
|
Requires: (python-y-py >= 0.5.3 with python-y-py < 0.6.0)
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION test
|
# SECTION test
|
||||||
BuildRequires: %{python_module importlib-metadata if %python-base < 3.10}
|
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-asyncio}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module websockets >= 10.0}
|
||||||
|
BuildRequires: %{python_module y-py >= 0.5.3 with %python-y-py < 0.6.0}
|
||||||
|
BuildRequires: %{python_module ypy-websocket >= 0.3.1}
|
||||||
|
BuildRequires: nodejs
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,9 +56,8 @@ Built-in documents include:
|
|||||||
- `YUnicode`: a generic UTF8-encoded text document (`YFile` is an alias to `YUnicode`).
|
- `YUnicode`: a generic UTF8-encoded text document (`YFile` is an alias to `YUnicode`).
|
||||||
- `YNotebook`: a Jupyter notebook document.
|
- `YNotebook`: a Jupyter notebook document.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jupyter-ydoc-%{version}
|
%setup -q -n jupyter_ydoc-%{version} -b1 -a2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -61,6 +71,6 @@ Built-in documents include:
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/jupyter_ydoc
|
%{python_sitelib}/jupyter_ydoc
|
||||||
%{python_sitelib}/jupyter_ydoc-%{release}.dist-info
|
%{python_sitelib}/jupyter_ydoc-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user