10 Commits

Author SHA1 Message Date
Daniel M. Capella
d1ee4ca52a upgpkg: 1.1.1-1 2023-10-06 18:21:35 -04:00
Daniel M. Capella
17d51b5b12 upgpkg: 1.1.0-1 2023-10-02 20:45:26 -04:00
Daniel M. Capella
024d737d4a upgpkg: 1.0.2-1 2023-05-16 18:46:10 +00:00
Felix Yan
6d95e55328 rebuild with python 3.11 2023-04-08 04:10:26 +00:00
Daniel M. Capella
c081da1169 Apply patch for typeguard 3 support
Thanks to @felixonmars
2023-03-16 20:37:15 +00:00
Daniel M. Capella
4ba337456f upgpkg: 1.0.1-1 2023-02-16 17:11:40 +00:00
Daniel M. Capella
aed1e0fe47 upgpkg: 1.0.0-1 2022-12-27 22:48:07 +00:00
Daniel M. Capella
3790946e38 upgpkg: 0.13.1-1 2022-12-17 00:55:37 +00:00
Antonio Rojas
4411908402 Update to 0.13.0 2022-11-22 22:56:08 +00:00
Antonio Rojas
861476e8cf Update to 0.12.1 2022-08-31 17:18:51 +00:00
2 changed files with 36 additions and 15 deletions

19
.SRCINFO Normal file
View File

@@ -0,0 +1,19 @@
pkgbase = python-pygls
pkgdesc = Pythonic generic implementation of the Language Server Protocol
pkgver = 1.1.1
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.1
b2sums = SKIP
pkgname = python-pygls

View File

@@ -1,40 +1,42 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Otreblan <otreblain@gmail.com>
_name=pygls
pkgname=python-pygls
pkgver=0.11.3
_name=${pkgname#python-}
pkgver=1.1.1
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-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=('4d86fc854e6d6613cd42bf7511e9c6aac947fc8d62ff973a705570b036d969f2')
b2sums=('c98e70822a340ecbde924e9a2f237a32bf1f7710fb6ca76e55b0c7631cfd8b2bc14ebf87fb78fe9db1ea87f600388f620c7fb01c37cb7f14a185d6521df62611')
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')
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
}