From d8f11426aa84283cb4f84d15d9c33ee3ff584e21 Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Apr 02 2020 15:44:40 +0000 Subject: Update python-spyder-terminal to rev 4 via SR 790073 https://build.opensuse.org/request/show/790073 by user bnavigator + dimstar_suse - rename package in wake of spyder3 to spyder rename [1] - bump requirement to spyder >=4 - run unittests - filter rpmlint warnings about the shipped nodejs components https://build.opensuse.org/request/show/790068 --- diff --git a/packages/p/python-spyder-terminal/.files b/packages/p/python-spyder-terminal/.files index 33bf154..7a1e7cd 100644 Binary files a/packages/p/python-spyder-terminal/.files and b/packages/p/python-spyder-terminal/.files differ diff --git a/packages/p/python-spyder-terminal/.rev b/packages/p/python-spyder-terminal/.rev index c393bca..dd08762 100644 --- a/packages/p/python-spyder-terminal/.rev +++ b/packages/p/python-spyder-terminal/.rev @@ -34,4 +34,17 @@ 786500 + + 7fe6d2f40ab670c724c716c49c578f29 + 0.3.0 + + dimstar_suse + - rename package in wake of spyder3 to spyder rename [1] +- bump requirement to spyder >=4 +- run unittests +- filter rpmlint warnings about the shipped nodejs components + +https://build.opensuse.org/request/show/790068 + 790073 + diff --git a/packages/p/python-spyder-terminal/python-spyder-terminal-rpmlintrc b/packages/p/python-spyder-terminal/python-spyder-terminal-rpmlintrc new file mode 100644 index 0000000..87d6a19 --- /dev/null +++ b/packages/p/python-spyder-terminal/python-spyder-terminal-rpmlintrc @@ -0,0 +1,6 @@ +# TODO: find out if all that nodejs stuff is needed +addFilter("hidden-file-or-dir.*components") +addFilter("script-without-shebang.*components") +addFilter("non-executable-script.*components") +addFilter("zero-length.*components.*js") +addFilter("env-script-interpreter.*components.*node") diff --git a/packages/p/python-spyder-terminal/python-spyder-terminal.changes b/packages/p/python-spyder-terminal/python-spyder-terminal.changes index 70bb241..7764da9 100644 --- a/packages/p/python-spyder-terminal/python-spyder-terminal.changes +++ b/packages/p/python-spyder-terminal/python-spyder-terminal.changes @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Mar 24 18:27:36 UTC 2020 - Benjamin Greiner + +- rename package in wake of spyder3 to spyder rename +- bump requirement to spyder >=4 +- run unittests +- filter rpmlint warnings about the shipped nodejs components + +------------------------------------------------------------------- Thu Mar 19 14:32:48 UTC 2020 - Benjamin Greiner - remove python2 package as the spyder3 package dropped it a while ago diff --git a/packages/p/python-spyder-terminal/python-spyder-terminal.spec b/packages/p/python-spyder-terminal/python-spyder-terminal.spec index 185560e..665ec0d 100644 --- a/packages/p/python-spyder-terminal/python-spyder-terminal.spec +++ b/packages/p/python-spyder-terminal/python-spyder-terminal.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/spyder-ide/spyder-terminal Source: https://files.pythonhosted.org/packages/source/s/spyder-terminal/spyder-terminal-%{version}.tar.gz +Source: %{name}-rpmlintrc BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -33,26 +34,42 @@ BuildRequires: python-rpm-macros Requires: python3-coloredlogs Requires: python3-pexpect Requires: python3-requests +Requires: python3-terminado Requires: python3-tornado -Requires: spyder3 >= 3.2.0 -BuildArch: noarch +Requires: spyder >= 4 +# SECTION test requirements +BuildRequires: %{python_module coloredlogs} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module pexpect} +BuildRequires: %{python_module pytest-qt} +BuildRequires: %{python_module pytest-timeout} +BuildRequires: %{python_module pytest-xvfb} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module terminado} +BuildRequires: %{python_module tornado} +BuildRequires: spyder >= 4 +BuildRequires: xdpyinfo +# /SECTION %python_subpackages %description -Spyder is a scientific python development environment and an -alternative to IDLE. +Spyder, the Scientific Python Development Environment, is an +IDE for researchers, engineers and data analysts. This package contains the plugin for displaying a virtual terminal (OS independent) inside the main Spyder window. -%package -n spyder3-terminal +%package -n spyder-terminal Summary: Operating system virtual terminal plugin for the Spyder IDE Group: Development/Languages/Python +Provides: spyder3-terminal = %{version}-%{release} +Obsoletes: spyder3-terminal < %{version}-%{release} -%description -n spyder3-terminal -Spyder is a scientific python development environment and an -alternative to IDLE. +%description -n spyder-terminal +Spyder, the Scientific Python Development Environment, is an +IDE for researchers, engineers and data analysts. This package contains the plugin for displaying a virtual terminal (OS independent) inside the main Spyder window. @@ -60,14 +77,13 @@ This package contains the plugin for displaying a virtual terminal %prep %setup -q -n spyder-terminal-%{version} +# fix python call in unit test gh#spyder-ide/spyder-terminal#179 +sed -i "s/python_exec = 'python /python_exec = 'python3 /" spyder_terminal/server/tests/test_server.py + # fix rpmlint non-executable-script sed -i -e '/^#!\//, 1d' spyder_terminal/server/__main__.py sed -i -e '/^#!\//, 1d' spyder_terminal/server/tests/print_size.py -rm -r spyder_terminal/server/static/components/xterm.js/.vscode -rm spyder_terminal/server/static/components/jquery/src/.eslintrc.json -find . -name ".bower.json" -exec rm -f {} \; - %build %python_build @@ -75,10 +91,22 @@ find . -name ".bower.json" -exec rm -f {} \; %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -n spyder3-terminal +%check +export PYTHONDONTWRITEBYTECODE=1 +# The unittests fail with a seccomp-bpf crash if the sandbox +# is not disabled on i586 +%ifarch %ix86 +export QTWEBENGINE_DISABLE_SANDBOX=1 +%endif +# not in DEV mode gh#spyder-ide/spyder-terminal#180 +skiptests="test_output_redirection" +%pytest -k "not $skiptests" + +%files -n spyder-terminal %defattr(-,root,root,-) %doc CHANGELOG.md README.rst %license LICENSE.txt -%{python3_sitelib}/* +%{python3_sitelib}/spyder_terminal +%{python3_sitelib}/spyder_terminal-%{version}-*.egg-info %changelog