Accepting request 869210 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 2.1.0 / jupyterlab extension 2.0.1 * Dropped Python 3.5 support. * Optimize comparison of large stream outputs. * Fixed an error when merging a file that were concurrently added in two branches with git. * Fixed a config bug where ignore configs written in a file was not taken into account. * Fixed compatibility with JupyterLab 2.2 - Changes in 2.0.0 * Dropped Python 2 support, and Python 3.4 support. * Made web apps (e.g. nbdiff-web) work properly offline. * Fix for git driver with renamed files. - Fix new wheel location for %pyproject_install OBS-URL: https://build.opensuse.org/request/show/869210 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbdime?expand=0&rev=19
This commit is contained in:
parent
45e18f2b6a
commit
86e5476d63
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5be5159e4f58d1324279fa330baca72d22d618fc0383fdb7dd549857e0858341
|
|
||||||
size 4316133
|
|
3
nbdime-2.1.0-py2.py3-none-any.whl
Normal file
3
nbdime-2.1.0-py2.py3-none-any.whl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:53c5219ab56b157acb81faa1e09e36e5ba589a9bece47c6c197348699484a643
|
||||||
|
size 5046479
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 4 11:03:23 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 2.1.0 / jupyterlab extension 2.0.1
|
||||||
|
* Dropped Python 3.5 support.
|
||||||
|
* Optimize comparison of large stream outputs.
|
||||||
|
* Fixed an error when merging a file that were concurrently added
|
||||||
|
in two branches with git.
|
||||||
|
* Fixed a config bug where ignore configs written in a file was
|
||||||
|
not taken into account.
|
||||||
|
* Fixed compatibility with JupyterLab 2.2
|
||||||
|
- Changes in 2.0.0
|
||||||
|
* Dropped Python 2 support, and Python 3.4 support.
|
||||||
|
* Made web apps (e.g. nbdiff-web) work properly offline.
|
||||||
|
* Fix for git driver with renamed files.
|
||||||
|
- Fix new wheel location for %pyproject_install
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 23 10:42:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Thu Apr 23 10:42:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-nbdime
|
# spec file for package python-nbdime
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define mainver 1.1.0
|
%define mainver 2.1.0
|
||||||
%define labver 1.0.0
|
%define labver 2.0.1
|
||||||
Name: python-nbdime
|
Name: python-nbdime
|
||||||
Version: %{mainver}
|
Version: %{mainver}
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -40,8 +40,9 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: jupyter-jupyterlab-filesystem
|
BuildRequires: jupyter-jupyterlab-filesystem
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module jsonschema > 3}
|
BuildRequires: %{python_module jsonschema}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module pytest-timeout}
|
||||||
|
BuildRequires: %{python_module pytest-tornado}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: jupyter-nbdime = %{mainver}
|
Requires: jupyter-nbdime = %{mainver}
|
||||||
@ -125,30 +126,29 @@ This package provides mercurial integration.
|
|||||||
%setup -q -c -T
|
%setup -q -c -T
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Not needed
|
%python_expand mkdir build; cp -a %{SOURCE0} build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cp -a %{SOURCE0} .
|
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
|
||||||
%{jupyter_move_config}
|
%{jupyter_move_config}
|
||||||
|
%python_expand sed -i 's/^import mock/from unittest import mock/' %{buildroot}%{$python_sitelib}/nbdime/tests/test_*.py
|
||||||
%python_expand find %{buildroot}%{$python_sitelib} -type f -name "*.py" -exec sed -i 's/\r$//' {} +
|
%python_expand find %{buildroot}%{$python_sitelib} -type f -name "*.py" -exec sed -i 's/\r$//' {} +
|
||||||
%python_expand find %{buildroot}%{$python_sitelib} -type f -name "*.ipynb" -exec sed -i 's/\r$//' {} +
|
%python_expand find %{buildroot}%{$python_sitelib} -type f -name "*.ipynb" -exec sed -i 's/\r$//' {} +
|
||||||
%python_expand find %{buildroot}%{$python_sitelib}/nbdime/ -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} +
|
%python_expand find %{buildroot}%{$python_sitelib}/nbdime/ -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} +
|
||||||
|
%python_compileall
|
||||||
cp %{buildroot}%{python3_sitelib}/nbdime-%{mainver}.dist-info/LICENSE.md .
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%{fdupes %{buildroot}%{_jupyter_prefix} %{buildroot}%{python3_sitelib}}
|
%fdupes %{buildroot}%{_jupyter_prefix}
|
||||||
|
cp %{buildroot}%{python3_sitelib}/nbdime-%{mainver}.dist-info/LICENSE.md .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PATH=$PATH:%{buildroot}%{_bindir}
|
export PATH=$PATH:%{buildroot}%{_bindir}
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
git config --global user.email "test@test.com"
|
git config --global user.email "test@test.com"
|
||||||
git config --global user.name "tester"
|
git config --global user.name "tester"
|
||||||
%pytest %{buildroot}%{python3_sitelib}/nbdime/
|
%pytest --pyargs nbdime
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license %{python_sitelib}/nbdime-%{mainver}.dist-info/LICENSE.md
|
%license LICENSE.md
|
||||||
%{python_sitelib}/nbdime/
|
%{python_sitelib}/nbdime/
|
||||||
%{python_sitelib}/nbdime-%{mainver}.dist-info/
|
%{python_sitelib}/nbdime-%{mainver}.dist-info/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user