Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17d51b5b12 | ||
|
|
024d737d4a | ||
|
|
6d95e55328 | ||
|
|
c081da1169 | ||
|
|
4ba337456f |
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
@@ -0,0 +1,19 @@
|
||||
pkgbase = python-pygls
|
||||
pkgdesc = Pythonic generic implementation of the Language Server Protocol
|
||||
pkgver = 1.1.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/openlawlibrary/pygls
|
||||
arch = any
|
||||
license = APACHE
|
||||
checkdepends = python-pytest
|
||||
checkdepends = python-pytest-asyncio
|
||||
makedepends = git
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-poetry-core
|
||||
depends = python-lsprotocol
|
||||
depends = python-typeguard
|
||||
source = git+https://github.com/openlawlibrary/pygls.git#tag=v1.1.0
|
||||
b2sums = SKIP
|
||||
|
||||
pkgname = python-pygls
|
||||
30
PKGBUILD
30
PKGBUILD
@@ -1,40 +1,42 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Otreblan <otreblain@gmail.com>
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=1.0.0
|
||||
_name=${pkgname#python-}
|
||||
pkgver=1.1.0
|
||||
pkgrel=1
|
||||
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
||||
arch=('any')
|
||||
url=https://github.com/openlawlibrary/pygls
|
||||
license=('APACHE')
|
||||
depends=('python-lsprotocol' 'python-typeguard')
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
|
||||
'python-toml' 'python-wheel')
|
||||
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||
sha256sums=('c2a1c22e30028f7ca9d3f0a04da8eef29f0f1701bdbd97d8614d8e1e6711f336')
|
||||
b2sums=('9b5c59c9ca6cdd81ad85a355f5eaf4a9fa03198c00573192028489495d0cc832a939a61985fb95710a7032f25c8a6f280e898b4a49c4259b293b82ebc45cdfa2')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
|
||||
checkdepends=('python-pytest' 'python-pytest-asyncio')
|
||||
source=("git+$url.git#tag=v$pkgver")
|
||||
b2sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$_name"
|
||||
sed -i 's/typeguard = "^3.0.0"/typeguard = "^4.0.0"/' pyproject.toml
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
cd "$_name"
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_name-$pkgver
|
||||
pytest
|
||||
cd "$_name"
|
||||
PYTHONPATH="$PWD/$_name:$PYTHONPATH" pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_name-$pkgver
|
||||
cd "$_name"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
rm -r "$pkgdir"/usr/lib/site-packages
|
||||
|
||||
# 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 \
|
||||
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE.txt \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user