Blame python-jupyter-console.spec

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