20 Commits

Author SHA1 Message Date
Daniel M. Capella
66a44112a1 upgpkg: 2.0.0-1 2025-10-20 12:50:54 -04:00
Daniel M. Capella
ab0f76e3da upgpkg: 2.0.0a6-1 2025-07-18 17:53:12 -04:00
Daniel M. Capella
8b0414ab72 upgpkg: 2.0.0a5-1 2025-07-18 17:53:12 -04:00
Jelle van der Waa
d00160c35b upgpkg: 1.3.1-3: Rebuild for Python 3.13 2024-11-19 16:56:54 +01:00
T.J. Townsend
3188da27c9 add nvchecker 2024-07-14 14:42:15 -04:00
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
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
3 changed files with 49 additions and 21 deletions

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

@@ -0,0 +1,4 @@
[python-pygls]
source = "git"
git = "https://github.com/openlawlibrary/pygls.git"
prefix = "v"

View File

@@ -1,40 +1,45 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Otreblan <otreblain@gmail.com>
_name=pygls
pkgname=python-pygls
pkgver=0.13.0
_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-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=('d76e44768d75805da26dfbaec187c6251450af4b7b1cc0b7eb3587e6e27e32a4')
b2sums=('74b357add149d6fc6b3cb75136587c024b82989a5c6bcf88981f6e2f285e9d5b2014212757bb2526010f03278ac89b3d105755b8185eb61302992b309414dd97')
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
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 \
"$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
}