Репозиторий Sisyphus
Последнее обновление: 21 октября 2018 | Пакетов: 18631 | Посещений: 12406323
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-jupyter_console

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname jupyter_console

%def_with python3

Name: python-module-%oname
Version: 5.2.0
Release: alt1.1
Summary: Jupyter Terminal Console
License: BSD
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/jupyter_console

# https://github.com/jupyter/jupyter_console.git

Source: %name-%version.tar
Patch1: %oname-%version-alt-docs.patch

BuildRequires: python-devel python-module-setuptools /dev/pts
BuildRequires: python-module-jupyter_client ipython
BuildRequires: python-module-ipykernel python-module-mock
BuildRequires: python-module-pexpect python-module-nose
BuildRequires: python-module-coverage python-module-traitlets-tests
BuildRequires: python-module-ipython_genutils-tests
BuildRequires: python-module-sphinx-devel
BuildRequires: python2.7(sphinx_rtd_theme) python2.7(sphinxcontrib_github_alt)
BuildRequires: python2.7(pathlib2) python2.7(PIL)
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-jupyter_client ipython3
BuildRequires: python3-module-ipykernel python3-module-mock
BuildRequires: python3-module-pexpect python3-module-nose
BuildRequires: python3-module-coverage python3-module-traitlets-tests
BuildRequires: python3-module-ipython_genutils-tests
BuildRequires: python3(pathlib2) python3(PIL)
%endif

%py_provides %oname
%py_requires jupyter_client IPython ipykernel

%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/Python
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.

%if_with python3
%package -n python3-module-%oname
Summary: Jupyter Terminal Console
Group: Development/Python3
%py3_provides %oname
%py3_requires jupyter_client IPython ipykernel

%description -n python3-module-%oname
A terminal-based console frontend for Jupter kernels. This code is based
on the single-process IPython terminal.

%package -n python3-module-%oname-tests
Summary: Tests for %oname
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description -n python3-module-%oname-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.
%endif

%prep
%setup
%patch1 -p1

%if_with python3
cp -fR . ../python3
%endif

%prepare_sphinx .
ln -s ../objects.inv docs/

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%if_with python3
pushd ../python3
%python3_install
popd
pushd %buildroot%_bindir
for i in $(ls); do
mv $i $i.py3
done
popd
%endif

%python_install

export PYTHONPATH=$PWD
%make -C docs html

%check
JUPYTER_CONSOLE_TEST=yes nosetests -vv --with-coverage --cover-package=%oname %oname
%if_with python3
pushd ../python3
JUPYTER_CONSOLE_TEST=yes nosetests3 -vv --with-coverage --cover-package=%oname %oname
popd
%endif

%files
%doc *.md docs/_build/html
%_bindir/*
%if_with python3
%exclude %_bindir/*.py3
%endif
%python_sitelibdir/*
%exclude %python_sitelibdir/*/tests

%files tests
%python_sitelibdir/*/tests

%if_with python3
%files -n python3-module-%oname
%doc *.md docs/_build/html
%_bindir/*.py3
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/tests

%files -n python3-module-%oname-tests
%python3_sitelibdir/*/tests
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin