1
0

Accepting request 1172347 from devel:languages:python:numeric

- Bring back package %build from source, removing binary .whl
  distribution from package.

OBS-URL: https://build.opensuse.org/request/show/1172347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyviz-comms?expand=0&rev=9
This commit is contained in:
2024-05-07 16:04:26 +00:00
committed by Git OBS Bridge
5 changed files with 26 additions and 13 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 7 07:49:07 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Bring back package %build from source, removing binary .whl
distribution from package.
-------------------------------------------------------------------
Sun Apr 21 22:22:11 UTC 2024 - Todd R <toddrme2178@gmail.com>

View File

@@ -16,7 +16,6 @@
#
Name: python-pyviz-comms
Version: 3.0.2
Release: 0
@@ -24,12 +23,17 @@ Summary: Tool to launch jobs, organize the output, and dissect the result
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
# 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 packaging}
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 setuptools >= 40.8.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: jupyter-rpm-macros
@@ -64,21 +68,21 @@ Jupyter extension to display matplotlib plots in a widget.
This package provides the JupyterLab extension.
%prep
%setup -q -c -T
%autosetup -p1 -n pyviz_comms-%{version}
tar -x -f %{SOURCE1} --strip-components=1 pyviz_comms-%{version}/pyviz_comms/tests/
%build
# not needed
%pyproject_wheel
%install
%pyproject_install %{SOURCE0}
%pyproject_install
%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
%pytest
%files %{python_files}
%doc README.md
%license LICENSE LICENSE.txt
%{python_sitelib}/pyviz_comms
%{python_sitelib}/pyviz_comms-%{version}.dist-info

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:41b4d46a393e1a11c85ca77e95d04c2c8058195b310d6a8e6ca37a5f08242464
size 169059

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31541b976a21b7738557c3ea23bd8e44e94e736b9ed269570dcc28db4449d7e3
size 83188

3
pyviz_comms-3.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3167df932656416c4bd711205dad47e986a3ebae1f316258ddc26f9e01513ef7
size 195738