| |
@@ -3,13 +3,18 @@
|
| |
|
| |
Name: python-%{srcname}
|
| |
Version: 6.4.0
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?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
|
| |
+
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python3-devel
|
| |
@@ -42,6 +47,7 @@
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
+ BuildRequires: make
|
| |
BuildRequires: python3dist(sphinx)
|
| |
BuildRequires: python3dist(sphinx-rtd-theme)
|
| |
BuildRequires: python3dist(sphinxcontrib-github-alt)
|
| |
@@ -61,7 +67,8 @@
|
| |
%py3_build
|
| |
|
| |
# generate html docs
|
| |
- PYTHONPATH=${PWD} sphinx-build-3 docs html
|
| |
+ %make_build -C docs html PYTHONPATH=${PWD}/build/lib
|
| |
+ mv docs/_build/html .
|
| |
# remove the sphinx-build leftovers
|
| |
rm -rf html/.{doctrees,buildinfo}
|
| |
|
| |
@@ -73,6 +80,11 @@
|
| |
%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
|
| |
@@ -87,6 +99,11 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Jul 02 2021 Miro Hrončok <mhroncok@redhat.com> - 6.4.0-3
|
| |
+ - Support Python 3.10
|
| |
+ - Generate the documentation completely
|
| |
+ - Fixes: rhbz#1978009
|
| |
+
|
| |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.4.0-2
|
| |
- Rebuilt for Python 3.10
|
| |
|
| |