Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-octave-kernel for openSUSE:Factory checked in at 2023-01-08 21:25:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-octave-kernel (Old) and /work/SRC/openSUSE:Factory/.python-octave-kernel.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-octave-kernel" Sun Jan 8 21:25:53 2023 rev:9 rq:1056889 version:0.35.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-octave-kernel/python-octave-kernel.changes 2022-08-04 13:23:58.244585010 +0200 +++ /work/SRC/openSUSE:Factory/.python-octave-kernel.new.1563/python-octave-kernel.changes 2023-01-08 21:25:54.759380112 +0100 @@ -1,0 +2,7 @@ +Sun Jan 8 09:51:13 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 0.35.1 + * Include test and example notebook in sdist #228 (@blink1073) +- Move to PEP517 hatchling build + +------------------------------------------------------------------- Old: ---- octave_kernel-0.34.2.tar.gz New: ---- octave_kernel-0.35.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-octave-kernel.spec ++++++ --- /var/tmp/diff_new_pack.5ICbGT/_old 2023-01-08 21:25:56.295389237 +0100 +++ /var/tmp/diff_new_pack.5ICbGT/_new 2023-01-08 21:25:56.303389284 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-octave-kernel # -# 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 @@ -17,7 +17,7 @@ Name: python-octave-kernel -Version: 0.34.2 +Version: 0.35.1 Release: 0 Summary: A Jupyter kernel for Octave License: BSD-3-Clause @@ -25,12 +25,13 @@ URL: https://github.com/Calysto/octave_kernel Source: https://files.pythonhosted.org/packages/source/o/octave_kernel/octave_kernel-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling >= 1.5} BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module jupyter-client >= 4.3.0} BuildRequires: %{python_module jupyter_kernel_test} BuildRequires: %{python_module jupyter_packaging} BuildRequires: %{python_module metakernel >= 0.24.0} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: jupyter-notebook-filesystem BuildRequires: octave @@ -68,10 +69,10 @@ %setup -q -n octave_kernel-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot}%{_jupyter_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib} ++++++ octave_kernel-0.34.2.tar.gz -> octave_kernel-0.35.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/.gitignore new/octave_kernel-0.35.1/.gitignore --- old/octave_kernel-0.34.2/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/octave_kernel-0.35.1/.gitignore 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1,9 @@ +.ipynb_checkpoints/ +.DS_Store +MANIFEST +dist/ +build/ +octave-workspace +*.egg-info/ +*.pyc +jupyter-data diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/CHANGELOG.md new/octave_kernel-0.35.1/CHANGELOG.md --- old/octave_kernel-0.34.2/CHANGELOG.md 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -2,6 +2,26 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 0.35.1 + +([Full Changelog](https://github.com/Calysto/octave_kernel/compare/v0.35.0...59c1841ae47ec594516d0aca355e0ef14f7eb61f)) + +### Bugs fixed + +- Include test and example notebook in sdist [#228](https://github.com/Calysto/octave_kernel/pull/228) ([@blink1073](https://github.com/blink1073)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/Calysto/octave_kernel/graphs/contributors?from=2022-11-28&to=2022-11-29&type=c)) + +[@blink1073](https://github.com/search?q=repo%3ACalysto%2Foctave_kernel+involves%3Ablink1073+updated%3A2022-11-28..2022-11-29&type=Issues) + +<!-- <END NEW CHANGELOG ENTRY> --> + +## 0.35.0 + +No merged PRs + ## 0.34.2 ([Full Changelog](https://github.com/Calysto/octave_kernel/compare/v0.34.1...0c2501cc4d452cad5ee17f6a5369d57c6da30a90)) @@ -16,8 +36,6 @@ [@mokeyish](https://github.com/search?q=repo%3ACalysto%2Foctave_kernel+involves%3Amokeyish+updated%3A2022-02-07..2022-03-31&type=Issues) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 0.34.1 ([Full Changelog](https://github.com/Calysto/octave_kernel/compare/v0.34.0...d6b0a4a0beae56e5b85e6640cf29fb2a504fc1d5)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/Dockerfile new/octave_kernel-0.35.1/Dockerfile --- old/octave_kernel-0.34.2/Dockerfile 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/Dockerfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# Copyright (c) Octave Kernel Development Team. -# Distributed under the terms of the Modified BSD License. -ARG BASE_CONTAINER=jupyter/minimal-notebook -FROM $BASE_CONTAINER - -LABEL maintainer="Steven Silvester <steven.silves...@ieee.org>" - -USER root - -# Install octave -ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update && apt-get -yq dist-upgrade \ - && apt-get install -yq --no-install-recommends \ - octave \ - && rm -rf /var/lib/apt/lists/* - -USER $NB_UID - -# Install extra packages -RUN conda install --quiet --yes \ - 'octave_kernel' && \ - conda clean -tipsy && \ - fix-permissions $CONDA_DIR && \ - fix-permissions /home/$NB_USER - - -USER $NB_UID diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/MANIFEST.in new/octave_kernel-0.35.1/MANIFEST.in --- old/octave_kernel-0.34.2/MANIFEST.in 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -include *.txt -include *.rst -include *.py -include *.md -include *.ipynb -include Makefile -include octave_kernel/kernel.json -recursive-include octave_kernel *.m -recursive-include octave_kernel *.png -prune .git -prune docs/build -prune dist -prune build -prune binder -include Dockerfile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/Makefile new/octave_kernel-0.35.1/Makefile --- old/octave_kernel-0.34.2/Makefile 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -# Note: This is meant for octave_kernel developer use only -.PHONY: all clean test release docker-build docker-run - -export NAME=`python setup.py --name 2>/dev/null` -export VERSION=`python setup.py --version 2>/dev/null` - -all: clean - pip install -e ".[test]" - -clean: - rm -rf build - rm -rf dist - -docker-build: - docker build --rm --force-rm -t calysto/octave-notebook:latest . - -docker-run: - docker run -it --rm -p $(PORT):8888 calysto/octave-notebook - -test: clean - python test_octave_kernel.py - python -m octave_kernel.check - jupyter nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=octave --ExecutePreprocessor.timeout=60 --stdout octave_kernel.ipynb > /dev/null; - make clean - -release: test clean - pip install wheel - python setup.py register - python setup.py bdist_wheel --universal - python setup.py sdist - git commit -a -m "Release $(VERSION)"; true - git tag v$(VERSION) - git push origin --all - git push origin --tags - twine upload dist/* - printf '\nUpgrade octave_kernel-feedstock with release and sha256 sum:' - shasum -a 256 dist/*.tar.gz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/PKG-INFO new/octave_kernel-0.35.1/PKG-INFO --- old/octave_kernel-0.34.2/PKG-INFO 2022-03-31 10:33:47.575989000 +0200 +++ new/octave_kernel-0.35.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,12 +1,37 @@ Metadata-Version: 2.1 Name: octave_kernel -Version: 0.34.2 +Version: 0.35.1 Summary: 'A Jupyter kernel for Octave.' -Home-page: http://github.com/Calysto/octave_kernel -Author: 'Steven Silvester' -Author-email: steven.silves...@ieee.org -License: BSD -Platform: UNKNOWN +Project-URL: Homepage, http://github.com/Calysto/octave_kernel +Author-email: 'Steven Silvester' <steven.silves...@ieee.org> +License: Copyright (c) 2015-2019, Octave Kernel Development Team + + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of Octave Kernel nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +License-File: LICENSE.txt Classifier: Intended Audience :: Science/Research Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent @@ -16,15 +41,20 @@ Classifier: Topic :: Software Development Classifier: Topic :: System :: Shells Requires-Python: >=3.7 -Description-Content-Type: text/x-rst +Requires-Dist: ipykernel +Requires-Dist: jupyter-client>=4.3.0 +Requires-Dist: metakernel>=0.24.0 Provides-Extra: test -License-File: LICENSE.txt +Requires-Dist: jupyter-kernel-test; extra == 'test' +Requires-Dist: nbconvert; extra == 'test' +Requires-Dist: pytest; extra == 'test' +Description-Content-Type: text/x-rst An Octave kernel for Jupyter ============================ .. image:: https://mybinder.org/badge_logo.svg - :target: https://mybinder.org/v2/gh/Calysto/octave_kernel/master?urlpath=/lab/tree/octave_kernel.ipynb + :target: https://mybinder.org/v2/gh/Calysto/octave_kernel/main?urlpath=/lab/tree/octave_kernel.ipynb Prerequisites ------------- @@ -177,8 +207,15 @@ On some systems, the default ``'png'`` produces a black plot. On other systems ``'svg'`` produces a black plot. +Local Installation +------------------ -.. _Octave: https://www.gnu.org/software/octave/download.html -.. _online: http://nbviewer.ipython.org/github/Calysto/octave_kernel/blob/master/octave_kernel.ipynb +To install from a git checkout, run: +.. code:: shell + + make install + +.. _Octave: https://www.gnu.org/software/octave/download.html +.. _online: http://nbviewer.ipython.org/github/Calysto/octave_kernel/blob/main/octave_kernel.ipynb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/README.rst new/octave_kernel-0.35.1/README.rst --- old/octave_kernel-0.34.2/README.rst 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/README.rst 2020-02-02 01:00:00.000000000 +0100 @@ -2,7 +2,7 @@ ============================ .. image:: https://mybinder.org/badge_logo.svg - :target: https://mybinder.org/v2/gh/Calysto/octave_kernel/master?urlpath=/lab/tree/octave_kernel.ipynb + :target: https://mybinder.org/v2/gh/Calysto/octave_kernel/main?urlpath=/lab/tree/octave_kernel.ipynb Prerequisites ------------- @@ -155,6 +155,15 @@ On some systems, the default ``'png'`` produces a black plot. On other systems ``'svg'`` produces a black plot. +Local Installation +------------------ + +To install from a git checkout, run: + +.. code:: shell + + make install + .. _Octave: https://www.gnu.org/software/octave/download.html -.. _online: http://nbviewer.ipython.org/github/Calysto/octave_kernel/blob/master/octave_kernel.ipynb +.. _online: http://nbviewer.ipython.org/github/Calysto/octave_kernel/blob/main/octave_kernel.ipynb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/RELEASE.md new/octave_kernel-0.35.1/RELEASE.md --- old/octave_kernel-0.34.2/RELEASE.md 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/RELEASE.md 2020-02-02 01:00:00.000000000 +0100 @@ -19,6 +19,7 @@ git push --all git push --tags rm -rf dist build +make data-files python -m build . twine check dist/* twine upload dist/* Binary files old/octave_kernel-0.34.2/jupyter-data/share/jupyter/kernels/octave/images/logo-32x32.png and new/octave_kernel-0.35.1/jupyter-data/share/jupyter/kernels/octave/images/logo-32x32.png differ Binary files old/octave_kernel-0.34.2/jupyter-data/share/jupyter/kernels/octave/images/logo-64x64.png and new/octave_kernel-0.35.1/jupyter-data/share/jupyter/kernels/octave/images/logo-64x64.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/jupyter-data/share/jupyter/kernels/octave/kernel.json new/octave_kernel-0.35.1/jupyter-data/share/jupyter/kernels/octave/kernel.json --- old/octave_kernel-0.34.2/jupyter-data/share/jupyter/kernels/octave/kernel.json 1970-01-01 01:00:00.000000000 +0100 +++ new/octave_kernel-0.35.1/jupyter-data/share/jupyter/kernels/octave/kernel.json 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1,9 @@ +{ + "argv": ["python", + "-m", "octave_kernel", + "-f", "{connection_file}"], + "display_name": "Octave", + "mimetype": "text/x-octave", + "language": "octave", + "name": "octave" +} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel/_version.py new/octave_kernel-0.35.1/octave_kernel/_version.py --- old/octave_kernel-0.34.2/octave_kernel/_version.py 2022-03-31 10:33:27.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel/_version.py 2020-02-02 01:00:00.000000000 +0100 @@ -1 +1 @@ -__version__ = '0.34.2' +__version__ = '0.35.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel/kernel.py new/octave_kernel-0.35.1/octave_kernel/kernel.py --- old/octave_kernel-0.34.2/octave_kernel/kernel.py 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel/kernel.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,7 @@ from __future__ import print_function import atexit +import base64 import codecs import glob import json @@ -36,6 +37,14 @@ ] + MetaKernel.help_links +class PDF(object): + """Wrapper for PDF object for display. + """ + def __init__(self, filename): + with open(filename, 'rb') as f: + data = f.read() + self._repr_pdf_ = base64.b64encode(data) + def get_kernel_json(): """Get the kernel json for the kernel. @@ -190,6 +199,9 @@ @plot_settings.setter def plot_settings(self, settings): + if not self._has_startup: + self._default_toolkit = self.eval('graphics_toolkit', silent=True).split()[-1] + settings = settings or dict(backend='inline') self._plot_settings = settings @@ -316,6 +328,8 @@ try: if fname.lower().endswith('.svg'): im = self._handle_svg(filename) + elif fname.lower().endswith('.pdf'): + im = PDF(filename) else: im = Image(filename) images.append(im) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/PKG-INFO new/octave_kernel-0.35.1/octave_kernel.egg-info/PKG-INFO --- old/octave_kernel-0.34.2/octave_kernel.egg-info/PKG-INFO 2022-03-31 10:33:47.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,184 +0,0 @@ -Metadata-Version: 2.1 -Name: octave-kernel -Version: 0.34.2 -Summary: 'A Jupyter kernel for Octave.' -Home-page: http://github.com/Calysto/octave_kernel -Author: 'Steven Silvester' -Author-email: steven.silves...@ieee.org -License: BSD -Platform: UNKNOWN -Classifier: Intended Audience :: Science/Research -Classifier: License :: OSI Approved :: BSD License -Classifier: Operating System :: OS Independent -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3 -Classifier: Topic :: Scientific/Engineering -Classifier: Topic :: Software Development -Classifier: Topic :: System :: Shells -Requires-Python: >=3.7 -Description-Content-Type: text/x-rst -Provides-Extra: test -License-File: LICENSE.txt - -An Octave kernel for Jupyter -============================ - -.. image:: https://mybinder.org/badge_logo.svg - :target: https://mybinder.org/v2/gh/Calysto/octave_kernel/master?urlpath=/lab/tree/octave_kernel.ipynb - -Prerequisites -------------- -`Jupyter Notebook <http://jupyter.readthedocs.org/en/latest/install.html>`_ and GNU Octave_. - -Installation ------------- -To install using pip:: - - pip install octave_kernel - -Add ``--user`` to install in the user-level environment instead of the system environment. - -To install using conda:: - - conda config --add channels conda-forge - conda install octave_kernel - conda install texinfo # For the inline documentation (shift-tab) to appear. - -We require the ``octave`` executable to run the kernel. -Add that executable's directory to the ``PATH`` environment variable or use the -``OCTAVE_EXECUTABLE`` to point to the executable itself. -Note that on Octave 5 on Windows, the executable is in ``"Octave-5.x.x.x\mingw64\bin"``. - -We automatically install a Jupyter kernelspec when installing the -python package. This location can be found using ``jupyter kernelspec list``. -If the default location is not desired, remove the directory for the -``octave`` kernel, and install using ``python -m octave_kernel install``. See -``python -m octave_kernel install --help`` for available options. - -Usage ------ -To use the kernel, run one of: - -.. code:: shell - - jupyter notebook # or ``jupyter lab``, if available - # In the notebook interface, select Octave from the 'New' menu - jupyter qtconsole --kernel octave - jupyter console --kernel octave - -This kernel is based on `MetaKernel <http://pypi.python.org/pypi/metakernel>`_, -which means it features a standard set of magics (such as ``%%html``). For a full list of magics, -run ``%lsmagic`` in a cell. - -A sample notebook is available online_. - - -Configuration -------------- -The kernel can be configured by adding an ``octave_kernel_config.py`` file to the -``jupyter`` config path. The ``OctaveKernel`` class offers ``plot_settings``, ``inline_toolkit``, -``kernel_json``, and ``cli_options`` as configurable traits. The available plot settings are: -'format', 'backend', 'width', 'height', 'resolution', and 'plot_dir'. - -.. code:: bash - - cat ~/.jupyter/octave_kernel_config.py - # use Qt as the default backend for plots - c.OctaveKernel.plot_settings = dict(backend='qt') - - -The path to the Octave kernel JSON file can also be specified by creating an -``OCTAVE_KERNEL_JSON`` environment variable. - -The command line options to Octave can also be specified with an -``OCTAVE_CLI_OPTIONS`` environment variable. The cli options be appended to the -default opions of ``--interactive --quiet --no-init-file``. Note that the -init file is explicitly called after the kernel has set ``more off`` to prevent -a lockup when the pager is invoked in ``~/.octaverc``. - -The inline toolkit is the ``graphics_toolkit`` used to generate plots for the inline -backend. It defaults to ``qt``. The different backend can be used for inline -plotting either by using this configuration or by using the plot magic and putting the backend name after ``inline:``, e.g. ``plot -b inline:fltk``. - - -Troubleshooting ---------------- - -Kernel Times Out While Starting -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -If the kernel does not start, run the following command from a terminal: - -.. code:: shell - - python -m octave_kernel.check - -This can help diagnose problems with setting up integration with Octave. If in doubt, -create an issue with the output of that command. - - -Kernel is Not Listed -~~~~~~~~~~~~~~~~~~~~ -If the kernel is not listed as an available kernel, first try the following command: - -.. code:: shell - - python -m octave_kernel install --user - -If the kernel is still not listed, verify that the following point to the same -version of python: - -.. code:: shell - - which python # use "where" if using cmd.exe - which jupyter - - -Gnuplot Error -~~~~~~~~~~~~~ -An error that starts with ``gnuplot> set terminal aqua enhanced title`` can be fixed by -adding ``setenv("GNUTERM","qt");`` to ``~/.octaverc`` on MacOS or by installing -``gunplot-x11`` and using ``setenv("GNUTERM", "X11")``. - -Octave-Snap (Linux) -~~~~~~~~~~~~~~~~~~~ -You can check if you are using a snap version on Linux by checking the path to your Octave -installation. - -.. code:: shell - - which octave - -If the returned path has ``snap`` in it, then Octave is running in a container and you will need to configure the kernel appropriately. - -1) Set the environment variable ``OCTAVE_EXECUTABLE="octave"`` - -.. code:: shell - - echo export OCTAVE_EXECUTABLE=\"octave\" >> ~/.bashrc - -2) Make a directory for the temporary plot directories that the kernel uses. This *cannot* be a hidden directory. - -.. code:: shell - - mkdir ~/octavePlots - -3) Set ``plot_dir`` to point to your plot directory in ``octave_kernel_config.py``. - -.. code:: shell - - c.OctaveKernel.plot_settings = dict(plot_dir='<home>/octavePlots') - -where ``<home>`` is the absolute path to your home directory. Do not use ``~`` as this resolves to a different location for Octave-Snap. - - -Blank Plot -~~~~~~~~~~ -Specify a different format using the ``%plot -f <backend>`` magic or using a configuration setting. -On some systems, the default ``'png'`` produces a black plot. On other systems ``'svg'`` produces a -black plot. - - -.. _Octave: https://www.gnu.org/software/octave/download.html -.. _online: http://nbviewer.ipython.org/github/Calysto/octave_kernel/blob/master/octave_kernel.ipynb - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/SOURCES.txt new/octave_kernel-0.35.1/octave_kernel.egg-info/SOURCES.txt --- old/octave_kernel-0.34.2/octave_kernel.egg-info/SOURCES.txt 2022-03-31 10:33:47.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,33 +0,0 @@ -CHANGELOG.md -Dockerfile -LICENSE.txt -MANIFEST.in -Makefile -README.rst -RELEASE.md -octave_kernel.ipynb -pyproject.toml -setup.cfg -setup.py -test_octave_kernel.py -octave_kernel/__init__.py -octave_kernel/__main__.py -octave_kernel/_make_figures.m -octave_kernel/_version.py -octave_kernel/check.py -octave_kernel/kernel.json -octave_kernel/kernel.py -octave_kernel.egg-info/PKG-INFO -octave_kernel.egg-info/SOURCES.txt -octave_kernel.egg-info/dependency_links.txt -octave_kernel.egg-info/not-zip-safe -octave_kernel.egg-info/requires.txt -octave_kernel.egg-info/top_level.txt -octave_kernel/@input/input.m -octave_kernel/@kbhit/kbhit.m -octave_kernel/@pause/pause.m -octave_kernel/@sleep/sleep.m -octave_kernel/@usleep/usleep.m -octave_kernel/@yes_or_no/yes_or_no.m -octave_kernel/images/logo-32x32.png -octave_kernel/images/logo-64x64.png \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/dependency_links.txt new/octave_kernel-0.35.1/octave_kernel.egg-info/dependency_links.txt --- old/octave_kernel-0.34.2/octave_kernel.egg-info/dependency_links.txt 2022-03-31 10:33:47.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/not-zip-safe new/octave_kernel-0.35.1/octave_kernel.egg-info/not-zip-safe --- old/octave_kernel-0.34.2/octave_kernel.egg-info/not-zip-safe 2022-03-31 10:33:15.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/not-zip-safe 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/requires.txt new/octave_kernel-0.35.1/octave_kernel.egg-info/requires.txt --- old/octave_kernel-0.34.2/octave_kernel.egg-info/requires.txt 2022-03-31 10:33:47.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/requires.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ -metakernel>=0.24.0 -jupyter_client>=4.3.0 -ipykernel - -[test] -pytest -nbconvert -jupyter_kernel_test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/octave_kernel.egg-info/top_level.txt new/octave_kernel-0.35.1/octave_kernel.egg-info/top_level.txt --- old/octave_kernel-0.34.2/octave_kernel.egg-info/top_level.txt 2022-03-31 10:33:47.000000000 +0200 +++ new/octave_kernel-0.35.1/octave_kernel.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -octave_kernel diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/pyproject.toml new/octave_kernel-0.35.1/pyproject.toml --- old/octave_kernel-0.34.2/pyproject.toml 2022-03-31 10:33:27.000000000 +0200 +++ new/octave_kernel-0.35.1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -1,12 +1,63 @@ [build-system] -requires=["jupyter_packaging~=0.9,<2", "ipykernel", "jupyter_client", "metakernel"] -build-backend = "jupyter_packaging.build_api" +requires = ["hatchling >=1.5"] +build-backend = "hatchling.build" + +[project] +name = "octave_kernel" +description = "'A Jupyter kernel for Octave.'" +license = {file = "LICENSE.txt"} +authors = [{name = "'Steven Silvester'", email = "steven.silves...@ieee.org"}] +classifiers = [ + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering", + "Topic :: Software Development", + "Topic :: System :: Shells", +] +urls = {Homepage = "http://github.com/Calysto/octave_kernel"} +requires-python = ">=3.7" +dependencies = [ + "metakernel >=0.24.0", + "jupyter_client >=4.3.0", + "ipykernel", +] +dynamic = ["version"] + +[project.readme] +file = "README.rst" +content-type = "text/x-rst" + +[project.optional-dependencies] +test = ["pytest", "nbconvert", "jupyter_kernel_test", "nbconvert"] + +[tool.hatch.build.targets.wheel.shared-data] +"jupyter-data/share" = "share" + +[tool.hatch.build.targets.sdist] +artifacts = ["jupyter-data"] +include = [ + "/jupyter-data", + "/octave_kernel", + "/*.md", + "/*.ipynb", + "/*.py" +] + +[tool.hatch.version] +path = "octave_kernel/_version.py" +source = "code" [tool.jupyter-releaser] skip = ["check-links"] +[tool.jupyter-releaser.hooks] +after-prep-git = ["make data-files"] + [tool.tbump.version] -current = "0.34.2" +current = "0.35.1" regex = ''' (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) ((?P<channel>a|b|rc|.dev)(?P<release>\d+))? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/setup.cfg new/octave_kernel-0.35.1/setup.cfg --- old/octave_kernel-0.34.2/setup.cfg 2022-03-31 10:33:47.575989000 +0200 +++ new/octave_kernel-0.35.1/setup.cfg 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -[metadata] -name = octave_kernel -version = attr: octave_kernel._version.__version__ -description = 'A Jupyter kernel for Octave.' -long_description = file: README.rst -long_description_content_type = text/x-rst -license = BSD -license_file = LICENSE.txt -author = 'Steven Silvester' -author_email = steven.silves...@ieee.org -url = http://github.com/Calysto/octave_kernel -classifiers = - Intended Audience :: Science/Research - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3 - Topic :: Scientific/Engineering - Topic :: Software Development - Topic :: System :: Shells - -[options] -zip_safe = False -include_package_data = True -packages = find: -python_requires = >=3.7 -install_requires = - metakernel >=0.24.0 - jupyter_client >=4.3.0 - ipykernel - -[options.extras_require] -test = pytest;nbconvert;jupyter_kernel_test;nbconvert - -[bdist_wheel] -universal = 1 - -[wheel] -universal = 1 - -[egg_info] -tag_build = -tag_date = 0 - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/octave_kernel-0.34.2/setup.py new/octave_kernel-0.35.1/setup.py --- old/octave_kernel-0.34.2/setup.py 2022-03-31 10:33:03.000000000 +0200 +++ new/octave_kernel-0.35.1/setup.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -"""Setup script for octave_kernel package. -""" -import setuptools - -setup_args = {} - -data_files_spec = [ - ('share/jupyter/kernels/octave', 'octave_kernel', 'kernel.json'), - ('share/jupyter/kernels/octave', 'octave_kernel/images', '*.png') -] - -try: - from jupyter_packaging import get_data_files - setup_args['data_files'] = get_data_files(data_files_spec) - -except ImportError: - pass - -setuptools.setup(**setup_args)