From ebcd04e831eb57a72a728f5402d1421c50954add9fc997e78f3dff7c7759782f Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 7 Mar 2024 12:35:55 +0000 Subject: [PATCH] - Make sure not to create config files during test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/jupyter-jupyterlab-latex?expand=0&rev=21 --- jupyter-jupyterlab-latex.changes | 5 +++++ jupyter-jupyterlab-latex.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/jupyter-jupyterlab-latex.changes b/jupyter-jupyterlab-latex.changes index 69bbf67..9816e42 100644 --- a/jupyter-jupyterlab-latex.changes +++ b/jupyter-jupyterlab-latex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 7 12:35:48 UTC 2024 - Ben Greiner + +- Make sure not to create config files during test + ------------------------------------------------------------------- Sat Oct 7 12:08:23 UTC 2023 - Ben Greiner diff --git a/jupyter-jupyterlab-latex.spec b/jupyter-jupyterlab-latex.spec index d0cc04b..90d7538 100644 --- a/jupyter-jupyterlab-latex.spec +++ b/jupyter-jupyterlab-latex.spec @@ -1,7 +1,7 @@ # # spec file for package jupyter-jupyterlab-latex # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -41,8 +41,8 @@ BuildRequires: (python3-jupyter-packaging >= 0.12 with python3-jupyter-packagin BuildRequires: (python3-jupyter-server >= 2 with python3-jupyter-server < 3) BuildRequires: (python3-jupyterlab >= 4 with python3-jupyterlab < 5) Requires: texlive-latex-bin -Requires: (python3-jupyterlab >= 4 with python3-jupyterlab < 5) Requires: (python3-jupyter-server >= 2 with python3-jupyter-server < 3) +Requires: (python3-jupyterlab >= 4 with python3-jupyterlab < 5) Provides: python3-jupyter_jupyterlab_latex = %{version}-%{release} Obsoletes: python3-jupyter_jupyterlab_latex < %{version}-%{release} Provides: python3-jupyterlab-latex = %{version}-%{release} @@ -66,7 +66,8 @@ An extension for JupyterLab which allows for live-editing of LaTeX documents. %check export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix} -export JUPYTER_CONFIG_DIR=%{buildroot}%{_jupyter_confdir} +cp -r %{buildroot}%{_jupyter_confdir} myconfig +export JUPYTER_CONFIG_DIR=myconfig export PYTHONPATH=%{buildroot}%{python3_sitelib} jupyter server extension list 2>&1 | grep -ie "jupyterlab_latex.*OK" jupyter labextension list 2>&1 | grep -ie "@jupyterlab/latex.*OK"