Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dde4182353 | ||
|
|
d44f34b6c0 | ||
|
|
9fdac19b31 | ||
|
|
c368b9b9b2 | ||
|
|
92ebb36c41 | ||
|
|
672969025d | ||
|
|
a99ffc78c1 | ||
|
|
d1ee4ca52a | ||
|
|
17d51b5b12 | ||
|
|
024d737d4a | ||
|
|
6d95e55328 | ||
|
|
c081da1169 | ||
|
|
4ba337456f | ||
|
|
aed1e0fe47 | ||
|
|
3790946e38 | ||
|
|
4411908402 | ||
|
|
861476e8cf | ||
|
|
853a4defa9 | ||
|
|
c45e24884b | ||
|
|
5413d3ac75 | ||
|
|
b167108df3 | ||
|
|
2b621d5b6d | ||
|
|
f7d114e115 | ||
|
|
b4f66f8614 | ||
|
|
56e28d2ed3 | ||
|
|
3540e011a7 | ||
|
|
e7ff74987d | ||
|
|
7768be2c0f | ||
|
|
a6fef2e0a2 |
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
||||
pkgbase = python-pygls
|
||||
pkgdesc = Pythonic generic implementation of the Language Server Protocol
|
||||
pkgver = 1.3.1
|
||||
pkgrel = 2
|
||||
url = https://github.com/openlawlibrary/pygls
|
||||
arch = any
|
||||
license = Apache-2.0
|
||||
checkdepends = python-pytest-asyncio
|
||||
makedepends = git
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-poetry-core
|
||||
depends = python-cattrs
|
||||
depends = python-lsprotocol
|
||||
source = git+https://github.com/openlawlibrary/pygls.git#tag=v1.3.1
|
||||
b2sums = c893198f1004256118acfa1bee3aefb87f98a34f2a634de7263d621e56673312a735e94ab8703135e7e43df21cde0a07946a9187c54878c2dcadd696fb8830e4
|
||||
|
||||
pkgname = python-pygls
|
||||
39
PKGBUILD
39
PKGBUILD
@@ -1,34 +1,37 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Otreblan <otreblain@gmail.com>
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=0.10.2
|
||||
pkgrel=1
|
||||
_name=${pkgname#python-}
|
||||
pkgver=1.3.1
|
||||
pkgrel=2
|
||||
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')
|
||||
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||
sha256sums=('5b50a1931613f36af446b16c644a85b52ceb2beceb09bddd05f9ce054f13e9ab')
|
||||
b2sums=('bc3855f9f9e2ad3e31b35ce6e994dca73269bd5bf9aa358be038aa6334f2e0c8bc8e205d07688e39421b41e4e2fdecb2e0c2425e1b87b46701be26a5cd2c54e7')
|
||||
license=('Apache-2.0')
|
||||
depends=('python-cattrs' 'python-lsprotocol')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
|
||||
checkdepends=('python-pytest-asyncio')
|
||||
source=("git+$url.git#tag=v$pkgver")
|
||||
b2sums=('c893198f1004256118acfa1bee3aefb87f98a34f2a634de7263d621e56673312a735e94ab8703135e7e43df21cde0a07946a9187c54878c2dcadd696fb8830e4')
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py build
|
||||
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 setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
}
|
||||
cd "$_name"
|
||||
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