[arch-commits] Commit in python-lsp-server/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Sun Oct 17 14:38:53 UTC 2021
Date: Sunday, October 17, 2021 @ 14:38:53
Author: archange
Revision: 1030735
archrelease: copy trunk to community-any
Added:
python-lsp-server/repos/community-any/PKGBUILD
(from rev 1030734, python-lsp-server/trunk/PKGBUILD)
Deleted:
python-lsp-server/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 ++++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 55 insertions(+), 24 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-17 14:38:26 UTC (rev 1030734)
+++ PKGBUILD 2021-10-17 14:38:53 UTC (rev 1030735)
@@ -1,24 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-# Contributor: Platon Pronko <platon7pronko at gmail.com>
-
-pkgname=python-lsp-server
-pkgver=1.2.4
-pkgrel=1
-pkgdesc="Fork of the python-language-server project, maintained by the Spyder IDE team and the community"
-arch=(any)
-url="https://github.com/python-lsp/python-lsp-server"
-license=(MIT)
-depends=(python-jedi python-lsp-jsonrpc python-pluggy python-ujson python-setuptools)
-source=($pkgname-$pkgver.tar.gz::https://github.com/python-lsp/python-lsp-server/archive/v${pkgver}.tar.gz)
-sha256sums=('3e9102808f661df18a54e2ddd97285d4b3c4cbc0af6fed8439a1960617f74674')
-
-build() {
- cd "${pkgname}-${pkgver}"
- python setup.py build
-}
-
-package() {
- cd "${pkgname}-${pkgver}"
- python setup.py install --root=${pkgdir} --optimize=1 --skip-build
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-lsp-server/repos/community-any/PKGBUILD (from rev 1030734, python-lsp-server/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-17 14:38:53 UTC (rev 1030735)
@@ -0,0 +1,55 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Platon Pronko <platon7pronko at gmail.com>
+
+pkgname=python-lsp-server
+pkgver=1.2.4
+pkgrel=2
+pkgdesc="Fork of the python-language-server project, maintained by the Spyder IDE team and the community"
+arch=(any)
+url="https://github.com/python-lsp/python-lsp-server"
+license=(MIT)
+depends=(python-jedi python-lsp-jsonrpc python-pluggy python-ujson python-setuptools)
+checkdepends=(
+ python-pytest
+ python-flaky
+ python-matplotlib
+ python-mccabe
+ python-numpy
+ python-pandas
+ python-pycodestyle
+ python-pydocstyle
+ python-pyflakes
+ python-pylint
+ python-pyqt5
+ python-rope
+ autopep8
+ flake8
+ yapf
+)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ ${pkgname}-fix-pylint-2.10.patch::https://github.com/python-lsp/python-lsp-server/commit/e8cf8e5b160f227550574cba480e276a98248d44.patch)
+sha256sums=('3e9102808f661df18a54e2ddd97285d4b3c4cbc0af6fed8439a1960617f74674'
+ '1778835e6926a84cc44c16628463394f4a36a5abd532bba2aa87a133ad4f14fe')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < ../${pkgname}-fix-pylint-2.10.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ sed -i '/addopts =$/,$d' setup.cfg
+ pytest -v --color=yes test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ python setup.py install --root=${pkgdir} --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list