Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:RISCV
python-ipyscales
python-ipyscales.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-ipyscales.spec of Package python-ipyscales
# # spec file for package python-ipyscales # # 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 mainver 0.7.0 %define shortmainver 0.7 %define labver 3.3.0 %define skip_python39 1 Name: python-ipyscales Version: %{mainver} Release: 0 Summary: A widget library for scales License: BSD-3-Clause URL: https://github.com/vidartf/ipyscales Source0: https://files.pythonhosted.org/packages/py2.py3/i/ipyscales/ipyscales-%{mainver}-py2.py3-none-any.whl BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module pip} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: jupyter-rpm-macros BuildRequires: python-rpm-macros Requires: jupyter-ipyscales = %{version} Requires: python-ipywidgets >= 7.0.0 Recommends: python-ipydatawidgets Provides: python-jupyter_ipyscales = %{version}-%{release} Obsoletes: python-jupyter_ipyscales < %{version}-%{release} BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module ipywidgets >= 7.6} BuildRequires: %{python_module ipydatawidgets >= 4.2} BuildRequires: %{python_module nbval} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages %description A Jupyter/IPython widget library for scales. This package provides the python interface. %package -n jupyter-ipyscales Summary: A Jupyter widget library for scales Requires: ((jupyter-notebook >= 4.0.0 with jupyter-notebook < 7) or jupyter-nbclassic) Conflicts: python3-jupyter_ipyscales < 0.4.0 Requires: python3dist(ipyscales) = %{shortmainver} Suggests: python3-ipyscales %description -n jupyter-ipyscales A Jupyter/IPython widget library for scales. This package provides the jupyter notebook extension. %package -n jupyter-jupyterlab-ipyscales Version: %{labver} Summary: A JupyterLab widget library for scales Requires: jupyter-jupyterlab Requires: python3dist(ipyscales) = %{shortmainver} Suggests: python3-ipyscales %description -n jupyter-jupyterlab-ipyscales A Jupyter/IPython widget library for scales. This package provides the Jupyterlab widget After installation you must run: jupyter labextension install @jupyter-widgets/jupyterlab-manager %prep %setup -q -c -T %build # must use upstream wheel: npm build requires online connection : %install %pyproject_install %{SOURCE0} builddir=${PWD} %{python_expand # must patch everything after installing from wheel pushd %{buildroot}%{$python_sitelib} cp ipyscales-%{mainver}.dist-info/LICENSE.txt ${builddir} find ipyscales -name '*.py' \ -exec dos2unix '{}' ';' \ -exec sed -i '1{/env python/ d}' '{}' ';' # gh#vidartf/ipyscales#29 sed -i 's/np.float/float/' ipyscales/tests/test_colorarray.py popd } %python_compileall %jupyter_move_config %python_expand %fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{_jupyter_prefix} %check %pytest --pyargs ipyscales %files %{python_files} %license LICENSE.txt %{python_sitelib}/ipyscales %{python_sitelib}/ipyscales-%{mainver}.dist-info/ %files -n jupyter-ipyscales %license LICENSE.txt %{_jupyter_nbextension_dir}/jupyter-scales/ %_jupyter_config %{_jupyter_nb_notebook_confdir}/jupyter-scales.json %files -n jupyter-jupyterlab-ipyscales %license LICENSE.txt %{_jupyter_labextensions_dir}/jupyter-scales-%{labver}.tgz %{_jupyter_labextensions_dir3}/jupyter-scales %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor