Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66a44112a1 | ||
|
|
ab0f76e3da | ||
|
|
8b0414ab72 | ||
|
|
d00160c35b | ||
|
|
3188da27c9 | ||
|
|
dde4182353 | ||
|
|
d44f34b6c0 | ||
|
|
9fdac19b31 | ||
|
|
c368b9b9b2 | ||
|
|
92ebb36c41 | ||
|
|
672969025d | ||
|
|
a99ffc78c1 | ||
|
|
d1ee4ca52a | ||
|
|
17d51b5b12 |
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 = 2.0.0
|
||||
pkgrel = 1
|
||||
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-attrs
|
||||
depends = python-cattrs
|
||||
depends = python-lsprotocol
|
||||
source = git+https://github.com/openlawlibrary/pygls.git#tag=v2.0.0
|
||||
b2sums = db43d6da778d53ca879bf702a04e0779ec66dd6994987677b38c19b0fd88ccb30f2bfd5a556c50a85bdae879e08c54ab4cf7d92d029d7aff4b270f039ae63290
|
||||
|
||||
pkgname = python-pygls
|
||||
4
.nvchecker.toml
Normal file
4
.nvchecker.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[python-pygls]
|
||||
source = "git"
|
||||
git = "https://github.com/openlawlibrary/pygls.git"
|
||||
prefix = "v"
|
||||
51
PKGBUILD
51
PKGBUILD
@@ -1,44 +1,45 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Otreblan <otreblain@gmail.com>
|
||||
|
||||
_name=pygls
|
||||
pkgname=python-pygls
|
||||
pkgver=1.0.2
|
||||
_name=${pkgname#python-}
|
||||
pkgver=2.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
||||
arch=('any')
|
||||
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-pytest' 'python-pytest-asyncio')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||
sha256sums=('888ed63d1f650b4fc64d603d73d37545386ec533c0caac921aed80f80ea946a4')
|
||||
b2sums=('0274f5033c8a482ee82afd57944f3bb1e59230fb46654c8f3d5a039f3481b0ede368b6bca373915af78ecec1a79fad50d3b14cb8db5340086ac2c9acf9a6b87f')
|
||||
|
||||
prepare() {
|
||||
cd $_name-$pkgver
|
||||
sed -i 's/typeguard>=3,<4/typeguard>=3/' setup.cfg
|
||||
}
|
||||
license=(Apache-2.0)
|
||||
depends=(
|
||||
python-attrs
|
||||
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=('db43d6da778d53ca879bf702a04e0779ec66dd6994987677b38c19b0fd88ccb30f2bfd5a556c50a85bdae879e08c54ab4cf7d92d029d7aff4b270f039ae63290')
|
||||
|
||||
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 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 \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
||||
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/licenses/LICENSE.txt \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
cd "$_name"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user