13 Commits

Author SHA1 Message Date
Daniel M. Capella
dde4182353 upgpkg: 1.3.1-2: Rebuild for Python 3.12 2024-04-05 18:13:14 -04:00
Daniel M. Capella
d44f34b6c0 upgpkg: 1.3.1-1 2024-03-26 15:54:41 -04:00
Daniel M. Capella
9fdac19b31 updpkgsums 2024-03-18 20:00:54 -04:00
Daniel M. Capella
c368b9b9b2 upgpkg: 1.3.0-1 2024-01-29 16:13:17 -05:00
Daniel M. Capella
92ebb36c41 upgpkg: 1.2.1-1 2023-11-30 15:04:34 -05:00
Daniel M. Capella
672969025d upgpkg: 1.2.0-1 2023-11-19 16:04:13 -05:00
Daniel M. Capella
a99ffc78c1 upgpkg: 1.1.2-1 2023-10-28 17:13:25 -04:00
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
2 changed files with 32 additions and 17 deletions

18
.SRCINFO Normal file
View 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

View File

@@ -1,40 +1,37 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Otreblan <otreblain@gmail.com>
_name=pygls
pkgname=python-pygls
pkgver=1.0.0
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-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')
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
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
}