Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a99ffc78c1 | ||
|
|
d1ee4ca52a | ||
|
|
17d51b5b12 | ||
|
|
024d737d4a | ||
|
|
6d95e55328 | ||
|
|
c081da1169 | ||
|
|
4ba337456f | ||
|
|
aed1e0fe47 | ||
|
|
3790946e38 | ||
|
|
4411908402 | ||
|
|
861476e8cf | ||
|
|
853a4defa9 | ||
|
|
c45e24884b | ||
|
|
5413d3ac75 | ||
|
|
b167108df3 |
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.2
|
||||
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.2
|
||||
b2sums = SKIP
|
||||
|
||||
pkgname = python-pygls
|
||||
32
PKGBUILD
32
PKGBUILD
@@ -1,41 +1,37 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Otreblan <otreblain@gmail.com>
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=0.11.2
|
||||
pkgrel=2
|
||||
_name=${pkgname#python-}
|
||||
pkgver=1.1.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-build' 'python-install' '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=('1ade26fc9cf0d7c0700fa5430e8dc8411b1108d1eb21565adbe480b64f721a84')
|
||||
b2sums=('3c26a4067c9f55eec9d151eee4dd90ff7c18084ab89999b70c944fdf5b6f1222938db1743524f433eb152d75a4446b024cff85f1d16924938727808844091271')
|
||||
depends=('python-lsprotocol' 'python-typeguard')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
|
||||
checkdepends=('python-pytest' 'python-pytest-asyncio')
|
||||
source=("git+$url.git#tag=v$pkgver")
|
||||
b2sums=('SKIP')
|
||||
|
||||
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
|
||||
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
|
||||
cd "$_name"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
Reference in New Issue
Block a user