forked from pool/python-ipython
ca7dfe15ba
- Update to 7.11.1 * A couple of deprecated functions (no-op) have been reintroduces in py3compat as Cython was still relying on them, and will be removed in a couple of versions. - Update to 7.11.0 * A number of function in the ``py3compat`` have been removed; a number of types in the IPython code base are now non-ambiguous and now always ``unicode`` instead of ``Union[Unicode,bytes]``; many of the relevant code path have thus been simplified/cleaned and types annotation added. * IPython support several verbosity level from exceptions. ``xmode plain`` now support chained exceptions. * We are starting to remove ``shell=True`` in some usages of subprocess. While not directly a security issue (as IPython is made to run arbitrary code anyway) it is not good practice and we'd like to show the example. * Work around some bugs in Python 3.9 tokenizer * IPython will now print its version after a crash. - Update to 7.10.2 * IPython 7.10.2 fix a couple of extra incompatibility between IPython, ipdb, asyncio and Prompt Toolkit 3. - Update to IPython 7.10.1 * IPython 7.10.1 fix a couple of incompatibilities with Prompt toolkit 3 (please update Prompt toolkit to 3.0.2 at least), and fixes some interaction with headless IPython. - Update to IPython 7.10.0 * Stop Support for Python 3.5 – Adopt NEP 29 * Support for Prompt Toolkit 3.0 * Prompt Rendering Performance improvements * Code autoformatting * Arbitrary Mimetypes Handing in Terminal (Aka inline images in terminal) * Completions can define their own ordering * Enable Plotting in the same cell than the one that import matplotlib * Allow to store and restore multiple variables at once - Update to 7.11.1 * A couple of deprecated functions (no-op) have been reintroduces in py3compat as Cython was still relying on them, and will be removed in a couple of versions. - Update to 7.11.0 * A number of function in the ``py3compat`` have been removed; a number of types in the IPython code base are now non-ambiguous and now always ``unicode`` instead of ``Union[Unicode,bytes]``; many of the relevant code path have thus been simplified/cleaned and types annotation added. * IPython support several verbosity level from exceptions. ``xmode plain`` now support chained exceptions. * We are starting to remove ``shell=True`` in some usages of subprocess. While not directly a security issue (as IPython is made to run arbitrary code anyway) it is not good practice and we'd like to show the example. * Work around some bugs in Python 3.9 tokenizer * IPython will now print its version after a crash. - Update to 7.10.2 * IPython 7.10.2 fix a couple of extra incompatibility between IPython, ipdb, asyncio and Prompt Toolkit 3. - Update to IPython 7.10.1 * IPython 7.10.1 fix a couple of incompatibilities with Prompt toolkit 3 (please update Prompt toolkit to 3.0.2 at least), and fixes some interaction with headless IPython. - Update to IPython 7.10.0 * Stop Support for Python 3.5 – Adopt NEP 29 * Support for Prompt Toolkit 3.0 * Prompt Rendering Performance improvements * Code autoformatting * Arbitrary Mimetypes Handing in Terminal (Aka inline images in terminal) * Completions can define their own ordering * Enable Plotting in the same cell than the one that import matplotlib * Allow to store and restore multiple variables at once OBS-URL: https://build.opensuse.org/request/show/764784 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=34
97 lines
3.5 KiB
RPMSpec
97 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python-ipython-doc
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
# This package has to be kept separate from the main package to avoid
|
|
# dependency loops with most of the core jupyter packages.
|
|
%define oldpython python
|
|
%define doc_ver 7.11.1
|
|
Name: python-ipython-doc
|
|
Version: 7.11.1
|
|
Release: 0
|
|
Summary: Documentation for python3-jupyter_ipython
|
|
License: BSD-3-Clause
|
|
Group: Documentation/Other
|
|
URL: https://github.com/ipython/ipython
|
|
Source0: https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
|
|
# Please make sure you update the documentation files at every release
|
|
Source1: https://readthedocs.org/projects/ipython/downloads/pdf/%{doc_ver}#/ipython-%{doc_ver}.pdf
|
|
Source2: https://readthedocs.org/projects/ipython/downloads/htmlzip/%{doc_ver}/#/ipython-%{doc_ver}.zip
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: unzip
|
|
Provides: %{oldpython}-jupyter_ipython-doc = %{version}
|
|
Provides: %{python_module ipython-doc = %{version}}
|
|
Provides: python-ipython-doc = %{version}
|
|
Obsoletes: %{oldpython}-jupyter_ipython-doc < %{version}
|
|
Provides: %{oldpython}-jupyter_ipython-doc-html = %{version}
|
|
Obsoletes: %{oldpython}-jupyter_ipython-doc-html < %{version}
|
|
Provides: %{oldpython}-jupyter_ipython-doc-pdf = %{version}
|
|
Obsoletes: %{oldpython}-jupyter_ipython-doc-pdf < %{version}
|
|
Provides: %{python_module jupyter_ipython-doc = %{version}}
|
|
Obsoletes: %{python_module jupyter_ipython-doc < %{version}}
|
|
Provides: %{python_module jupyter_ipython-doc-html = %{version}}
|
|
Obsoletes: %{python_module jupyter_ipython-doc-html < %{version}}
|
|
Provides: %{python_module jupyter_ipython-doc-pdf = %{version}}
|
|
Obsoletes: %{python_module jupyter_ipython-doc-pdf < %{version}}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: python3-ipython-iptest = %{version}
|
|
# /SECTION
|
|
%ifpython3
|
|
Provides: jupyter-ipython-doc = %{version}
|
|
%endif
|
|
|
|
%description
|
|
Documentation and help files for python3-jupyter_ipython.
|
|
|
|
%prep
|
|
%setup -q -n ipython-%{version}
|
|
unzip %{SOURCE2} -d docs
|
|
mv docs/ipython-* docs/html
|
|
rm docs/html/.buildinfo
|
|
|
|
find examples -type f -name "*.py" -exec sed -i "s|^#!%{_bindir}/env python$|#!%{_bindir}/python3|" {} \;
|
|
|
|
%build
|
|
# Not needed
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_docdir}/python-ipython
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_docdir}/python-ipython/ipython.pdf
|
|
cp -r docs/html %{buildroot}%{_docdir}/python-ipython/
|
|
cp -r examples %{buildroot}%{_docdir}/python-ipython/
|
|
|
|
%fdupes %{buildroot}%{_docdir}/python-ipython/
|
|
|
|
%check
|
|
export LANG="en_US.UTF-8"
|
|
mkdir tester
|
|
pushd tester
|
|
iptest
|
|
popd
|
|
|
|
%files
|
|
%license COPYING.rst docs/source/about/license_and_copyright.rst
|
|
%dir %{_docdir}/python-ipython/
|
|
%doc %{_docdir}/python-ipython/ipython.pdf
|
|
%doc %{_docdir}/python-ipython/html/
|
|
%doc %{_docdir}/python-ipython/examples/
|
|
|
|
%changelog
|