Accepting request 698360 from home:TheBlackCat:branches:devel:languages:python:jupyter

- Rename to to match jupyter package naming guidelines.
- Do not let pip produce pyc files with random path
  to make package build reproducible (boo#1094323)
- Use %license tag
- Add license and readme
- Update to version 0.3
  * When an error occurs, don't display the outermost error from eval.
  * Clarify message when errors come from plotly.
  * Drop support for Jupyter 5.0 (requires workarounds); fix support for IPython 6.2, ipykernel 4.7.
  * Figure exporter sorts figures by number and uses the screen resolution.
- Enable kernel
- Initial version

OBS-URL: https://build.opensuse.org/request/show/698360
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/jupyter-imatlab?expand=0&rev=1
This commit is contained in:
Todd R 2019-04-26 19:45:44 +00:00 committed by Git OBS Bridge
commit 27150de26d
5 changed files with 136 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:52120ea41ed30ec0fe9ccb4c59178224e241a63699365bf357f3b84637c56b1c
size 17297

35
jupyter-imatlab.changes Normal file
View File

@ -0,0 +1,35 @@
-------------------------------------------------------------------
Thu Apr 25 01:59:57 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Rename to to match jupyter package naming guidelines.
-------------------------------------------------------------------
Wed Dec 19 15:50:00 UTC 2018 - Bernhard Wiedemann <bwiedemann@suse.com>
- Do not let pip produce pyc files with random path
to make package build reproducible (boo#1094323)
-------------------------------------------------------------------
Thu May 3 14:07:08 UTC 2018 - toddrme2178@gmail.com
- Use %license tag
- Add license and readme
-------------------------------------------------------------------
Thu Apr 19 05:48:53 UTC 2018 - toddrme2178@gmail.com
- Update to version 0.3
* When an error occurs, don't display the outermost error from eval.
* Clarify message when errors come from plotly.
* Drop support for Jupyter 5.0 (requires workarounds); fix support for IPython 6.2, ipykernel 4.7.
* Figure exporter sorts figures by number and uses the screen resolution.
-------------------------------------------------------------------
Fri Nov 10 15:29:30 UTC 2017 - toddrme2178@gmail.com
- Enable kernel
-------------------------------------------------------------------
Sun Oct 22 18:36:53 UTC 2017 - toddrme2178@gmail.com
- Initial version

74
jupyter-imatlab.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package jupyter-imatlab
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%bcond_without test
Name: jupyter-imatlab
Version: 0.3
Release: 0
Summary: Jupyter kernel for MATLAB
License: MIT
Group: Development/Languages/Python
URL: https://github.com/imatlab/imatlab
Source0: https://files.pythonhosted.org/packages/py3/i/imatlab/imatlab-%{version}-py3-none-any.whl
BuildRequires: fdupes
BuildRequires: jupyter-ipykernel >= 4.1
BuildRequires: jupyter-ipython >= 6
BuildRequires: jupyter-widgetsnbextension >= 1.0
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-plotly
BuildRequires: unzip
Requires: jupyter-ipykernel >= 4.1
Requires: jupyter-ipython >= 6
Requires: jupyter-widgetsnbextension >= 1.0
Requires: python3-plotly
Provides: python-jupyter_imatlab_kernel = %{version}
Obsoletes: python-jupyter_imatlab_kernel <= %{version}
Provides: python3-imatlab = %{version}
BuildArch: noarch
%description
A Jupyter kernel for MATLAB.
This kernel requires Jupyter with Python 3.5+,
and the MATLAB engine for Python (this release
provides a much better completion API), which
needs to be installed first.
%prep
%setup -q -T -c
%build
# Make mock MATLAB engine to allow kernel installation.
# See https://github.com/imatlab/imatlab/issues/31
mkdir matlab
echo 'EngineError = MatlabExecutionError = Exception' > matlab/engine.py
%install
# use --no-deps because it looks for MATLAB itself
pip%{python3_bin_suffix} install --root %{buildroot} --prefix %{_prefix} --no-compile --no-deps %{SOURCE0}
PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m imatlab install --prefix %{buildroot}%{_prefix}
%files
%{python3_sitelib}/imatlab-%{version}.dist-info
%license %{python3_sitelib}/imatlab-%{version}.dist-info/LICENSE.txt
%{python3_sitelib}/imatlab/
%{_jupyter_kernel_dir}/imatlab/
%changelog