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 2021-11-15 15:26:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyterlab-pygments (Old) and /work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyterlab-pygments" Mon Nov 15 15:26:45 2021 rev:4 rq:931416 version:0.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyterlab-pygments/python-jupyterlab-pygments.changes 2020-04-27 23:37:25.403411426 +0200 +++ /work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1890/python-jupyterlab-pygments.changes 2021-11-15 15:28:28.577858381 +0100 @@ -1,0 +2,7 @@ +Sun Nov 14 18:02:29 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Update to 0.1.2 + * fix license metadata in setuptools +- check for errors in Example.ipynb with nbval + +------------------------------------------------------------------- Old: ---- jupyterlab_pygments-0.1.1.tar.gz New: ---- Example.ipynb jupyterlab_pygments-0.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyterlab-pygments.spec ++++++ --- /var/tmp/diff_new_pack.bEVkc0/_old 2021-11-15 15:28:28.893858470 +0100 +++ /var/tmp/diff_new_pack.bEVkc0/_new 2021-11-15 15:28:28.897858470 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jupyterlab-pygments # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-jupyterlab-pygments -Version: 0.1.1 +Version: 0.1.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 +Source1: https://raw.githubusercontent.com/jupyterlab/jupyterlab_pygments/%{version}/notebooks/Example.ipynb +BuildRequires: %{python_module nbval} +BuildRequires: %{python_module pygments >= 2.4.1} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,10 +51,13 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest --nbval-lax %{SOURCE1} + %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/jupyterlab_pygments -%{python_sitelib}/jupyterlab_pygments-%{version}-py*.egg-info +%{python_sitelib}/jupyterlab_pygments-%{version}*-info %changelog ++++++ Example.ipynb ++++++ { "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from pygments import highlight\n", "from pygments.lexers import PythonLexer\n", "from pygments.formatters import HtmlFormatter\n", "from jupyterlab_pygments import JupyterStyle" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "class PythonCode:\n", " def __init__(self, value):\n", " self.value = value\n", " \n", " 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>'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Rendering the previous cell in HTML with Pygments and JupyterStyle respects the JupyterLab theme" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "PythonCode(In[2])" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 4 } ++++++ jupyterlab_pygments-0.1.1.tar.gz -> jupyterlab_pygments-0.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyterlab_pygments-0.1.1/PKG-INFO new/jupyterlab_pygments-0.1.2/PKG-INFO --- old/jupyterlab_pygments-0.1.1/PKG-INFO 2020-04-24 01:38:26.000000000 +0200 +++ new/jupyterlab_pygments-0.1.2/PKG-INFO 2020-09-29 10:59:40.000000000 +0200 @@ -1,11 +1,11 @@ Metadata-Version: 1.0 Name: jupyterlab_pygments -Version: 0.1.1 +Version: 0.1.2 Summary: Pygments theme using JupyterLab CSS variables Home-page: http://jupyter.org Author: Jupyter Development Team Author-email: jupy...@googlegroups.com -License: UNKNOWN +License: BSD Description: UNKNOWN Keywords: jupyterlab,pygments Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyterlab_pygments-0.1.1/jupyterlab_pygments/_version.py new/jupyterlab_pygments-0.1.2/jupyterlab_pygments/_version.py --- old/jupyterlab_pygments-0.1.1/jupyterlab_pygments/_version.py 2020-04-24 01:38:00.000000000 +0200 +++ new/jupyterlab_pygments-0.1.2/jupyterlab_pygments/_version.py 2020-09-29 10:59:23.000000000 +0200 @@ -1,5 +1,5 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. -version_info = (0, 1, 1) +version_info = (0, 1, 2) __version__ = '.'.join(map(str, version_info)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyterlab_pygments-0.1.1/jupyterlab_pygments.egg-info/PKG-INFO new/jupyterlab_pygments-0.1.2/jupyterlab_pygments.egg-info/PKG-INFO --- old/jupyterlab_pygments-0.1.1/jupyterlab_pygments.egg-info/PKG-INFO 2020-04-24 01:38:25.000000000 +0200 +++ new/jupyterlab_pygments-0.1.2/jupyterlab_pygments.egg-info/PKG-INFO 2020-09-29 10:59:39.000000000 +0200 @@ -1,11 +1,11 @@ Metadata-Version: 1.0 Name: jupyterlab-pygments -Version: 0.1.1 +Version: 0.1.2 Summary: Pygments theme using JupyterLab CSS variables Home-page: http://jupyter.org Author: Jupyter Development Team Author-email: jupy...@googlegroups.com -License: UNKNOWN +License: BSD Description: UNKNOWN Keywords: jupyterlab,pygments Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyterlab_pygments-0.1.1/setup.cfg new/jupyterlab_pygments-0.1.2/setup.cfg --- old/jupyterlab_pygments-0.1.1/setup.cfg 2020-04-24 01:38:26.000000000 +0200 +++ new/jupyterlab_pygments-0.1.2/setup.cfg 2020-09-29 10:59:40.000000000 +0200 @@ -2,6 +2,7 @@ universal = 1 [metadata] +license = BSD license_file = LICENSE [egg_info]