[arch-commits] Commit in python-lsp-black/repos/community-staging-any (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Sun Dec 5 13:23:24 UTC 2021
Date: Sunday, December 5, 2021 @ 13:23:24
Author: archange
Revision: 1065150
archrelease: copy trunk to community-staging-any
Added:
python-lsp-black/repos/community-staging-any/PKGBUILD
(from rev 1065149, python-lsp-black/trunk/PKGBUILD)
Deleted:
python-lsp-black/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 32 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-05 13:23:00 UTC (rev 1065149)
+++ PKGBUILD 2021-12-05 13:23:24 UTC (rev 1065150)
@@ -1,30 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=python-lsp-black
-pkgver=1.0.0
-pkgrel=4
-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}/
-}
Copied: python-lsp-black/repos/community-staging-any/PKGBUILD (from rev 1065149, python-lsp-black/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-05 13:23:24 UTC (rev 1065150)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=python-lsp-black
+pkgver=1.0.1
+pkgrel=1
+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=('432666772a642e45536af72da39f9437d46662ebca924247ab3776090edc7e22')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ python -m venv --system-site-packages test-env
+ test-env/bin/python setup.py install --skip-build
+ test-env/bin/python -m pytest -v --color=yes tests
+}
+
+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