forked from pool/python-pyviz-comms
* Reformat `package.json` to 2-space indent #128 (@krassowski) * Fix panel preview rendering on JupyterHub 4.1+ #125 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pyviz-comms?expand=0&rev=22
96 lines
3.2 KiB
RPMSpec
96 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-pyviz-comms
|
|
#
|
|
# 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-pyviz-comms
|
|
Version: 3.0.3
|
|
Release: 0
|
|
Summary: Tool to launch jobs, organize the output, and dissect the results
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/pyviz/pyviz_comms
|
|
# For the bundled JS files
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyviz_comms/pyviz_comms-%{version}.tar.gz
|
|
# For the tests
|
|
Source1: https://github.com/holoviz/pyviz_comms/archive/refs/tags/v%{version}.tar.gz#/pyviz_comms-%{version}-gh.tar.gz
|
|
Source99: python-pyviz-comms-rpmlintrc
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module hatch-jupyter-builder}
|
|
BuildRequires: %{python_module hatch-nodejs-version}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module jupyterlab}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: jupyter-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-param
|
|
Recommends: jupyter-jupyterlab-pyviz = %{version}
|
|
Provides: python-pyviz_comms = %{version}-%{release}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module param}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
PyViz-Comms offers a simple bidirectional communication architecture
|
|
for PyViz tools including support for Jupyter comms in both the
|
|
classic notebook and Jupyterlab.
|
|
|
|
%package -n jupyter-jupyterlab-pyviz
|
|
Release: 0
|
|
Summary: PyViz JupyterLab Extension
|
|
Group: Development/Languages/Python
|
|
Requires: jupyter-jupyterlab
|
|
# Any flavor is okay, but suggest the primary one for automatic zypper choice -- boo#1214354
|
|
Requires: python3dist(pyviz-comms) = %{version}
|
|
Suggests: python3-pyviz-comms
|
|
|
|
%description -n jupyter-jupyterlab-pyviz
|
|
Jupyter extension to display matplotlib plots in a widget.
|
|
|
|
This package provides the JupyterLab extension.
|
|
|
|
%prep
|
|
%autosetup -p1 -n pyviz_comms-%{version}
|
|
tar -x -f %{SOURCE1} --strip-components=1 pyviz_comms-%{version}/pyviz_comms/tests/
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE LICENSE.txt
|
|
%{python_sitelib}/pyviz_comms
|
|
%{python_sitelib}/pyviz_comms-%{version}.dist-info
|
|
|
|
%files -n jupyter-jupyterlab-pyviz
|
|
%license LICENSE LICENSE.txt
|
|
%dir %{_jupyter_labextensions_dir3}/@pyviz/
|
|
%{_jupyter_labextensions_dir3}/@pyviz/jupyterlab_pyviz
|
|
|
|
%changelog
|