commit 19ce000283c3e2d35a7f654c4cfd37b1d7f0f6aace51b244735d4dc6ec5b6b1b Author: Adrian Schröter Date: Fri May 3 21:17:03 2024 +0200 Sync from SUSE:SLFO:Main python-jupyter-lsp revision 9fa916cf6b1f3462f187f5ba5993b23c diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/jupyter-lsp-2.2.0.tar.gz b/jupyter-lsp-2.2.0.tar.gz new file mode 100644 index 0000000..00c54c7 --- /dev/null +++ b/jupyter-lsp-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ebbcb533adb41e5d635eb8fe82956b0aafbf0fd443b6c4bfa906edeeb8635a1 +size 45769 diff --git a/python-jupyter-lsp.changes b/python-jupyter-lsp.changes new file mode 100644 index 0000000..4c34351 --- /dev/null +++ b/python-jupyter-lsp.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 17 15:56:03 UTC 2023 - Ben Greiner + +- Suggest primary python package -- boo#1214354 + +------------------------------------------------------------------- +Sun Jun 11 21:46:17 UTC 2023 - Ben Greiner + +- Initial specfile for v2.2.0 +- Required by jupyterlab 4 diff --git a/python-jupyter-lsp.spec b/python-jupyter-lsp.spec new file mode 100644 index 0000000..b66c3be --- /dev/null +++ b/python-jupyter-lsp.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-jupyter-lsp +# +# Copyright (c) 2023 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/ +# + + +%define shortversion 2.2 +Name: python-jupyter-lsp +Version: 2.2.0 +Release: 0 +Summary: LSP for Jupyter Notebook/Lab server +License: BSD-3-Clause +URL: https://github.com/jupyter-lsp/jupyterlab-lsp/tree/master/python_packages/jupyter_lsp +Source: https://files.pythonhosted.org/packages/source/j/jupyter-lsp/jupyter-lsp-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: jupyter-rpm-macros +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module importlib_metadata >= 4.8.3 if %python-base < 3.10} +BuildRequires: %{python_module jupyter_server >= 1.1.2} +# /SECTION +BuildRequires: fdupes +Requires: jupyter-lsp = %{version} +Requires: python-jupyter_server >= 1.1.2 +Requires: (python-importlib_metadata >= 4.8.3 if python-base < 3.10) +Provides: python-jupyter_lsp = %{version}-%{release} +BuildArch: noarch +%python_subpackages + +%description +Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server + +%package -n jupyter-lsp +Summary: LSP for Jupyter Notebook/Lab server - Config +# Any flavor is okay, but suggest the primary one for automatic zypper choice -- boo#1214354 +Requires: python3dist(jupyter-lsp) = %{shortversion} +Suggests: python3-jupyter-lsp + +%description -n jupyter-lsp +Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server +Jupyter config + +%prep +%autosetup -p1 -n jupyter-lsp-%{version} + +%build +%pyproject_wheel +sed -e /cov/d -e /--flake8/d -i setup.cfg + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# no R language server +donttest="test_r_package_detection" +%pytest -k "not ($donttest)" + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/jupyter_lsp +%{python_sitelib}/jupyter_lsp-%{version}.dist-info + +%files -n jupyter-lsp +%doc README.md +%license LICENSE +%_jupyter_config %_jupyter_servextension_confdir/jupyter-lsp-notebook.json +%_jupyter_config %_jupyter_server_confdir/jupyter-lsp-jupyter-server.json + +%changelog