Accepting request 333148 from devel:languages:python

This is required by the latest version of IPython, which is already in openSUSE:Factory.

OBS-URL: https://build.opensuse.org/request/show/333148
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter_console?expand=0&rev=1
This commit is contained in:
Stephan Kulow 2015-09-30 03:51:14 +00:00 committed by Git OBS Bridge
commit 920f1b908d
5 changed files with 138 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

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

View File

@ -0,0 +1,21 @@
-------------------------------------------------------------------
Wed Sep 16 15:26:27 UTC 2015 - toddrme2178@gmail.com
- Update to 4.0.2
* fix `jupyter console --generate-config`
* add long_description
* fix setuptools entrypoint
- Update to 4.0.1
* entrypoints only when setuptools invoked
* bug fix
* suggestion for windows users
* Fix printing errors when execute_reply and error messages come
* Try installing IPython from Github on RTD
* Try installing on RTD with --pre to get IPython 4
* Add requirements file for RTD
-------------------------------------------------------------------
Tue Jul 21 15:06:50 UTC 2015 - toddrme2178@gmail.com
- Initial version

View File

@ -0,0 +1,90 @@
#
# spec file for package python-jupyter_console
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-jupyter_console
Version: 4.0.2
Release: 0
Summary: Jupyter terminal console
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://jupyter.org
Source: https://pypi.python.org/packages/source/j/jupyter_console/jupyter_console-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-jupyter_client
BuildRequires: python-jupyter_ipykernel
BuildRequires: python-jupyter_ipython
BuildRequires: python-setuptools
# Test requirements
BuildRequires: python-nose
# Python 2.x test requirements
BuildRequires: python-mock
Requires: python-jupyter_client
Requires: python-jupyter_ipykernel
Requires: python-jupyter_ipython
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
A terminal-based console frontend for Jupter kernels.
This code is based on the single-process IPython terminal.
%prep
%setup -q -n jupyter_console-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# 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
%post
%_sbindir/update-alternatives \
--install %{_bindir}/jupyter-console jupyter-console %{_bindir}/jupyter-console-%{py_ver} 30
%postun
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove jupyter-console %{_bindir}/jupyter-console-%{py_ver}
fi
%check
pushd jupyter_console
PYTHONPATH=%{buildroot}%{python_sitelib} nosetests
popd
%files
%defattr(-,root,root,-)
%doc CONTRIBUTING.md COPYING.md README.md
%{_bindir}/jupyter-console
%{_bindir}/jupyter-console-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-console
%{python_sitelib}/*
%changelog