[arch-commits] Commit in python-language-server/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 02:30:23 UTC 2019
Date: Monday, November 4, 2019 @ 02:30:22
Author: felixonmars
Revision: 523012
archrelease: copy trunk to community-staging-any
Added:
python-language-server/repos/community-staging-any/
python-language-server/repos/community-staging-any/PKGBUILD
(from rev 523011, python-language-server/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-language-server/repos/community-staging-any/PKGBUILD (from rev 523011, python-language-server/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 02:30:22 UTC (rev 523012)
@@ -0,0 +1,46 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: fenuks
+
+pkgname=python-language-server
+pkgver=0.29.1
+pkgrel=2
+pkgdesc="An implementation of the Language Server Protocol for Python"
+arch=("any")
+url="https://github.com/palantir/python-language-server"
+license=("MIT")
+depends=("python" "python-jsonrpc-server" "python-future" "python-jedi" "python-pluggy")
+optdepends=("python-mccabe: for complexity checking"
+ "python-rope: for completions and renaming"
+ "python-pyflakes: for linter to detect various errors"
+ "flake8: for code linting"
+ "python-pycodestyle: for style checking"
+ "python-pylint: for code linting"
+ "autopep8: for code formatting"
+ "yapf: for code formatting (preferred over autopep8)"
+ "python-pydocstyle: for docstring style checking")
+makedepends=("python" "python-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner" "python-pytest-cov" "python-pyflakes" "flake8"
+ "python-mock" "python-jedi" "python-future" "yapf" "python-mccabe" "python-pycodestyle"
+ "autopep8" "python-rope" "python-pydocstyle" "python-pylint" "python-jsonrpc-server")
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('430335f7ef8d9b446bac6daa858133b4c5e710bd39c25f1d3e7a4803a9a318b9')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ python setup.py build
+}
+
+# TODO waiting for pylint 2.4 in repos
+# check() {
+# cd "${pkgname}-${pkgver}"
+# py.test
+# }
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=4 sw=4 et:
More information about the arch-commits
mailing list