- refresh node modules

* update cross-spawn module to 7.0.6 - CVE-2024-21538 (bsc#1233852)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-ydoc?expand=0&rev=25
This commit is contained in:
Benjamin Greiner 2024-12-05 16:46:40 +00:00 committed by Git OBS Bridge
commit fd11f913fb
12 changed files with 302 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
create_node_modules.sh Normal file
View File

@ -0,0 +1,19 @@
#!/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
pushd javascript
yarn
yarn build
popd
tar cJf node_modules.tar.xz \
node_modules \
javascript/lib \
javascript/tsconfig.tsbuildinfo

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac00f86169bad49ebb985abf612d34bd85ec7e26182427c40e4f766f289ef9a7
size 984325

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:716dda8cb8af881fec2fbc88aea3fb0d3bb24bbeb80a99a8aff2e01d089d5b0d
size 954635

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c319c72573c7a59fb937fa800e1267a13562b176214abba7898dbc036deab4e5
size 984836

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1dcbf13861b3678000d69af4ef38b49e3a12f8081ba851c680393c2e18bc4b84
size 955072

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d573d1fa8812255e79856eb58360404ebf6da355b635c8cb003bb1c2825f3d2
size 988339

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cf394ee7c6955287eead11126ad836083a9ca3cdef2e27221dc4dfe05bb6ab1
size 956687

3
node_modules.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9242ccec1dcf884972e77e9a68d3b743bd30b187f55858370cbeb3e706d25384
size 20156948

158
python-jupyter-ydoc.changes Normal file
View File

@ -0,0 +1,158 @@
-------------------------------------------------------------------
Thu Dec 5 16:01:23 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- refresh node modules
* update cross-spawn module to 7.0.6 - CVE-2024-21538 (bsc#1233852)
-------------------------------------------------------------------
Mon Nov 4 19:55:23 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 3.0.0
## Enhancements made
* Add the awareness in the shared document interface #282
(@brichet)
* Doc awareness #277 (@brichet)
* Improve notebook output stream initialization #275
(@davidbrochart)
* Add YDocument source getter/setter #273 (@davidbrochart)
* Allow empty notebook #266 (@davidbrochart)
* Add streamOutputChange attribute to cell change object #264
(@davidbrochart)
* Add hash property with setter and getter #262 (@krassowski)
* Expose execution_state in the JS package #259 (@krassowski)
* Add undo_manager to Y documents #248 (@davidbrochart)
* Add optional origin to transaction, filter out 'modeldb' origin
#246 (@davidbrochart)
* Add appendStreamOutput and removeStreamOutput methods #241
(@davidbrochart)
* Update python>=3.8, pycrdt>=0.8.11, pre-commit, README #217
(@davidbrochart)
* Store YBlob as bytes, not base64-encoded string #209
(@davidbrochart)
* Change notebook code cell stream output schema #201
(@davidbrochart)
* Add cell execution_state #197 (@davidbrochart)
## Bugs fixed
* Fix attachments change attribute assignment #260 (@krassowski)
* Fix createOutputs, rename 'modeldb' origin to 'silent-change'
#254 (@davidbrochart)
## Maintenance and upkeep improvements
* Revert #266 #280 (@davidbrochart)
* Improve notebook output stream initialization #275
(@davidbrochart)
* Fix dict type for python 3.8 #253 (@davidbrochart)
* Bump toshimaru/auto-author-assign from 2.1.0 to 2.1.1 #247
(@dependabot)
* Revert publish 3.0.0a0 (9c87cfd) #245 (@davidbrochart)
* Update releaser workflows #244 (@jtpio)
* Bump notebook version 1.0.0 -> 2.0.0 #236 (@davidbrochart)
* Fix subscription type, update pycrdt>=0.8.16 #222
(@davidbrochart)
* Update python>=3.8, pycrdt>=0.8.11, pre-commit, README #217
(@davidbrochart)
* Bump pre-commit/action from 3.0.0 to 3.0.1 #215 (@dependabot)
* Remove mention to y_py in docs #214 (@martinRenou)
* Bump toshimaru/auto-author-assign from 2.0.1 to 2.1.0 #212
(@dependabot)
-------------------------------------------------------------------
Fri Aug 30 11:06:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 2.1.1
* Fix dict type for python 3.8 #252 (@davidbrochart)
* Add undo_manager to Y documents (#248) #251 (@davidbrochart)
-------------------------------------------------------------------
Mon Jan 22 18:57:38 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 2.0.1
* Update pycrdt v0.8 #208 (@davidbrochart)
- Release 2.0.0
* Use pycrdt instead of y-py #194 (@davidbrochart)
- Ignore that pycrdt is still in incubation phase
gh#jupyter-server/jupyter_ydoc#211
-------------------------------------------------------------------
Sun Jan 21 13:17:27 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Disable tests for jupyter-collaboration and ypy-websocket
update gh#jupyter-server/jupyter_ydoc#211
-------------------------------------------------------------------
Sat Oct 7 13:45:03 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 1.1.1
* Fix joining of source when source is an array of strings #186
(@jtpio)
-------------------------------------------------------------------
Sun Sep 24 18:39:04 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 1.1.0
* Add source to dist for sourcemaps #182 (@vidartf)
* Create awareness interface #171 (@hbcarlos)
-------------------------------------------------------------------
Tue Jun 13 20:44:17 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Kill nodejs in between pytest runs
gh#jupyter-server/jupyter_ydoc#168
-------------------------------------------------------------------
Sun Jun 11 21:02:51 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 1.0.2
* Trust the default cell #161 (@krassowski)
- Releases 1.0.0, 1.0.1
* Fix metadata issue #158 (@hbcarlos)
* Add py.typed #152 (@davidbrochart)
* Add model version #139 (@davidbrochart)
- Release 0.3.x
* Fix notebook undo scope #148 (@fcollonval)
* Update YDocument constructor #142 (@trungleduc)
* Add ycells getter #136 (@davidbrochart)
* Split documents into separate files #135 (@davidbrochart)
* Fixes handling metadata changes #134 (@hbcarlos)
* Improves the initialization #124 (@hbcarlos)
* Improve Python API #122 (@davidbrochart)
* Notebook metadata #115 (@hbcarlos)
* Make YDocument a IObservableDisposable #108 (@fcollonval)
* Add readme to javascript package #106 (@fcollonval)
* Adds docstring to the python package #101 (@hbcarlos)
* Import shared model #86 (@fcollonval)
* Add path document attribute #81 (@davidbrochart)
* Make YBaseDoc an abstract base class #74 (@davidbrochart)
* Fixes multiple bugs #131 (@hbcarlos)
* Fixes metadata #120 (@hbcarlos)
* Support cell.source is [list, of, string] #112 (@Wh1isper)
* Removes YMap for attachements #77 (@fcollonval)
* Drop pkg_resources #59 (@jtpio)
* Remove factory API #133 (@hbcarlos)
* Import shared model #86 (@fcollonval)
-------------------------------------------------------------------
Mon Apr 24 19:25:19 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 0.2.4
* Fix metadata issue #158 (@hbcarlos)
-------------------------------------------------------------------
Sun Mar 19 17:05:44 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Downgrade to 0.2.3
* Rename JS package to @jupyter/ydoc #97 (@jtpio)
- Released as patch release for 0.2 branch
* jupyterlab 3.6 requires ydoc~=0.2.2
-------------------------------------------------------------------
Sun Feb 12 18:03:36 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Provide underscore name
-------------------------------------------------------------------
Sun Feb 5 16:52:33 UTC 2023 - Ben Greiner <code@bnavigator.de>
- 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

80
python-jupyter-ydoc.spec Normal file
View File

@ -0,0 +1,80 @@
#
# spec file for package python-jupyter-ydoc
#
# Copyright (c) 2024 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: 3.0.0
Release: 0
Summary: Document structures for collaborative editing using Ypy
License: BSD-3-Clause
URL: https://github.com/jupyter-server/jupyter_ydoc
# Versioned sdist
Source0: https://files.pythonhosted.org/packages/source/j/jupyter-ydoc/jupyter_ydoc-%{version}.tar.gz
# 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.8}
BuildRequires: %{python_module hatch_nodejs_version}
BuildRequires: %{python_module hatchling >= 1.10}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: (python-importlib-metadata >= 3.6 if python-base < 3.10)
Requires: (python-pycrdt >= 0.10.1 with python-pycrdt < 0.11)
Provides: python-jupyter_ydoc = %{version}-%{release}
BuildArch: noarch
# SECTION test
BuildRequires: %{python_module importlib-metadata >= 3.6 if %python-base < 3.10}
BuildRequires: %{python_module pycrdt >= 0.10.1 with %python-pycrdt < 0.11}
BuildRequires: %{python_module pycrdt-websocket >= 0.15.0 with %python-pycrdt-websocket < 0.16}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module websockets >= 10.0}
BuildRequires: nodejs
BuildRequires: procps
BuildRequires: yarn
# /SECTION
%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} -b1 -a2
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/jupyter-server/jupyter_ydoc/issues/168
%pytest
%files %{python_files}
%{python_sitelib}/jupyter_ydoc
%{python_sitelib}/jupyter_ydoc-%{version}.dist-info
%changelog