Accepting request 338173 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/338173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter_console?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2015-11-18 21:34:02 +00:00 committed by Git OBS Bridge
parent 920f1b908d
commit b47677c9e3
4 changed files with 61 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97e27e1c27a6dd04d166b7a4c81d717becdd979a0879a628e08f295a43a2bc58
size 21569

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:555be6963a8f6431fbe1d424c7ffefee90824758058e4c9a2ab3aa045948eb85
size 22090

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Oct 12 13:46:17 UTC 2015 - toddrme2178@gmail.com
- Update to 4.0.3
* fix jupyter console --generate-config
-------------------------------------------------------------------
Mon Oct 5 10:01:17 UTC 2015 - toddrme2178@gmail.com
- Build documentation
-------------------------------------------------------------------
Wed Sep 16 15:26:27 UTC 2015 - toddrme2178@gmail.com

View File

@ -17,7 +17,7 @@
Name: python-jupyter_console
Version: 4.0.2
Version: 4.0.3
Release: 0
Summary: Jupyter terminal console
License: BSD-3-Clause
@ -33,6 +33,11 @@ BuildRequires: python-setuptools
BuildRequires: python-nose
# Python 2.x test requirements
BuildRequires: python-mock
# Documentation requirements
BuildRequires: python-Sphinx
%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 )
BuildRequires: python-Sphinx-latex
%endif
Requires: python-jupyter_client
Requires: python-jupyter_ipykernel
Requires: python-jupyter_ipython
@ -49,6 +54,20 @@ BuildArch: noarch
A terminal-based console frontend for Jupter kernels.
This code is based on the single-process IPython terminal.
%package doc-html
Summary: HTML documentation for %{name}
Recommends: %{name} = %{version}
%description doc-html
Documentation and help files for %{name} in HTML format
%package doc-pdf
Summary: HTML documentation for %{name}
Recommends: %{name} = %{version}
%description doc-pdf
Documentation and help files for %{name} in PDF format
%prep
%setup -q -n jupyter_console-%{version}
@ -58,13 +77,25 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/jupyter-console %{buildroot}%{_bindir}/jupyter2-console
ln -s %{_bindir}/jupyter2-console %{buildroot}%{_bindir}/jupyter-console-%{py_ver}
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/jupyter-console %{buildroot}%{_bindir}/jupyter-console-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/jupyter-console %{buildroot}%{_bindir}/jupyter-console
# create a dummy target for /etc/alternatives/jupyter-console
touch %{buildroot}%{_sysconfdir}/alternatives/jupyter-console
# Build the documentation
pushd docs
sed -i -s 's/ python3 / python /' Makefile
%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 )
PYTHONPATH=%{buildroot}%{python_sitelib} make latexpdf
%endif
PYTHONPATH=%{buildroot}%{python_sitelib} make html
rm -rf _build/html/.buildinfo
popd
%post
%_sbindir/update-alternatives \
--install %{_bindir}/jupyter-console jupyter-console %{_bindir}/jupyter-console-%{py_ver} 30
@ -75,16 +106,27 @@ if [ $1 -eq 0 ] ; then
fi
%check
pushd jupyter_console
PYTHONPATH=%{buildroot}%{python_sitelib} nosetests
popd
nosetests jupyter_console
%files
%defattr(-,root,root,-)
%doc CONTRIBUTING.md COPYING.md README.md
%{_bindir}/jupyter-console
%{_bindir}/jupyter2-console
%{_bindir}/jupyter-console-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-console
%{python_sitelib}/*
%files doc-html
%defattr(-,root,root,-)
%doc COPYING.md
%doc docs/_build/html/
%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 )
%files doc-pdf
%defattr(-,root,root,-)
%doc COPYING.md
%doc docs/_build/latex/*.pdf
%endif
%changelog