2015-08-21 07:40:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-terminado
|
|
|
|
#
|
2024-03-29 20:42:06 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-08-21 07:40:35 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-13 23:03:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-21 07:40:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-terminado
|
2024-03-29 20:42:06 +01:00
|
|
|
Version: 0.18.1
|
2015-08-21 07:40:35 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Terminals served to termjs using Tornado websockets
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Languages/Python
|
2020-12-16 10:37:32 +01:00
|
|
|
URL: https://github.com/jupyter/terminado
|
2017-05-08 19:02:26 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/terminado/terminado-%{version}.tar.gz
|
2023-12-28 16:37:43 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-07-13 10:47:32 +02:00
|
|
|
BuildRequires: %{python_module hatchling >= 0.25}
|
2022-07-13 10:02:15 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-05-08 19:02:26 +02:00
|
|
|
BuildRequires: %{python_module ptyprocess}
|
2019-06-13 23:03:37 +02:00
|
|
|
BuildRequires: %{python_module tornado >= 4}
|
2017-11-23 09:44:57 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-08-21 07:40:35 +02:00
|
|
|
Requires: python-ptyprocess
|
2019-06-13 23:03:37 +02:00
|
|
|
Requires: python-tornado >= 4
|
2015-08-21 07:40:35 +02:00
|
|
|
BuildArch: noarch
|
2021-01-10 16:36:58 +01:00
|
|
|
# SECTION test requirements
|
2022-07-13 10:47:32 +02:00
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2022-09-30 20:32:55 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-01-10 16:36:58 +01:00
|
|
|
# /SECTION
|
2017-05-08 19:02:26 +02:00
|
|
|
%python_subpackages
|
2015-08-21 07:40:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a Tornado websocket backend for the term.js Javascript terminal
|
|
|
|
emulator library.
|
|
|
|
|
|
|
|
It evolved out of pyxterm, which was part of GraphTerm (as lineterm.py), and
|
|
|
|
ultimately derived from the public-domain Ajaxterm code (also on Github as part
|
|
|
|
of QWeb).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n terminado-%{version}
|
2022-09-30 20:34:32 +02:00
|
|
|
sed -i '/addopts/ s/--durations 10 --color=yes//' pyproject.toml
|
2015-08-21 07:40:35 +02:00
|
|
|
|
|
|
|
%build
|
2022-07-13 10:02:15 +02:00
|
|
|
%pyproject_wheel
|
2015-08-21 07:40:35 +02:00
|
|
|
|
|
|
|
%install
|
2022-07-13 10:02:15 +02:00
|
|
|
%pyproject_install
|
2017-05-08 19:02:26 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-08-21 07:40:35 +02:00
|
|
|
|
|
|
|
%check
|
2020-12-16 10:37:32 +01:00
|
|
|
# https://github.com/jupyter/terminado/issues/21
|
|
|
|
donttest="test_max_terminals"
|
|
|
|
# somehow the reading from the spawned process does fail inside OBS
|
|
|
|
donttest+=" or test_basic"
|
|
|
|
# ?
|
|
|
|
donttest+=" or test_unique_processes"
|
|
|
|
%pytest -k "not ($donttest)"
|
2015-08-21 07:40:35 +02:00
|
|
|
|
2017-05-08 19:02:26 +02:00
|
|
|
%files %{python_files}
|
2023-01-08 11:11:47 +01:00
|
|
|
%doc README.md
|
2019-08-11 03:45:53 +02:00
|
|
|
%license LICENSE
|
2020-12-16 10:37:32 +01:00
|
|
|
%{python_sitelib}/terminado
|
|
|
|
%{python_sitelib}/terminado-%{version}*-info
|
2015-08-21 07:40:35 +02:00
|
|
|
|
|
|
|
%changelog
|