1
0
Files
python-pyviz-comms/python-pyviz-comms.spec
Todd R 172f9b4fdf Accepting request 1169583 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to 3.0.2
  * Ensure save handler gracefully handles undefined layout data
- Update to 3.0.1
  * Add save handler for Panel Layout Builder
  * Publish again to the `pyviz` channel
- Update to 3.0.0
  * Update to JupyterLab 4
  * pip downstream dependency to fix build error
- Switch to wheel to make sure jupyterlab plugin is properly installed
- Package jupyterlab plugin

OBS-URL: https://build.opensuse.org/request/show/1169583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pyviz-comms?expand=0&rev=18
2024-04-22 13:21:42 +00:00

92 lines
3.1 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.2
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
Source0: https://files.pythonhosted.org/packages/py3/p/pyviz-comms/pyviz_comms-%{version}-py3-none-any.whl
Source99: python-pyviz-comms-rpmlintrc
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 40.8.0}
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
%setup -q -c -T
%build
# not needed
%install
%pyproject_install %{SOURCE0}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
cp %{buildroot}%{python_sitelib}/pyviz_comms-%{version}.dist-info/licenses/LICENSE .
cp %{buildroot}%{python_sitelib}/pyviz_comms-%{version}.dist-info/licenses/LICENSE.txt .
%check
%pytest %{buildroot}%{python_sitelib}/pyviz_comms
%files %{python_files}
%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