commit dcc02406da826642f4ee75ca88698638bf3e69fdb8529abde8685680816eee7e Author: Benjamin Greiner Date: Sun Mar 19 20:30:50 2023 +0000 Accepting request 1072971 from home:bnavigator:branches:devel:languages:python:jupyter required by jupyterlab OBS-URL: https://build.opensuse.org/request/show/1072971 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-y-py?expand=0&rev=1 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/_service b/_service new file mode 100644 index 0000000..9f0fbaf --- /dev/null +++ b/_service @@ -0,0 +1,24 @@ + + + https://github.com/y-crdt/ypy.git + git + @PARENT_TAG@ + @PARENT_TAG@ + v(.*) + \1 + + + + *.tar + xz + + + + ypy + xz + true + + + ypy + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/python-y-py.changes b/python-y-py.changes new file mode 100644 index 0000000..1bddfca --- /dev/null +++ b/python-y-py.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Feb 5 18:01:35 UTC 2023 - Ben Greiner + +- Initial specfile for v0.5.5 +- Required by jupyter-ydoc, required by jupyterlab 3.6 diff --git a/python-y-py.spec b/python-y-py.spec new file mode 100644 index 0000000..58b7bff --- /dev/null +++ b/python-y-py.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-y-py +# +# 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-y-py +Version: 0.5.5 +Release: 0 +Summary: Python bindings for the Y-CRDT built from yrs (Rust) +License: MIT +URL: https://github.com/y-crdt/ypy +# Update through `osc service runall` +Source: ypy-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module maturin} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: cargo-packaging +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-y_py = %{version}-%{release} +%python_subpackages + +%description +Python binding for Y-CRDT. It provides distributed data types that enable +real-time collaboration between devices. Ypy can sync data with any other +platform that has a Y-CRDT binding, allowing for seamless cross-domain +communication. The library is a thin wrapper around Yrs, taking advantage of +the safety and performance of Rust. + +Project is still experimental. Expect the API to change before a version 1.0 +stable release. + +%prep +%setup -q -n ypy-%{version} -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/y_py +%{python_sitearch}/y_py-%{version}.dist-info + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..a1b2322 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01e7bb777baa6adf85133b87a1ca5d539c2907146b59ce262c0f3ab678473c35 +size 11655168 diff --git a/ypy-0.5.5.tar.xz b/ypy-0.5.5.tar.xz new file mode 100644 index 0000000..a4ea219 --- /dev/null +++ b/ypy-0.5.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44e4b686e5868f1ee4a7b1b6ccb6d51d3deaf386b8f6265232300353245aa5b7 +size 35660