# Unset -s on python shebang - ensure that extensions installed with pip # to user locations are seen and properly loaded %global py3_shebang_flags %nil %global srcname jupyter-console %global srcname_ jupyter_console Name: python-%{srcname} Version: 6.4.0 Release: 7%{?dist} Summary: Jupyter terminal console License: BSD URL: https://jupyter.org Source0: %pypi_source %{srcname_} # Remove the loop parameter from asyncio.wait() # Reported upstream in https://github.com/jupyter/jupyter_console/issues/245 # Not backwards compatible with all older Pythons, downstream only for now Patch1: python3.10.patch # Compatibility with jupyter-client 7 # Patches from https://github.com/jupyter/jupyter_console/pull/244/ Patch2: https://github.com/jupyter/jupyter_console/commit/0c7aca07d45ff009327599f6985c6a8ebbd98987.patch Patch3: https://github.com/jupyter/jupyter_console/commit/84a4c63f7c2b700357f5e5f730209dc4fc897c24.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) >= 40.8 %description An IPython-like terminal frontend for Jupyter kernels in any language. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3dist(jupyter-client) BuildRequires: python3dist(ipython) BuildRequires: python3dist(ipykernel) BuildRequires: python3dist(pillow) BuildRequires: python3dist(prompt-toolkit) >= 2 BuildRequires: python3dist(pygments) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pyzmq) %{?python_enable_dependency_generator} %description -n python3-%{srcname} An IPython-like terminal frontend for Jupyter kernels in any language. %package -n python-%{srcname}-doc Summary: jupyter-console documentation BuildArch: noarch BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: python3dist(sphinxcontrib-github-alt) %description -n python-%{srcname}-doc Documentation for jupyter-console %prep %autosetup -n %{srcname_}-%{version} -p1 # setuptools is used, but only implicitly through pip, not explicitly. sed -i 's/distutils.core/setuptools/g' setup.py %build %py3_build # generate html docs %make_build -C docs html PYTHONPATH=${PWD}/build/lib mv docs/_build/html . # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check %{pytest} -ra # assert we can start the console ad run a simple command export PATH=%{buildroot}%{_bindir}:$PATH export PYTHONPATH=%{buildroot}%{python3_sitelib} echo 'exit()' | jupyter-console --simple-prompt %files -n python3-%{srcname} %doc README.md %license COPYING.md %{_bindir}/%{srcname} %{python3_sitelib}/%{srcname_}/ %{python3_sitelib}/%{srcname_}-%{version}-py*.egg-info/ %files -n python-%{srcname}-doc %doc html %license COPYING.md %changelog * Fri Jan 21 2022 Fedora Release Engineering - 6.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 29 2021 Karolina Surma - 0.6.4-6 - Remove -s from Python shebang in `jupyter-console` to let Jupyter see pip installed extensions * Tue Aug 31 2021 Lumír Balhar - 0.6.4-5 - Fix compatibility with jupyter-client 7 * Fri Jul 23 2021 Fedora Release Engineering - 6.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jul 02 2021 Miro Hrončok - 6.4.0-3 - Support Python 3.10 - Generate the documentation completely - Fixes: rhbz#1978009 * Fri Jun 04 2021 Python Maint - 6.4.0-2 - Rebuilt for Python 3.10 * Tue Mar 23 2021 Elliott Sales de Andrade - 6.4.0-1 - Update to latest version (#1942249) * Sun Mar 21 2021 Elliott Sales de Andrade - 6.3.0-1 - Update to latest version (#1939562) * Wed Jan 27 2021 Fedora Release Engineering - 6.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Aug 28 2020 Elliott Sales de Andrade - 6.2.0-1 - Update to latest version (#1873638) * Wed Jul 29 2020 Fedora Release Engineering - 6.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Elliott Sales de Andrade - 6.1.0-3 - Backport Python 3.9 fix * Tue May 26 2020 Miro Hrončok - 6.1.0-3 - Rebuilt for Python 3.9 * Sat May 16 2020 Itamar Reis Peixoto - 6.1.0-2 - Change spec to build with prompt_toolkit 3.0.5 * Tue Jan 28 2020 Elliott Sales de Andrade - 6.1.0-1 - Update to latest version * Thu Oct 03 2019 Miro Hrončok - 6.0.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 6.0.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 6.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 2019 Elliott Sales de Andrade - 6.0.0-1 - Initial package.