Hello community, here is the log from the commit of package python-jupyter_contrib_core for openSUSE:Factory checked in at 2020-09-16 19:40:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter_contrib_core (Old) and /work/SRC/openSUSE:Factory/.python-jupyter_contrib_core.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_contrib_core" Wed Sep 16 19:40:03 2020 rev:5 rq:834844 version:0.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter_contrib_core/python-jupyter_contrib_core.changes 2020-04-23 18:37:45.908928830 +0200 +++ /work/SRC/openSUSE:Factory/.python-jupyter_contrib_core.new.4249/python-jupyter_contrib_core.changes 2020-09-16 19:40:23.246869944 +0200 @@ -1,0 +2,8 @@ +Tue Sep 15 13:33:09 UTC 2020 - pgaj...@suse.com + +- replace nose with pytest +- added patches + https://github.com/Jupyter-contrib/jupyter_contrib_core/pull/9 + + python-jupyter_contrib_core-remove-nose.patch + +------------------------------------------------------------------- New: ---- python-jupyter_contrib_core-remove-nose.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter_contrib_core.spec ++++++ --- /var/tmp/diff_new_pack.I7RHA2/_old 2020-09-16 19:40:24.638871510 +0200 +++ /var/tmp/diff_new_pack.I7RHA2/_new 2020-09-16 19:40:24.642871515 +0200 @@ -18,7 +18,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 -%bcond_without tests Name: python-jupyter_contrib_core Version: 0.3.3 Release: 0 @@ -27,16 +26,18 @@ Group: Development/Languages/Python URL: https://github.com/jupyter-contrib/jupyter_contrib_core Source: https://files.pythonhosted.org/packages/source/j/jupyter_contrib_core/jupyter_contrib_core-%{version}.tar.gz +# https://github.com/Jupyter-contrib/jupyter_contrib_core/pull/9 +Patch0: python-jupyter_contrib_core-remove-nose.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with tests} +# SECTION test requirements BuildRequires: %{python_module jupyter-core} -BuildRequires: %{python_module nose} BuildRequires: %{python_module notebook >= 4.0} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module tornado} BuildRequires: %{python_module traitlets} -%endif +# /SECTION Requires: python-jupyter-core Requires: python-notebook >= 4.0 Requires: python-setuptools @@ -78,6 +79,7 @@ %prep %setup -q -n jupyter_contrib_core-%{version} +%patch0 -p1 %build export LANG=en_US.UTF-8 @@ -88,11 +90,9 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check export LANG=en_US.UTF-8 -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v -%endif +%pytest %files %{python_files} %doc README.md ++++++ python-jupyter_contrib_core-remove-nose.patch ++++++ Index: jupyter_contrib_core-0.3.3/tests/test_application.py =================================================================== --- jupyter_contrib_core-0.3.3.orig/tests/test_application.py 2017-08-31 01:16:16.000000000 +0200 +++ jupyter_contrib_core-0.3.3/tests/test_application.py 2020-09-15 14:19:54.992573764 +0200 @@ -8,7 +8,7 @@ from __future__ import ( import logging from unittest import TestCase -import nose.tools as nt +import pytest from traitlets.tests.utils import check_help_all_output, check_help_output from jupyter_contrib_core.application import main as main_app @@ -59,5 +59,5 @@ class AppTest(TestCase): check_help_output(app_module, []) check_help_all_output(app_module, []) # sys.exit should be called if no argv specified - with nt.assert_raises(SystemExit): + with pytest.raises(SystemExit): main_app([])