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
This commit is contained in:
2023-03-19 20:30:50 +00:00
committed by Git OBS Bridge
commit dcc02406da
8 changed files with 134 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

24
_service Normal file
View File

@@ -0,0 +1,24 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/y-crdt/ypy.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">ypy</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">ypy</param>
</service>
</services>

5
cargo_config Normal file
View File

@@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

5
python-y-py.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sun Feb 5 18:01:35 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.5.5
- Required by jupyter-ydoc, required by jupyterlab 3.6

70
python-y-py.spec Normal file
View File

@@ -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

3
vendor.tar.xz Normal file
View File

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

3
ypy-0.5.5.tar.xz Normal file
View File

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