Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jupyterlab-pygments for 
openSUSE:Factory checked in at 2022-08-02 22:08:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyterlab-pygments (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyterlab-pygments"

Tue Aug  2 22:08:59 2022 rev:6 rq:992101 version:0.2.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyterlab-pygments/python-jupyterlab-pygments.changes
    2021-11-17 01:14:48.366184533 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1533/python-jupyterlab-pygments.changes
  2022-08-02 22:09:32.781833795 +0200
@@ -1,0 +2,7 @@
+Mon Aug  1 20:29:07 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Update to v0.2.2
+  * no release notes
+- Add labextensions subpackage
+
+-------------------------------------------------------------------

Old:
----
  jupyterlab_pygments-0.1.2.tar.gz

New:
----
  jupyterlab_pygments-0.2.2-py2.py3-none-any.whl

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jupyterlab-pygments.spec ++++++
--- /var/tmp/diff_new_pack.Xc4EjT/_old  2022-08-02 22:09:33.261835179 +0200
+++ /var/tmp/diff_new_pack.Xc4EjT/_new  2022-08-02 22:09:33.265835190 +0200
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,20 +25,21 @@
 %bcond_with test
 %endif
 
-%{?!python_module:%define python_module() python3-%{**}}
-%define         skip_python2 1
 Name:           python-jupyterlab-pygments%{psuffix}
-Version:        0.1.2
+Version:        0.2.2
 Release:        0
 Summary:        Pygments theme for jupyterlab
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/jupyterlab/jupyterlab_pygments
-Source:         
https://files.pythonhosted.org/packages/source/j/jupyterlab_pygments/jupyterlab_pygments-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/py2.py3/j/jupyterlab-pygments/jupyterlab_pygments-%{version}-py2.py3-none-any.whl
 Source1:        
https://raw.githubusercontent.com/jupyterlab/jupyterlab_pygments/%{version}/notebooks/Example.ipynb
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module base >= 3.7}
+BuildRequires:  %{python_module pip}
 BuildRequires:  fdupes
+BuildRequires:  jupyter-rpm-macros
 BuildRequires:  python-rpm-macros
+Requires:       jupyter-jupyterlab-pygments = %{version}
 Requires:       python-pygments >= 2.4.1
 BuildArch:      noarch
 %if %{with test}
@@ -52,16 +53,23 @@
 This package contains a syntax coloring theme for pygments making use
 of the JupyterLab CSS variables.
 
+%package -n jupyter-jupyterlab-pygments
+Summary:        Pygments theme for jupyterlab -- Jupyterlab extension files
+
+%description -n jupyter-jupyterlab-pygments
+This package contains the Jupyterlab extension files for 
python-jupyterlab-pygments
+
 %prep
-%setup -q -n jupyterlab_pygments-%{version}
+%setup -q -c -T
 
-%if !%{with test}
 %build
-%python_build
+:
 
+%if !%{with test}
 %install
-%python_install
+%pyproject_install %{SOURCE0}
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+cp  
%{buildroot}%{python3_sitelib}/jupyterlab_pygments-%{version}.dist-info/LICENSE 
.
 %endif
 
 %if %{with test}
@@ -72,9 +80,11 @@
 %if !%{with test}
 %files %{python_files}
 %license LICENSE
-%doc README.md
 %{python_sitelib}/jupyterlab_pygments
-%{python_sitelib}/jupyterlab_pygments-%{version}*-info
+%{python_sitelib}/jupyterlab_pygments-%{version}.dist-info
+
+%files -n jupyter-jupyterlab-pygments
+%_jupyter_labextensions_dir3/jupyterlab_pygments
 %endif
 
 %changelog

++++++ Example.ipynb ++++++
--- /var/tmp/diff_new_pack.Xc4EjT/_old  2022-08-02 22:09:33.289835259 +0200
+++ /var/tmp/diff_new_pack.Xc4EjT/_new  2022-08-02 22:09:33.293835270 +0200
@@ -25,8 +25,7 @@
     "    def _repr_html_(self, **kwargs):\n",
     "        formatter = HtmlFormatter(style=JupyterStyle)\n",
     "        html =  highlight(self.value, PythonLexer(), formatter)\n",
-    "        css = formatter.get_style_defs('.highlight')\n",
-    "        return f'<style>{css}</style><div 
class=\"highlight\">{html}</div>'"
+    "        return f'<div class=\"highlight\">{html}</div>'"
    ]
   },
   {
@@ -44,18 +43,11 @@
    "source": [
     "PythonCode(In[2])"
    ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": []
   }
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "Python 3",
+   "display_name": "Python 3 (ipykernel)",
    "language": "python",
    "name": "python3"
   },
@@ -69,7 +61,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.7.3"
+   "version": "3.10.4"
   }
  },
  "nbformat": 4,

Reply via email to