[arch-commits] Commit in python-pyls-spyder/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Sun Oct 17 15:25:23 UTC 2021
Date: Sunday, October 17, 2021 @ 15:25:23
Author: archange
Revision: 1030750
archrelease: copy trunk to community-testing-any
Added:
python-pyls-spyder/repos/community-testing-any/
python-pyls-spyder/repos/community-testing-any/PKGBUILD
(from rev 1030749, python-pyls-spyder/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-pyls-spyder/repos/community-testing-any/PKGBUILD (from rev 1030749, python-pyls-spyder/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-10-17 15:25:23 UTC (rev 1030750)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pyls-spyder
+pkgname=python-${_pkg}
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Spyder extensions for the Python Language Server"
+arch=(any)
+url="https://github.com/spyder-ide/pyls-spyder"
+license=(MIT)
+depends=(python-lsp-server)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+# PyPi tarballs do not have the tests
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('1adc75f70afcf55a27513d54cdce129bacc8aa4fd2ff05d14fdf7ca1829842e6')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ pytest -v --color=yes
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ rm -r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/${_pkg//-/_}/tests
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list