[arch-commits] Commit in python-lsp-black/repos (community-any community-any/PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Sun Oct 17 15:09:28 UTC 2021


    Date: Sunday, October 17, 2021 @ 15:09:28
  Author: archange
Revision: 1030739

archrelease: copy trunk to community-any

Added:
  python-lsp-black/repos/community-any/
  python-lsp-black/repos/community-any/PKGBUILD
    (from rev 1030738, python-lsp-black/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-lsp-black/repos/community-any/PKGBUILD (from rev 1030738, python-lsp-black/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-10-17 15:09:28 UTC (rev 1030739)
@@ -0,0 +1,30 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=python-lsp-black
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="python-lsp-server plugin that adds support to black autoformatter, forked from pyls-black"
+arch=(any)
+url="https://github.com/python-lsp/python-lsp-black"
+license=(MIT)
+depends=(python-black python-lsp-server python-toml)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('76e23e09e342b572c94b42a9d8c3cf10c3a1b1aed9969bd6817cb085e214432e')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  PYTHONPATH="${PWD}/build/lib" pytest -v --color=yes tests --deselect tests/test_plugin.py::test_entry_point
+}
+
+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