Accepting request 1045415 from home:bnavigator:branches:devel:languages:python:jupyter

required by jupyter-server 2

OBS-URL: https://build.opensuse.org/request/show/1045415
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-server-terminals?expand=0&rev=1
This commit is contained in:
Benjamin Greiner 2022-12-26 21:26:18 +00:00 committed by Git OBS Bridge
commit 0c1573f814
6 changed files with 130 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8421438d95a1f1f6994c48dd5dc10ad167ea7c196972bb5d1d7a9da1e30fde02
size 29488

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Dec 26 14:04:19 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.4.3
- Required by jupyter-server 2

View File

@ -0,0 +1,95 @@
#
# spec file for package python-jupyter-server-terminals
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-jupyter-server-terminals%{psuffix}
Version: 0.4.3
Release: 0
Summary: A Jupyter Server Extension Providing Terminals
License: BSD-3-Clause
URL: https://github.com/jupyter-server/jupyter_server_terminals
Source: https://files.pythonhosted.org/packages/source/j/jupyter_server_terminals/jupyter_server_terminals-0.4.3.tar.gz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: jupyter-rpm-macros
Requires: python-terminado >= 0.8.3
Requires: jupyter-server-terminals = %{version}
Provides: python-jupyter_server_terminals = %{version}-%{release}
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module jupyter-server-terminals = %{version}}
BuildRequires: %{python_module jupyter-server >= 2}
BuildRequires: %{python_module pytest >= 7.0}
BuildRequires: %{python_module pytest-jupyter-server >= 0.5.3}
BuildRequires: %{python_module pytest-timeout}
%endif
%python_subpackages
%description
A Jupyter Server Extension Providing Terminals.
%package -n jupyter-server-terminals
Summary: Jupyter Server Extension registration for python*-jupyter-server-terminals
# Any flavor is okay
Requires: (%(echo "%{python_module jupyter-server-terminals = %{version}@or@}" | sed "s/@or@/ or /g" | sed 's/ or\s*$//'))
%description -n jupyter-server-terminals
A Jupyter Server Extension Providing Terminals.
This package provides the jupyter server registration
%prep
%setup -q -n jupyter_server_terminals-%{version}
sed -i 's/--color=yes//' pyproject.toml
%if !%{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/jupyter_server_terminals
%{python_sitelib}/jupyter_server_terminals-%{version}.dist-info
%files -n jupyter-server-terminals
%license LICENSE
%_jupyter_config %_jupyter_server_confdir/jupyter_server_terminals.json
%endif
%changelog