forked from pool/python-nbclassic
Accepting request 1189394 from devel:languages:python:jupyter
- Build from source instead of use .whl from pypi. OBS-URL: https://build.opensuse.org/request/show/1189394 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclassic?expand=0&rev=23
This commit is contained in:
commit
8b7d2b8aaa
8
create_node_modules.sh
Normal file
8
create_node_modules.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script to create node_modules.tar.xz
|
||||
|
||||
npm install
|
||||
python3 setup.py jsdeps
|
||||
|
||||
tar cJf node_modules.tar.xz node_modules nbclassic/static/components
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0648209e9651b464786d8eefd7a4af39f3a9deb51ca5714f31a772a6e22843c7
|
||||
size 8320504
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f99e4769b4750076cd4235c044b61232110733322384a94a63791d2e7beacc66
|
||||
size 9995162
|
3
nbclassic-1.1.0-gh.tar.gz
Normal file
3
nbclassic-1.1.0-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e4d7d3e9404888749f2ac50e44266c42a6ab0eadb86cc13de021b91aabdb496f
|
||||
size 8326047
|
3
node_modules.tar.xz
Normal file
3
node_modules.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fdad8398d32042d0798bded77fe37d7b8edfc870f041e94f57f89d96b2d9f3b4
|
||||
size 35529844
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 24 12:13:44 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Build from source instead of use .whl from pypi.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 18:34:12 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -27,23 +27,29 @@
|
||||
%define skip_python39 1
|
||||
# this conditional is used in the python-rpm-macros, but `osc build --without libalternatives` won't work
|
||||
%bcond_without libalternatives
|
||||
# 1.0.0 gets abbreviated by pythondistdeps
|
||||
%define shortversion 1
|
||||
# 1.1.0 gets abbreviated by pythondistdeps
|
||||
%define shortversion 1.1
|
||||
Name: python-nbclassic%{psuffix}
|
||||
Version: 1.0.0
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Jupyter Notebook as a Jupyter Server Extension
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/jupyterlab/nbclassic
|
||||
# The github archive has the nbclassic tests
|
||||
Source0: https://github.com/jupyterlab/nbclassic/archive/v%{version}.tar.gz#/nbclassic-%{version}-gh.tar.gz
|
||||
# The wheel has the notebook 6 JS stuff
|
||||
Source1: https://files.pythonhosted.org/packages/py3/n/nbclassic/nbclassic-%{version}-py3-none-any.whl
|
||||
Source1: node_modules.tar.xz
|
||||
Source2: create_node_modules.sh
|
||||
BuildRequires: %{python_module Babel}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module jupyter-packaging}
|
||||
BuildRequires: %{python_module jupyter-server}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: jupyter-rpm-macros
|
||||
BuildRequires: nodejs-common
|
||||
BuildRequires: npm-default
|
||||
BuildRequires: python-rpm-macros >= 20210929
|
||||
BuildRequires: update-desktop-files
|
||||
Requires: jupyter-nbclassic = %{version}
|
||||
@ -104,14 +110,15 @@ on top of the new Python server backend.
|
||||
This package contains the jupyterlab server configuration and desktop files
|
||||
|
||||
%prep
|
||||
%setup -q -n nbclassic-%{version}
|
||||
%autosetup -p1 -n nbclassic-%{version} -a1
|
||||
python3 setup.py js css
|
||||
|
||||
%build
|
||||
:
|
||||
%pyproject_wheel
|
||||
|
||||
%if !%{with test}
|
||||
%install
|
||||
%pyproject_install %{SOURCE1}
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic
|
||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic-bundlerextension
|
||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic-extension
|
||||
|
Loading…
Reference in New Issue
Block a user