diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-05-19 15:05:38 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-05-19 15:40:28 +0200 |
commit | a043e97622e7cb232c567c8e5c88f8b43b35766a (patch) | |
tree | 42bc7e828c8ff59453b34f12d725c40f293da6f1 /dev-python/jupyter-lsp | |
parent | sys-kernel/linux-docs: drop 5.15.105-r1 (diff) | |
download | gentoo-a043e97622e7cb232c567c8e5c88f8b43b35766a.tar.gz gentoo-a043e97622e7cb232c567c8e5c88f8b43b35766a.tar.bz2 gentoo-a043e97622e7cb232c567c8e5c88f8b43b35766a.zip |
dev-python/jupyter-lsp: add 2.1.0
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/jupyter-lsp')
-rw-r--r-- | dev-python/jupyter-lsp/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jupyter-lsp/jupyter-lsp-2.1.0.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/jupyter-lsp/Manifest b/dev-python/jupyter-lsp/Manifest index 985ac1ec2474..f97188430438 100644 --- a/dev-python/jupyter-lsp/Manifest +++ b/dev-python/jupyter-lsp/Manifest @@ -1 +1,2 @@ DIST jupyter-lsp-2.0.1.tar.gz 43962 BLAKE2B 0a030542297c6a311ca2b9a681acf4ae4d196ebaee342fa44a7a5b0c9a3788aecdb7b6a60a4653114ae6c5a69f4da9108a831eda72401643b8bb34cad6d3de43 SHA512 539851c567cf0dfa08c9658fe98941a8aaa90f625cba1d231d54fe3f4e19cbd9f14fc5b54c39798af1d1da40075dbaa7f43e95517934571391c488639f9c66b3 +DIST jupyter-lsp-2.1.0.tar.gz 44667 BLAKE2B 751dcc2d45641b3e4efe949a5e89e7f8bbd95d1d543db32fa5878fe3b30a6569056da7b7cb447f6ffecdb035c88e47ab1e734ba2ff6aa1d16ec248590ff6122b SHA512 296ef188bc353dabb65507f0a303e20aacc30a09cdd0952bc031397b7317b0f0cf314f7320c876ff74b58a9906d5ae4413988009faa4ecee090213aef9d4a620 diff --git a/dev-python/jupyter-lsp/jupyter-lsp-2.1.0.ebuild b/dev-python/jupyter-lsp/jupyter-lsp-2.1.0.ebuild new file mode 100644 index 000000000000..6e4b32461a3c --- /dev/null +++ b/dev-python/jupyter-lsp/jupyter-lsp-2.1.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYPI_NO_NORMALIZE=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab" +HOMEPAGE="https://github.com/krassowski/jupyterlab-lsp" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/entrypoints[${PYTHON_USEDEP}] + >=dev-python/jupyter-server-1.1.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib-metadata-4.8.3[${PYTHON_USEDEP}] + ' 3.9) +" + +EPYTEST_DESELECT=( + # Not packaged + "jupyter_lsp/tests/test_listener.py::test_listeners[bash-language-server]" + "jupyter_lsp/tests/test_listener.py::test_listeners[dockerfile-language-server-nodejs]" + "jupyter_lsp/tests/test_listener.py::test_listeners[pylsp]" + "jupyter_lsp/tests/test_listener.py::test_listeners[sql-language-server]" + "jupyter_lsp/tests/test_listener.py::test_listeners[typescript-language-server]" + "jupyter_lsp/tests/test_listener.py::test_listeners[unified-language-server]" + "jupyter_lsp/tests/test_listener.py::test_listeners[vscode-css-languageserver-bin]" + "jupyter_lsp/tests/test_listener.py::test_listeners[vscode-html-languageserver-bin]" + "jupyter_lsp/tests/test_listener.py::test_listeners[vscode-json-languageserver-bin]" + "jupyter_lsp/tests/test_listener.py::test_listeners[yaml-language-server]" + "jupyter_lsp/tests/test_session.py::test_start_known[bash-language-server]" + "jupyter_lsp/tests/test_session.py::test_start_known[dockerfile-language-server-nodejs]" + "jupyter_lsp/tests/test_session.py::test_start_known[pylsp]" + "jupyter_lsp/tests/test_session.py::test_start_known[sql-language-server]" + "jupyter_lsp/tests/test_session.py::test_start_known[typescript-language-server]" + "jupyter_lsp/tests/test_session.py::test_start_known[unified-language-server]" + "jupyter_lsp/tests/test_session.py::test_start_known[vscode-css-languageserver-bin]" + "jupyter_lsp/tests/test_session.py::test_start_known[vscode-html-languageserver-bin]" + "jupyter_lsp/tests/test_session.py::test_start_known[vscode-json-languageserver-bin]" + "jupyter_lsp/tests/test_session.py::test_start_known[yaml-language-server]" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # Do not depend on pytest-cov or flake8 + sed -i -e '/--cov/d' -e '/--flake8/d' setup.cfg || die + # R lsp server not packaged + sed -i -e 's:test_r_package_detection:_&:' \ + jupyter_lsp/tests/test_detect.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + mv "${ED}/usr/etc" "${ED}/etc" || die +} + +pkg_postinst() { + optfeature "Language server for Python" dev-python/python-lsp-server +} |