!2 Init package with version 8.1.1
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
a46ad743f4
27
0001-modify-the-operator-of-version-required-to-gt.patch
Normal file
27
0001-modify-the-operator-of-version-required-to-gt.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 0fbc3a7c037caa26d7aea43da327ec1474a5ec89 Mon Sep 17 00:00:00 2001
|
||||||
|
From: desert-sailor <dxwangk@isoftstone.com>
|
||||||
|
Date: Wed, 20 Sep 2023 09:43:37 +0800
|
||||||
|
Subject: [PATCH] modify the operator of version required to gt
|
||||||
|
|
||||||
|
---
|
||||||
|
python/ipywidgets/setup.cfg | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/python/ipywidgets/setup.cfg b/python/ipywidgets/setup.cfg
|
||||||
|
index 8d83c4d..6342776 100644
|
||||||
|
--- a/python/ipywidgets/setup.cfg
|
||||||
|
+++ b/python/ipywidgets/setup.cfg
|
||||||
|
@@ -37,8 +37,8 @@ install_requires =
|
||||||
|
comm>=0.1.3
|
||||||
|
ipython>=6.1.0
|
||||||
|
traitlets>=4.3.1
|
||||||
|
- widgetsnbextension~=4.0.9
|
||||||
|
- jupyterlab_widgets~=3.0.9
|
||||||
|
+ widgetsnbextension>=4.0.9
|
||||||
|
+ jupyterlab_widgets>=3.0.9
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
test =
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
BIN
ipywidgets-8.1.1.tar.gz
Normal file
BIN
ipywidgets-8.1.1.tar.gz
Normal file
Binary file not shown.
102
python-ipywidgets.spec
Normal file
102
python-ipywidgets.spec
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
%global pypi_name ipywidgets
|
||||||
|
|
||||||
|
Name: python-%{pypi_name}
|
||||||
|
Version: 8.1.1
|
||||||
|
Release: 1
|
||||||
|
Summary: IPython HTML widgets for Jupyter
|
||||||
|
|
||||||
|
License: BSD-3-Clause
|
||||||
|
URL: https://github.com/jupyter-widgets/ipywidgets
|
||||||
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||||
|
Source1: lab-info
|
||||||
|
Patch1: 0001-modify-the-operator-of-version-required-to-gt.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
|
||||||
|
#for test
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-pytest-cov
|
||||||
|
BuildRequires: python3-traitlets
|
||||||
|
BuildRequires: python3-jsonschema
|
||||||
|
BuildRequires: python3-ipython
|
||||||
|
BuildRequires: python3-ipykernel
|
||||||
|
BuildRequires: python3-comm
|
||||||
|
BuildRequires: python3-pytz
|
||||||
|
|
||||||
|
%description
|
||||||
|
Interactive HTML widgets for Jupyter notebooks and the IPython kernel.
|
||||||
|
|
||||||
|
%package -n python3-%{pypi_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%description -n python3-%{pypi_name}
|
||||||
|
Interactive HTML widgets for Jupyter notebooks and the IPython kernel.
|
||||||
|
|
||||||
|
%package -n python3-widgetsnbextension
|
||||||
|
Summary: Jupyter interactive widgets for Jupyter Notebook.
|
||||||
|
BuildRequires: python3-jupyter-packaging
|
||||||
|
|
||||||
|
%description -n python3-widgetsnbextension
|
||||||
|
This package makes Jupyter widgets available in the classic Jupyter Notebook.
|
||||||
|
|
||||||
|
%package -n python3-jupyterlab-widgets
|
||||||
|
Summary: Jupyter interactive widgets for JupyterLab.
|
||||||
|
BuildRequires: python3-tomlkit
|
||||||
|
BuildRequires: python3-deprecation
|
||||||
|
|
||||||
|
%description -n python3-jupyterlab-widgets
|
||||||
|
A JupyterLab 3.0 extension for Jupyter/IPython widgets.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
tar xzvf %{SOURCE1} -C ./python/jupyterlab_widgets/
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build
|
||||||
|
cd %{_builddir}/ipywidgets-8.1.1/python/widgetsnbextension
|
||||||
|
%pyproject_build
|
||||||
|
cp ./build/*.whl %{_builddir}/ipywidgets-8.1.1/build/
|
||||||
|
cd %{_builddir}/ipywidgets-8.1.1/python/jupyterlab_widgets
|
||||||
|
%pyproject_build
|
||||||
|
cp ./build/*.whl %{_builddir}/ipywidgets-8.1.1/build/
|
||||||
|
cd %{_builddir}/ipywidgets-8.1.1/python/ipywidgets
|
||||||
|
%pyproject_build
|
||||||
|
cp ./build/*.whl %{_builddir}/ipywidgets-8.1.1/build/
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
cd %{_builddir}/ipywidgets-8.1.1/python/ipywidgets
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files -n python3-%{pypi_name}
|
||||||
|
%license ./python/ipywidgets/LICENSE
|
||||||
|
%doc ./python/ipywidgets/README.md
|
||||||
|
%{python3_sitelib}/ipywidgets-*.dist-info/
|
||||||
|
%{python3_sitelib}/ipywidgets/
|
||||||
|
|
||||||
|
%files -n python3-widgetsnbextension
|
||||||
|
%license ./python/widgetsnbextension/LICENSE
|
||||||
|
%doc ./python/widgetsnbextension/README.md
|
||||||
|
%{python3_sitelib}/widgetsnbextension-*.dist-info/
|
||||||
|
%{python3_sitelib}/widgetsnbextension/
|
||||||
|
%{_usr}/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json
|
||||||
|
|
||||||
|
%files -n python3-jupyterlab-widgets
|
||||||
|
%license ./python/jupyterlab_widgets/LICENSE
|
||||||
|
%doc ./python/jupyterlab_widgets/README.md
|
||||||
|
%{python3_sitelib}/jupyterlab_widgets-*.dist-info/
|
||||||
|
%{python3_sitelib}/jupyterlab_widgets/
|
||||||
|
%{_datadir}/jupyter/labextensions/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 11 2023 Dongxing Wang <dxwangk@isoftstone.com> - 8.1.1-1
|
||||||
|
- Init pacakage.
|
||||||
Loading…
x
Reference in New Issue
Block a user