Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
861476e8cf | ||
|
|
853a4defa9 | ||
|
|
c45e24884b | ||
|
|
5413d3ac75 | ||
|
|
b167108df3 | ||
|
|
2b621d5b6d | ||
|
|
f7d114e115 | ||
|
|
b4f66f8614 | ||
|
|
56e28d2ed3 | ||
|
|
3540e011a7 | ||
|
|
e7ff74987d | ||
|
|
7768be2c0f | ||
|
|
a6fef2e0a2 | ||
|
|
224b42a45b | ||
|
|
02535cbd72 |
28
PKGBUILD
28
PKGBUILD
@@ -1,22 +1,25 @@
|
||||
# Maintainer: Otreblan <otreblain@gmail.com>
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Otreblan <otreblain@gmail.com>
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=0.10.0
|
||||
pkgver=0.12.1
|
||||
pkgrel=1
|
||||
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
||||
arch=('any')
|
||||
url=https://github.com/openlawlibrary/pygls
|
||||
license=('APACHE')
|
||||
depends=('python-psutil' 'python-pydantic' 'python-typeguard')
|
||||
makedepends=('python-setuptools')
|
||||
depends=('python-pydantic' 'python-typeguard')
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
|
||||
'python-toml' 'python-wheel')
|
||||
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
|
||||
source=("$url/archive/v$pkgver/$_name-$pkgver.tar.gz")
|
||||
b2sums=('b131aa222c3a50b80bf819f8550b450b06d1525c66a57827af80b9db5f3a7b8b0a9b2435e5d2b572ddbdca71d1cb105da85ec246900f43a38fc4776e96db005f')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||
sha256sums=('3b9da223fd6e7624aed047dec2cbb6ab471c1441d5b48369daad012594c11610')
|
||||
b2sums=('ccfc747e9b645c5ffafadf7d7b6af25d3f014f3d7cf0888ca896feddca5ea3672af3b33d2aa7042819d4dbef44e1d49230e513ee795a618baa5484e7586c01b5')
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py build
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
@@ -26,7 +29,12 @@ check() {
|
||||
|
||||
package() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
}
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
rm -r "$pkgdir"/usr/lib/site-packages
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
# Symlink license file
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE.txt \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user