Compare commits
7 Commits
2023.0.0a1
...
2023.0.1-2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f38811a749 | ||
|
|
31d81e58ba | ||
|
|
94b4c2287c | ||
|
|
e359870b75 | ||
|
|
7d216edc50 | ||
|
|
6c4a589f0f | ||
|
|
bfc95f867e |
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
@@ -0,0 +1,19 @@
|
||||
pkgbase = python-lsprotocol
|
||||
pkgdesc = Python types for Language Server Protocol
|
||||
pkgver = 2023.0.1
|
||||
pkgrel = 2
|
||||
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.1
|
||||
b2sums = 8e3ce2c021a8e170aaa05fb7ff8d25136d26a88977d070fa5f1c29616199c50e7fb2e401597dfe16b16e61e381923a6aa5df326624ac03258dc33028d17d4312
|
||||
|
||||
pkgname = python-lsprotocol
|
||||
18
PKGBUILD
18
PKGBUILD
@@ -1,36 +1,36 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
|
||||
_name=lsprotocol
|
||||
pkgname=python-lsprotocol
|
||||
pkgver=2023.0.0a1
|
||||
_name=${pkgname#python-}
|
||||
pkgver=2023.0.1
|
||||
pkgrel=2
|
||||
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")
|
||||
b2sums=('SKIP')
|
||||
source=("git+$url.git#tag=$pkgver")
|
||||
b2sums=('8e3ce2c021a8e170aaa05fb7ff8d25136d26a88977d070fa5f1c29616199c50e7fb2e401597dfe16b16e61e381923a6aa5df326624ac03258dc33028d17d4312')
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user