From 3ba87d7f18701d87a8664efbb73468adbb5dcbc94594720b783d413b29d3e5e2 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 7 Oct 2023 12:49:12 +0000 Subject: [PATCH] - Update to 4.0.0 * Update to Jupyterlab 4 and Lumino 2 (#211) - Update to 3.2.0 * Last release to support JupyterLab 3 * Requires JupyterLab 3.6+ * Bump several JS packages * Update dependencies and fix deprecation issues - Install from github sources, 3.1+ is not on PyPI * gh#jupyterlab/jupyterlab-latex#218 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/jupyter-jupyterlab-latex?expand=0&rev=18 --- jupyter-jupyterlab-latex.changes | 13 +++++++++ jupyter-jupyterlab-latex.spec | 36 +++++++++++++++++-------- jupyterlab_latex-3.1.0-py3-none-any.whl | 3 --- jupyterlab_latex-4.0.0-gh.tar.gz | 3 +++ jupyterlab_latex-4.0.0-py3-none-any.whl | 3 +++ 5 files changed, 44 insertions(+), 14 deletions(-) delete mode 100644 jupyterlab_latex-3.1.0-py3-none-any.whl create mode 100644 jupyterlab_latex-4.0.0-gh.tar.gz create mode 100644 jupyterlab_latex-4.0.0-py3-none-any.whl diff --git a/jupyter-jupyterlab-latex.changes b/jupyter-jupyterlab-latex.changes index 26a2139..69bbf67 100644 --- a/jupyter-jupyterlab-latex.changes +++ b/jupyter-jupyterlab-latex.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Oct 7 12:08:23 UTC 2023 - Ben Greiner + +- Update to 4.0.0 + * Update to Jupyterlab 4 and Lumino 2 (#211) +- Update to 3.2.0 + * Last release to support JupyterLab 3 + * Requires JupyterLab 3.6+ + * Bump several JS packages + * Update dependencies and fix deprecation issues +- Install from github sources, 3.1+ is not on PyPI + * gh#jupyterlab/jupyterlab-latex#218 + ------------------------------------------------------------------- Wed Mar 22 11:31:40 UTC 2023 - Ben Greiner diff --git a/jupyter-jupyterlab-latex.spec b/jupyter-jupyterlab-latex.spec index f559978..428caae 100644 --- a/jupyter-jupyterlab-latex.spec +++ b/jupyter-jupyterlab-latex.spec @@ -1,7 +1,7 @@ # # spec file for package jupyter-jupyterlab-latex # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,21 +18,31 @@ %define pythons python3 Name: jupyter-jupyterlab-latex -Version: 3.1.0 +Version: 4.0.0 Release: 0 Summary: Jupyter Notebook server extension which acts as an endpoint for LaTeX License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jupyterlab/jupyterlab-latex -Source: https://files.pythonhosted.org/packages/py3/j/jupyterlab_latex/jupyterlab_latex-%{version}-py3-none-any.whl +# >= 3.1 not on PyPI gh#jupyterlab/jupyterlab-latex#218 +#Source: https://files.pythonhosted.org/packages/py3/j/jupyterlab_latex/jupyterlab_latex-%%{version}-py3-none-any.whl +Source0: https://github.com/jupyterlab/jupyterlab-latex/archive/refs/tags/v%{version}.tar.gz#/jupyterlab_latex-%{version}-gh.tar.gz +# Generate on a networked machine with `pip wheel -v .` inside the extracted github archive (needs npm) +Source1: jupyterlab_latex-%{version}-py3-none-any.whl Source99: jupyter-jupyterlab-latex-rpmlintrc BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: jupyter-rpm-macros -BuildRequires: python3-base >= 3.6 +BuildRequires: python-rpm-macros +BuildRequires: python3-base >= 3.8 BuildRequires: python3-pip -Requires: jupyter-notebook +BuildRequires: python3-wheel +BuildRequires: texlive-latex-bin +BuildRequires: (python3-jupyter-packaging >= 0.12 with python3-jupyter-packaging < 2) +BuildRequires: (python3-jupyter-server >= 2 with python3-jupyter-server < 3) +BuildRequires: (python3-jupyterlab >= 4 with python3-jupyterlab < 5) Requires: texlive-latex-bin +Requires: (python3-jupyerlab >= 4 with python3-jupyterlab < 5) +Requires: (python3-jupyter-server >= 2 with python3-jupyter-server < 3) Provides: python3-jupyter_jupyterlab_latex = %{version}-%{release} Obsoletes: python3-jupyter_jupyterlab_latex < %{version}-%{release} Provides: python3-jupyterlab-latex = %{version}-%{release} @@ -45,18 +55,22 @@ An extension for JupyterLab which allows for live-editing of LaTeX documents. %setup -q -c -T %build -# Not Needed +# needs to be built on networked machine, see comment for Source1 above %install -cp -a %{SOURCE0} . -%pyproject_install +%pyproject_install %{SOURCE1} %{jupyter_move_config} %fdupes %{buildroot}%{_jupyter_prefix} %fdupes %{buildroot}%{python3_sitelib} -#%%check -# no python tests +%check +export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix} +export JUPYTER_CONFIG_DIR=%{buildroot}%{_jupyter_confdir} +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" +python3 -c 'import jupyterlab_latex' %files %license %{python3_sitelib}/jupyterlab_latex-*.dist-info/LICENSE diff --git a/jupyterlab_latex-3.1.0-py3-none-any.whl b/jupyterlab_latex-3.1.0-py3-none-any.whl deleted file mode 100644 index 39207e7..0000000 --- a/jupyterlab_latex-3.1.0-py3-none-any.whl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccfbb85599d0cb72bd07905c8a3ecfce5f777b395ee512338d5c6f32fbe7343b -size 900645 diff --git a/jupyterlab_latex-4.0.0-gh.tar.gz b/jupyterlab_latex-4.0.0-gh.tar.gz new file mode 100644 index 0000000..1e93eef --- /dev/null +++ b/jupyterlab_latex-4.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46da59dc8848bfc6cab4ef8c2d6dcadaa13c3143384017b05097d8d8e70adec4 +size 287085 diff --git a/jupyterlab_latex-4.0.0-py3-none-any.whl b/jupyterlab_latex-4.0.0-py3-none-any.whl new file mode 100644 index 0000000..b6ef30d --- /dev/null +++ b/jupyterlab_latex-4.0.0-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:009211514cc8c217e7ab33bb666efdb3553eee3aee690ff3829c1cf13b554a29 +size 724685