Group :: Development/Python3
RPM: python3-module-jupyter_console
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname jupyter_console
%def_with docs
%def_with check
Name: python3-module-%oname
Version: 6.6.3
Release: alt2
Summary: Jupyter Terminal Console
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/jupyter-console/
Vcs: https://github.com/jupyter/jupyter_console.git
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-hatchling
BuildRequires: python3-module-traitlets-tests
BuildRequires: python3-module-jupyter_core
BuildRequires: python3-module-jupyter_client
BuildRequires: python3-module-ipython
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-zmq
BuildRequires: python3-module-flaky
BuildRequires: python3-module-ipykernel
BuildRequires: python3-module-pexpect
BuildRequires: python3-module-prompt_toolkit
BuildRequires: python3-module-Pygments
%endif
%if_with docs
BuildRequires: python3-module-sphinx_rtd_theme
BuildRequires: python3-module-sphinxcontrib_github_alt
BuildRequires: python3-module-sphinx-sphinx-build-symlink
%endif
%py3_provides %oname
%description
A terminal-based console frontend for Jupter kernels. This code is based
on the single-process IPython terminal.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
A terminal-based console frontend for Jupter kernels. This code is based
on the single-process IPython terminal.
This package contains tests for %oname.
%prep
%setup
sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \
$(find ./ -type f \( -name '*.py' -o -name 'jupyter-console' \))
%build
%pyproject_build
%install
%pyproject_install
%if_with docs
export PYTHONPATH=$PWD
%make -C docs html
%endif
%check
%pyproject_run_pytest -v
%files
%doc *.md
%if_with docs
%doc docs/_build/html
%endif
%_bindir/*
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Full changelog you can see here
%define oname jupyter_console
%def_with docs
%def_with check
Name: python3-module-%oname
Version: 6.6.3
Release: alt2
Summary: Jupyter Terminal Console
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/jupyter-console/
Vcs: https://github.com/jupyter/jupyter_console.git
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-hatchling
BuildRequires: python3-module-traitlets-tests
BuildRequires: python3-module-jupyter_core
BuildRequires: python3-module-jupyter_client
BuildRequires: python3-module-ipython
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-zmq
BuildRequires: python3-module-flaky
BuildRequires: python3-module-ipykernel
BuildRequires: python3-module-pexpect
BuildRequires: python3-module-prompt_toolkit
BuildRequires: python3-module-Pygments
%endif
%if_with docs
BuildRequires: python3-module-sphinx_rtd_theme
BuildRequires: python3-module-sphinxcontrib_github_alt
BuildRequires: python3-module-sphinx-sphinx-build-symlink
%endif
%py3_provides %oname
%description
A terminal-based console frontend for Jupter kernels. This code is based
on the single-process IPython terminal.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
A terminal-based console frontend for Jupter kernels. This code is based
on the single-process IPython terminal.
This package contains tests for %oname.
%prep
%setup
sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \
$(find ./ -type f \( -name '*.py' -o -name 'jupyter-console' \))
%build
%pyproject_build
%install
%pyproject_install
%if_with docs
export PYTHONPATH=$PWD
%make -C docs html
%endif
%check
%pyproject_run_pytest -v
%files
%doc *.md
%if_with docs
%doc docs/_build/html
%endif
%_bindir/*
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Full changelog you can see here