Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
024d737d4a | ||
|
|
6d95e55328 | ||
|
|
c081da1169 | ||
|
|
4ba337456f | ||
|
|
aed1e0fe47 | ||
|
|
3790946e38 | ||
|
|
4411908402 | ||
|
|
861476e8cf | ||
|
|
853a4defa9 | ||
|
|
c45e24884b | ||
|
|
5413d3ac75 | ||
|
|
b167108df3 | ||
|
|
2b621d5b6d | ||
|
|
f7d114e115 | ||
|
|
b4f66f8614 | ||
|
|
56e28d2ed3 | ||
|
|
3540e011a7 | ||
|
|
e7ff74987d |
32
PKGBUILD
32
PKGBUILD
@@ -3,22 +3,28 @@
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=0.10.3
|
||||
pkgrel=2
|
||||
pkgver=1.0.2
|
||||
pkgrel=1
|
||||
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
||||
arch=('any')
|
||||
url=https://github.com/openlawlibrary/pygls
|
||||
license=('APACHE')
|
||||
depends=('python-pydantic' 'python-typeguard')
|
||||
makedepends=('python-setuptools-scm' 'python-toml')
|
||||
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
|
||||
depends=('python-lsprotocol' 'python-typeguard')
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
|
||||
'python-toml' 'python-wheel')
|
||||
checkdepends=('python-pytest' 'python-pytest-asyncio')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||
sha256sums=('522c1068dd38c4945925ca742daba6aff5621168e0e5ddd954813e8b957ca831')
|
||||
b2sums=('86eb889b73cdc7eb99b92e419e4d00d46d2662984dcf872c4ca2bc3040f3e13dda4f0866ecff03c9fc795040583d2d492e7251d134a15070d4d584d29bd35da3')
|
||||
sha256sums=('888ed63d1f650b4fc64d603d73d37545386ec533c0caac921aed80f80ea946a4')
|
||||
b2sums=('0274f5033c8a482ee82afd57944f3bb1e59230fb46654c8f3d5a039f3481b0ede368b6bca373915af78ecec1a79fad50d3b14cb8db5340086ac2c9acf9a6b87f')
|
||||
|
||||
prepare() {
|
||||
cd $_name-$pkgver
|
||||
sed -i 's/typeguard>=3,<4/typeguard>=3/' setup.cfg
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py build
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
@@ -28,7 +34,11 @@ check() {
|
||||
|
||||
package() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
}
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
# 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