Accepting request 839282 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/839282 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter_console?expand=0&rev=14
This commit is contained in:
commit
fb609acbd0
22
python-jupyter_console-remove-nose.patch
Normal file
22
python-jupyter_console-remove-nose.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: jupyter_console-6.1.0/jupyter_console/tests/test_console.py
|
||||||
|
===================================================================
|
||||||
|
--- jupyter_console-6.1.0.orig/jupyter_console/tests/test_console.py 2020-01-16 00:32:32.000000000 +0100
|
||||||
|
+++ jupyter_console-6.1.0/jupyter_console/tests/test_console.py 2020-09-15 12:58:23.543962909 +0200
|
||||||
|
@@ -9,7 +9,7 @@ import sys
|
||||||
|
import tempfile
|
||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
-from nose import SkipTest
|
||||||
|
+import pytest
|
||||||
|
|
||||||
|
from traitlets.tests.utils import check_help_all_output
|
||||||
|
from ipython_genutils.testing import decorators as dec
|
||||||
|
@@ -63,7 +63,7 @@ def start_console():
|
||||||
|
try:
|
||||||
|
p = pexpect.spawn(cmd, args=args, env=env)
|
||||||
|
except IOError:
|
||||||
|
- raise SkipTest("Couldn't find command %s" % cmd)
|
||||||
|
+ pytest.skip("Couldn't find command %s" % cmd)
|
||||||
|
|
||||||
|
# timeout after one minute
|
||||||
|
t = 60
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 2 14:15:27 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- before test drop, try more runs for --flaky
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 15 11:20:20 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- replace nose by pytest
|
||||||
|
- added patches
|
||||||
|
https://github.com/jupyter/jupyter_console/pull/230
|
||||||
|
+ python-jupyter_console-remove-nose.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun May 17 16:40:43 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Sun May 17 16:40:43 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ Summary: Jupyter terminal console
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/jupyter/jupyter_console
|
URL: https://github.com/jupyter/jupyter_console
|
||||||
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_console/jupyter_console-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_console/jupyter_console-%{version}.tar.gz
|
||||||
|
# https://github.com/jupyter/jupyter_console/pull/230
|
||||||
|
Patch0: python-jupyter_console-remove-nose.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -34,8 +36,8 @@ BuildRequires: %{python_module flaky}
|
|||||||
BuildRequires: %{python_module ipykernel}
|
BuildRequires: %{python_module ipykernel}
|
||||||
BuildRequires: %{python_module ipython}
|
BuildRequires: %{python_module ipython}
|
||||||
BuildRequires: %{python_module jupyter-client}
|
BuildRequires: %{python_module jupyter-client}
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: %{python_module prompt_toolkit >= 2}
|
BuildRequires: %{python_module prompt_toolkit >= 2}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module pyzmq}
|
BuildRequires: %{python_module pyzmq}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: jupyter-jupyter_console = %{version}
|
Requires: jupyter-jupyter_console = %{version}
|
||||||
@ -68,6 +70,7 @@ This package provides the jupyter components.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jupyter_console-%{version}
|
%setup -q -n jupyter_console-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -77,7 +80,7 @@ This package provides the jupyter components.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand nosetests-%{$python_bin_suffix} --with-flaky --force-flaky -v -s jupyter_console
|
%pytest -s --force-flaky --max-runs=10
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CONTRIBUTING.md README.md
|
%doc CONTRIBUTING.md README.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user