upgpkg: 2023.0.0-1

This commit is contained in:
Daniel M. Capella
2023-11-19 16:03:48 -05:00
parent 7d216edc50
commit 94e7aec5c6
2 changed files with 27 additions and 8 deletions

19
.SRCINFO Normal file
View File

@@ -0,0 +1,19 @@
pkgbase = python-lsprotocol
pkgdesc = Python types for Language Server Protocol
pkgver = 2023.0.0
pkgrel = 1
url = https://github.com/microsoft/lsprotocol
arch = any
license = MIT
checkdepends = python-jsonschema
checkdepends = python-pyhamcrest
checkdepends = python-pytest
makedepends = git
makedepends = python-build
makedepends = python-flit-core
makedepends = python-installer
depends = python-cattrs
source = git+https://github.com/microsoft/lsprotocol.git#tag=2023.0.0
b2sums = SKIP
pkgname = python-lsprotocol

View File

@@ -1,36 +1,36 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
_name=lsprotocol
pkgname=python-lsprotocol
pkgver=2023.0.0b1
_name=${pkgname#python-}
pkgver=2023.0.0
pkgrel=1
pkgdesc='Python implementation of the Language Server Protocol'
pkgdesc='Python types for Language Server Protocol'
arch=('any')
url=https://github.com/microsoft/lsprotocol
license=('MIT')
depends=('python-cattrs')
makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
checkdepends=('python-jsonschema' 'python-pyhamcrest' 'python-pytest')
source=("git+$url.git?tag=$pkgver")
source=("git+$url.git#tag=$pkgver")
b2sums=('SKIP')
build() {
cd $_name/packages/python
cd "$_name"/packages/python
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name
cd "$_name"
pytest tests/python
}
package() {
cd $_name/packages/python
cd "$_name"/packages/python
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 \
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}