commit 248d0ab78ac0727f1a17104bb932485a09287f7eb2922df2543581b41324a669 Author: Benjamin Greiner Date: Sun May 5 18:36:40 2024 +0000 - Initial specfile for v0.19.0 - Now separate from python-ipyleaflet OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-leaflet?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/LICENSE b/LICENSE new file mode 100644 index 0000000..469f00f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2018, Project Jupyter Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/jupyter_leaflet-0.19.0.tar.gz b/jupyter_leaflet-0.19.0.tar.gz new file mode 100644 index 0000000..9ca47cb --- /dev/null +++ b/jupyter_leaflet-0.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3201c9c7dee782b2f64c86c508e106452e823ad65a127656191aa0f88c44454d +size 54563535 diff --git a/python-jupyter-leaflet.changes b/python-jupyter-leaflet.changes new file mode 100644 index 0000000..90aa551 --- /dev/null +++ b/python-jupyter-leaflet.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun May 5 18:15:48 UTC 2024 - Ben Greiner + +- Initial specfile for v0.19.0 +- Now separate from python-ipyleaflet diff --git a/python-jupyter-leaflet.spec b/python-jupyter-leaflet.spec new file mode 100644 index 0000000..c68ffb4 --- /dev/null +++ b/python-jupyter-leaflet.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-jupyter-leaflet +# +# 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/ +# + + +%define distversion 0.19 +Name: python-jupyter-leaflet +Version: 0.19.0 +Release: 0 +Summary: Leaflet extensions for JupyterLab and Jupyter Notebook +License: MIT +URL: https://github.com/jupyter-widgets/ipyleaflet +Source0: https://files.pythonhosted.org/packages/source/j/jupyter_leaflet/jupyter_leaflet-%{version}.tar.gz +Source1: https://github.com/jupyter-widgets/ipyleaflet/raw/%{version}/LICENSE +BuildRequires: %{python_module hatch-jupyter-builder >= 0.8.1} +BuildRequires: %{python_module hatch-nodejs-version >= 0.3.2} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module jupyterlab} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: jupyter-rpm-macros +BuildRequires: python-rpm-macros +Provides: python-jupyter_leaflet = %{version}-%{release} +BuildArch: noarch +%python_subpackages + +%description +Interactive leaflet widget for the Jupyter notebook + +The reference Python backend is ipyleaflet + +%package -n jupyter-leaflet +Summary: Interactive leaflet widget for the Jupyter notebook - Jupyter files +# Any flavor is okay, but suggest the primary one for automatic zypper choice -- boo#1214354 +Requires: python3dist(jupyter-leaflet) = %{distversion} +Suggests: python3-jupyter-leaflet + +%description -n jupyter-leaflet +Interactive leaflet widget for the Jupyter notebook + +This package provides the extensions for jupyter notebook and jupyterlab. + +%prep +%autosetup -p1 -n jupyter_leaflet-%{version} +cp %{SOURCE1} ./ + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{_jupyter_prefix} + +#%%check +# no python checks, but make sure to look into ipyleaflet + +%files %{python_files} +%{python_sitelib}/jupyter_leaflet +%{python_sitelib}/jupyter_leaflet-%{version}.dist-info + +%files -n jupyter-leaflet +%license LICENSE +%{_jupyter_config} %{_jupyter_nb_notebook_confdir}/jupyter-leaflet.json +%{_jupyter_nbextension_dir}/jupyter-leaflet +%{_jupyter_labextensions_dir3}/jupyter-leaflet + +%changelog