1
0
python-ipykernel/python-ipykernel.spec
Todd R 3feef65e69 Accepting request 697882 from home:TheBlackCat:branches:devel:languages:python:jupyter
- Rename to to match python package naming guidelines.
- Split jupyter components into own subpackage.
- Fix source URL
- Update doc files
- update to version 5.1.0:
  * Fix message-ordering bug that could result in out-of-order
    executions, especially on Windows (:ghpull:`356`)
  * Fix classifiers to indicate dropped Python 2 support
    (:ghpull:`354`)
  * Remove some dead code (:ghpull:`355`)
  * Support rich-media responses in inspect_requests (tooltips)
    (:ghpull:`361`)
- Update to version 5.0.0
  * Drop support for Python 2. ipykernel 5.0 requires Python >= 3.4
  * Add support for IPython’s asynchronous code execution (PR #323)
  * Update release process in CONTRIBUTING.md (PR #339)
- Drop python 2 build since they are no longer supported.
- Switch to wheels for more reliable installation.
- Update to version 4.9.0
  * Python 3.3 is no longer supported (:ghpull:`336`)
  * Flush stdout/stderr in KernelApp before replacing (:ghpull:`314`)
  * Allow preserving stdout and stderr in KernelApp (:ghpull:`315`)
  * Override writable method on OutStream (:ghpull:`316`)
  * Add metadata to help display matplotlib figures legibly (:ghpull:`336`)
- Update to version 4.8.2
  * Fix compatibility issue with qt eventloop and pyzmq 17 (:ghpull:`307`).
- Update to version 4.8.1
  * set zmq.ROUTER_HANDOVER socket option when available
    to workaround libzmq reconnect bug (:ghpull:`300`).
  * Fix sdists including absolute paths for kernelspec files,
    which prevented installation from sdist on Windows
    (:ghpull:`306`).
- Update to version 4.8.0
  * set zmq.ROUTER_HANDOVER socket option when available
    to workaround libzmq reconnect bug (:ghpull:`300`).
  * Fix sdists including absolute paths for kernelspec files,
    which prevented installation from sdist on Windows
    (:ghpull:`306`).
- update to version 4.8.9
  * Cleanly shutdown integrated event loops when shutting down the
    kernel. (:ghpull:`290`)
  * %gui qt now uses Qt 5 by default rather than Qt 4, following a
    similar change in terminal IPython. (:ghpull:`293`)
  * Fix event loop integration for :mod:`asyncio` when run with
    Tornado 5, which uses asyncio where available. (:ghpull:`296`)
- update to version 4.7.0:
  * Add event loop integration for :mod:`asyncio`.
  * Use the new IPython completer API.
  * Add support for displaying GIF images (mimetype image/gif).
  * Allow the kernel to be interrupted without killing the Qt console.
  * Fix is_complete response with cell magics.
  * Clean up encoding of bytes objects.
  * Clean up help links to use https and improve display titles.
  * Clean up ioloop handling in preparation for tornado 5.
- Update to 4.6.1
  * Fix eventloop-integration bug preventing Qt windows/widgets
    from displaying with ipykernel 4.6.0 and IPython ≥ 5.2.
  * Avoid deprecation warnings about naive datetimes when working
    with jupyter_client ≥ 5.0.
- Implement single-spec version.
- Update to 4.6.0
  * Add to API `DisplayPublisher.publish` two new fully backward-compatible
    keyword-args:
      - `update: bool`
      - `transient: dict`
  * Support new `transient` key in `display_data` messages spec for `publish`.
    For a display data message, `transient` contains data that shouldn't be
    persisted to files or documents. Add a `display_id` to this `transient`
    dict by `display(obj, display_id=...)`
  * Add `ipykernel_launcher` module which removes the current working directory
    from `sys.path` before launching the kernel. This helps to reduce the cases
    where the kernel won't start because there's a `random.py` (or similar)
    module in the current working directory.
  * Add busy/idle messages on IOPub during processing of aborted requests
  * Add active event loop setting to GUI, which enables the correct response
    to IPython's `is_event_loop_running_xxx`
  * Include IPython kernelspec in wheels to reduce reliance on "native kernel
    spec" in jupyter_client
  * Modify `OutStream` to inherit from `TextIOBase` instead of object to improve
    API support and error reporting
  * Fix IPython kernel death messages at start, such as "Kernel Restarting..."
    and "Kernel appears to have died", when parent-poller handles PID 1
  * Various bugfixes
- Install icons
- Update to 4.6.0
  * Add to API `DisplayPublisher.publish` two new fully backward-compatible
    keyword-args:
      - `update: bool`
      - `transient: dict`
  * Support new `transient` key in `display_data` messages spec for `publish`.
    For a display data message, `transient` contains data that shouldn't be
    persisted to files or documents. Add a `display_id` to this `transient`
    dict by `display(obj, display_id=...)`
  * Add `ipykernel_launcher` module which removes the current working directory
    from `sys.path` before launching the kernel. This helps to reduce the cases
    where the kernel won't start because there's a `random.py` (or similar)
    module in the current working directory.
  * Add busy/idle messages on IOPub during processing of aborted requests
  * Add active event loop setting to GUI, which enables the correct response
    to IPython's `is_event_loop_running_xxx`
  * Include IPython kernelspec in wheels to reduce reliance on "native kernel
    spec" in jupyter_client
  * Modify `OutStream` to inherit from `TextIOBase` instead of object to improve
    API support and error reporting
  * Fix IPython kernel death messages at start, such as "Kernel Restarting..."
    and "Kernel appears to have died", when parent-poller handles PID 1
  * Various bugfixes
- Update to 4.5.2
  * Fix bug when instantating Comms outside of the IPython kernel (introduced in 4.5.1).
- Update to 4.5.1
  * Add missing ``stream`` parameter to overridden :func:`getpass`
  * Remove locks from iopub thread, which could cause deadlocks during debugging
  * Fix regression where KeyboardInterrupt was treated as an aborted request, rather than an error
  * Allow instantating Comms outside of the IPython kernel
- Update to 4.5.0
  * Use figure.dpi instead of savefig.dpi to set DPI for inline figures
  * Support ipympl matplotlib backend (requires IPython update as well to fully work)
  * Various bugfixes, including fixes for output coming from threads,
    and :func:`input` when called with non-string prompts, which stdlib allows.
- Update to 4.4.1
  * Fix circular import of matplotlib on Python 2 caused by the inline backend changes in 4.4.0.
- Update to 4.4.0
  * Use `MPLBACKEND`_ environment variable to tell matplotlib >= 1.5 use use the inline backend by default.
    This is only done if MPLBACKEND is not already set and no backend has been explicitly loaded,
    so setting ``MPLBACKEND=Qt4Agg`` or calling ``%matplotlib notebook`` or ``matplotlib.use('Agg')``
    will take precedence.
  * Fixes for logging problems caused by 4.3,
    where logging could go to the terminal instead of the notebook.
  * Add ``--sys-prefix`` and ``--profile`` arguments to :command:`ipython kernel install`
  * Allow Comm (Widget) messages to be sent from background threads.
  * Select inline matplotlib backend by default if ``%matplotlib`` magic or
    ``matplotlib.use()`` are not called explicitly (for matplotlib >= 1.5).
  * Fix some longstanding minor deviations from the message protocol
    (missing status: ok in a few replies, connect_reply format).
  * Remove calls to NoOpContext from IPython, deprecated in 5.0.
- Update to 4.3.2
  * Use a nonempty dummy session key for inprocess kernels to avoid security
    warnings.
  * Fix Windows Python 3.5 incompatibility caused by faulthandler patch in 4.3
- Update to 4.3.0
  * Publish all IO in a thread, via :class:`IOPubThread`.
    This solves the problem of requiring :meth:`sys.stdout.flush` to be called in the notebook to produce output promptly during long-running cells.
  * Remove refrences to outdated IPython guiref in kernel banner.
  * Patch faulthandler to use ``sys.__stderr__`` instead of forwarded ``sys.stderr``,
    which has no fileno when forwarded.
  * Deprecate some vestiges of the Big Split:
  * :func:`ipykernel.find_connection_file` is deprecated. Use :func:`jupyter_client.find_connection_file` instead.
  * Various pieces of code specific to IPython parallel are deprecated in ipykernel
    and moved to ipyparallel.
- Split documentation into own subpackage
- Update to version 4.2.2
  * Don't show interactive debugging info when kernel crashes
  * Fix handling of numerical types in json_clean
  * Testing fixes for output capturing
- update to version 4.2.1:
  * Fix default display name back to "Python X" instead of "pythonX"
- update to version 4.2.0:
  * Support sending a full message in initial opening of comms
    (metadata, buffers were not previously allowed)
  * When using "ipython kernel install --name" to install the IPython
    kernelspec, default display-name to the same value as "--name".
- update to version 4.1.1:
  * Fix missing "ipykernel.__version__" on Python 2.
  * Fix missing "target_name" when opening comms from the frontend.
- Update to 4.1.0
  * add ipython kernel install entrypoint for installing the IPython kernelspec
  * provisional implementation of comm_info request/reply for msgspec v5.1
- Initial version

OBS-URL: https://build.opensuse.org/request/show/697882
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=1
2019-04-25 15:51:12 +00:00

140 lines
4.6 KiB
RPMSpec

#
# spec file for package python-ipykernel
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-ipykernel
Version: 5.1.0
Release: 0
Summary: IPython Kernel for Jupyter
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/ipython/ipykernel
Source0: https://files.pythonhosted.org/packages/py3/i/ipykernel/ipykernel-%{version}-py3-none-any.whl
# Please make sure you update the documentation files at every release
Source1: https://media.readthedocs.org/pdf/ipykernel/stable/ipykernel.pdf
Source2: https://media.readthedocs.org/htmlzip/ipykernel/stable/ipykernel.zip
BuildRequires: %{python_module jupyter_client}
BuildRequires: %{python_module jupyter_core}
BuildRequires: %{python_module ipython >= 4.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module tornado >= 4.0}
BuildRequires: %{python_module traitlets >= 4.1.0}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-jupyter_client
Requires: python-jupyter_core
Requires: python-ipython >= 4.0.0
Requires: python-tornado >= 4.0
Requires: python-traitlets >= 4.1.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module nose_warnings_filters}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module tornado >= 4.0}
%if 0%{?suse_version} <= 1320
BuildRequires: %{python_module typing}
Requires: python-typing
%endif
# /SECTION
# typing is only built-in for later versions of python
Provides: python-jupyter_ipykernel = %{version}
Obsoletes: python-jupyter_ipykernel <= %{version}
Requires: jupyter-ipykernel = %{version}
%python_subpackages
%description
This package provides the IPython kernel for Jupyter.
This package provides the python interface.
%package -n jupyter-ipykernel
Summary: IPython Kernel for Jupyter
Requires: python3-ipykernel = %{version}
Requires: jupyter-jupyter_client
Requires: hicolor-icon-theme
%description -n jupyter-ipykernel
This package provides the IPython kernel for Jupyter.
This package provides the jupyter components.
%package -n jupyter-ipykernel-doc
Summary: Documentation for the IPython kernel for Jupyter
Group: Documentation/Other
Provides: %{python_module ipykernel-doc = %{version}}
Provides: %{python_module jupyter_ipykernel-doc = %{version}}
Obsoletes: %{python_module jupyter_ipykernel-doc <= %{version}}
%description -n jupyter-ipykernel-doc
Documentation and help files for the IPython kernel for Jupyter.
%prep
%setup -q -T -c
cp %{SOURCE1} .
unzip %{SOURCE2} -d docs
mv docs/ipykernel-* docs/html
rm docs/html/.buildinfo
%build
# Not needed
%install
%python_expand pip%{$python_bin_suffix} install \
--root %{buildroot} \
--prefix %{_prefix} \
--compile \
%{SOURCE0}
mkdir -p %{buildroot}%{_docdir}/jupyter-ipykernel
cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-ipykernel/
cp -r docs/html %{buildroot}%{_docdir}/jupyter-ipykernel/
%fdupes %{buildroot}%{_docdir}/jupyter-ipykernel/
cp %{buildroot}%{python_sitelib}/ipykernel-%{version}.dist-info/LICENSE.txt .
%check
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{python_sitelib}
nosetests-%{$python_bin_suffix}
}
%files %{python_files}
%{python_sitelib}/ipykernel-%{version}.dist-info/
%license %{python_sitelib}/ipykernel-%{version}.dist-info/LICENSE.txt
%{python_sitelib}/ipykernel/
%{python_sitelib}/ipykernel_launcher.py*
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.py*
%files -n jupyter-ipykernel
%license LICENSE.txt
%{_jupyter_kernel_dir}/python3/
%files -n jupyter-ipykernel-doc
%license LICENSE.txt
%dir %{_docdir}/jupyter-ipykernel/
%{_docdir}/jupyter-ipykernel/ipykernel.pdf
%{_docdir}/jupyter-ipykernel/html
%changelog