.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-leaflet?expand=0&rev=2
This commit is contained in:
parent
248d0ab78a
commit
25ea5b4136
@ -34,7 +34,11 @@ BuildRequires: fdupes
|
||||
BuildRequires: jupyter-rpm-macros
|
||||
BuildRequires: python-rpm-macros
|
||||
Provides: python-jupyter_leaflet = %{version}-%{release}
|
||||
Requires: jupyter-leaflet = %{version}
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module nbclassic}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -65,8 +69,15 @@ cp %{SOURCE1} ./
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%fdupes %{buildroot}%{_jupyter_prefix}
|
||||
|
||||
#%%check
|
||||
# no python checks, but make sure to look into ipyleaflet
|
||||
%check
|
||||
export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix}
|
||||
export JUPYTER_CONFIG_PATH=%{buildroot}%{_jupyter_confdir}
|
||||
%{python_expand # no python tests available
|
||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python -c 'import jupyter_leaflet'
|
||||
jupyter-%{$python_bin_suffix} nbclassic-extension list 2>&1 | grep 'jupyter-leaflet.*enabled'
|
||||
jupyter-%{$python_bin_suffix} labextension list 2>&1 | grep 'jupyter-leaflet.*enabled'
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/jupyter_leaflet
|
||||
|
Loading…
x
Reference in New Issue
Block a user