diff options
author | Alec Scott <scott112@llnl.gov> | 2022-12-01 09:34:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 09:34:49 -0700 |
commit | 66027806579b09607fe83ec448d4fe56db1ec2fe (patch) | |
tree | 1315265138f88e9fbe4fd62062d05c994d8ccd80 /var | |
parent | 8420c610fa593699731a3a4b957a00f9baaeba0d (diff) | |
download | spack-66027806579b09607fe83ec448d4fe56db1ec2fe.tar.gz spack-66027806579b09607fe83ec448d4fe56db1ec2fe.tar.bz2 spack-66027806579b09607fe83ec448d4fe56db1ec2fe.tar.xz spack-66027806579b09607fe83ec448d4fe56db1ec2fe.zip |
Add py-python-lsp-server and dependencies (#34149)
* Add py-python-lsp-server and dependencies
* Update var/spack/repos/builtin/packages/py-python-lsp-server/package.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Relax version range constraints on py-python-lsp-jsonrpc and add missing dep
* Add runtime dependency flag to setuptools dependencies
* Remove unused python@3.6: dependency and move setuptools-scm to build dep only
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
3 files changed, 66 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-docstring-to-markdown/package.py b/var/spack/repos/builtin/packages/py-docstring-to-markdown/package.py new file mode 100644 index 0000000000..210a1ab861 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-docstring-to-markdown/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyDocstringToMarkdown(PythonPackage): + """On the fly conversion of Python docstrings to markdown.""" + + homepage = "https://github.com/python-lsp/docstring-to-markdown" + pypi = "docstring-to-markdown/docstring-to-markdown-0.10.tar.gz" + + maintainers = ["alecbcs"] + + version("0.10", sha256="12f75b0c7b7572defea2d9e24b57ef7ac38c3e26e91c0e5547cfc02b1c168bf6") + + depends_on("python@3.6:", type=("build", "run")) + depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-python-lsp-jsonrpc/package.py b/var/spack/repos/builtin/packages/py-python-lsp-jsonrpc/package.py new file mode 100644 index 0000000000..2fbd93abed --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-lsp-jsonrpc/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyPythonLspJsonrpc(PythonPackage): + """A Python 3.7+ server implementation of the JSON RPC 2.0 protocol.""" + + homepage = "https://github.com/python-lsp/python-lsp-jsonrpc" + pypi = "python-lsp-jsonrpc/python-lsp-jsonrpc-1.0.0.tar.gz" + + maintainers = ["alecbcs"] + + version("1.0.0", sha256="7bec170733db628d3506ea3a5288ff76aa33c70215ed223abdb0d95e957660bd") + + depends_on("py-setuptools", type="build") + depends_on("py-ujson@3.0.0:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-python-lsp-server/package.py b/var/spack/repos/builtin/packages/py-python-lsp-server/package.py new file mode 100644 index 0000000000..842645471c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-lsp-server/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyPythonLspServer(PythonPackage): + """A Python 3.7+ implementation of the Language Server Protocol.""" + + homepage = "https://github.com/python-lsp/python-lsp-server" + pypi = "python-lsp-server/python-lsp-server-1.6.0.tar.gz" + + maintainers = ["alecbcs"] + + version("1.6.0", sha256="d75cdff9027c4212e5b9e861e9a0219219c8e2c69508d9f24949951dabd0dc1b") + + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-setuptools@61.2.0:", type=("build", "run")) + depends_on("py-setuptools-scm@3.4.3:+toml", type="build") + depends_on("py-docstring-to-markdown", type=("build", "run")) + depends_on("py-jedi@0.17.2:0.18", type=("build", "run")) + depends_on("py-pluggy@1.0.0:", type=("build", "run")) + depends_on("py-python-lsp-jsonrpc@1.0.0:", type=("build", "run")) + depends_on("py-ujson@3.0.0:", type=("build", "run")) |