From 17c687c3cb6cb9956d65e5b792b98fcf3eb2a6a1a03eeb6986745fccb36bce88 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 26 Dec 2022 14:02:23 +0000 Subject: [PATCH] Accepting request 1045383 from home:bnavigator:branches:devel:languages:python:jupyter required for jupyter-server OBS-URL: https://build.opensuse.org/request/show/1045383 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-events?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + jupyter_events-0.5.0.tar.gz | 3 ++ python-jupyter-events.changes | 5 ++ python-jupyter-events.spec | 91 +++++++++++++++++++++++++++++++++++ 5 files changed, 123 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jupyter_events-0.5.0.tar.gz create mode 100644 python-jupyter-events.changes create mode 100644 python-jupyter-events.spec 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/jupyter_events-0.5.0.tar.gz b/jupyter_events-0.5.0.tar.gz new file mode 100644 index 0000000..b2f6ee0 --- /dev/null +++ b/jupyter_events-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e27ffdd6138699d47d42cb65ae6d79334ff7c0d923694381c991ce56a140f2cd +size 55838 diff --git a/python-jupyter-events.changes b/python-jupyter-events.changes new file mode 100644 index 0000000..563d010 --- /dev/null +++ b/python-jupyter-events.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Dec 25 22:08:53 UTC 2022 - Ben Greiner + +- Initial specfile for v0.5 +- Required by jupyter-server 2 diff --git a/python-jupyter-events.spec b/python-jupyter-events.spec new file mode 100644 index 0000000..c79a86a --- /dev/null +++ b/python-jupyter-events.spec @@ -0,0 +1,91 @@ +# +# spec file for package python-jupyter-events +# +# Copyright (c) 2022 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/ +# + + +# This is with alts/libalternatives only and has never been something else +%bcond_without libalternatives +Name: python-jupyter-events +Version: 0.5.0 +Release: 0 +Summary: Jupyter Event System library +License: BSD-3-Clause +URL: https://github.com/jupyter/jupyter_events +Source: https://files.pythonhosted.org/packages/source/j/jupyter_events/jupyter_events-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-PyYAML >= 6.0 +Requires: python-jsonschema-format-nongpl >= 4.3.0 +Requires: python-python-json-logger >= 2.0.4 +Requires: python-traitlets >= 5.3 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module PyYAML >= 6.0} +BuildRequires: %{python_module click} +BuildRequires: %{python_module jsonschema-format-nongpl >= 4.3.0} +BuildRequires: %{python_module pytest >= 6.1.0} +BuildRequires: %{python_module pytest-asyncio >= 0.19.0} +BuildRequires: %{python_module pytest-console-scripts} +BuildRequires: %{python_module python-json-logger >= 2.0.4} +BuildRequires: %{python_module rich} +BuildRequires: %{python_module traitlets >= 5.3} +# /SECTION +%python_subpackages + +%description +Jupyter Events enables Jupyter Python Applications (e.g. Jupyter Server, +JupyterLab Server, JupyterHub, etc.) to emit events—structured data +describing things happening inside the application. Other software +(e.g. client applications like JupyterLab) can listen and respond to +these events. + +%prep +%autosetup -p1 -n jupyter_events-%{version} +sed -i 's/--color=yes//' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/jupyter-events +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# flavored not yet installed libalts are not supported by python-rpm-macros +%{python_expand # +mkdir -p build/flavorbin +ln -s %{buildroot}%{_bindir}/jupyter-events-%{$python_bin_suffix} build/flavorbin/jupyter-events +} +%pytest + +%post +%python_install_alternative jupyter-events + +%postun +%python_uninstall_alternative jupyter-events + +%files %{python_files} +%python_alternative %{_bindir}/jupyter-events +%{python_sitelib}/jupyter_events +%{python_sitelib}/jupyter_events-%{version}.dist-info + +%changelog