Compare commits
10 Commits
2023.0.0a1
...
2025.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a27bf8a219 | ||
|
|
756131f41d | ||
|
|
f38811a749 | ||
|
|
31d81e58ba | ||
|
|
94b4c2287c | ||
|
|
e359870b75 | ||
|
|
7d216edc50 | ||
|
|
6c4a589f0f | ||
|
|
bfc95f867e | ||
|
|
004507eab2 |
20
.SRCINFO
Normal file
20
.SRCINFO
Normal file
@@ -0,0 +1,20 @@
|
||||
pkgbase = python-lsprotocol
|
||||
pkgdesc = Python types for Language Server Protocol
|
||||
pkgver = 2025.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-attrs
|
||||
depends = python-cattrs
|
||||
source = git+https://github.com/microsoft/lsprotocol.git#tag=2025.0.0
|
||||
b2sums = ea9f4e871d68f62f174d2f8e2efad7bc6b9c4f54216022047e425531525c676577e4bdd657e8eaad86eea944ab6d996da5ae80badc929910b849b52c0ecd9bb2
|
||||
|
||||
pkgname = python-lsprotocol
|
||||
45
PKGBUILD
45
PKGBUILD
@@ -1,36 +1,47 @@
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
|
||||
_name=lsprotocol
|
||||
pkgname=python-lsprotocol
|
||||
pkgver=2023.0.0a1
|
||||
_name=${pkgname#python-}
|
||||
pkgver=2025.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")
|
||||
b2sums=('SKIP')
|
||||
license=(MIT)
|
||||
depends=(
|
||||
python-attrs
|
||||
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=('ea9f4e871d68f62f174d2f8e2efad7bc6b9c4f54216022047e425531525c676577e4bdd657e8eaad86eea944ab6d996da5ae80badc929910b849b52c0ecd9bb2')
|
||||
|
||||
build() {
|
||||
cd $_name/packages/python
|
||||
cd "$_name"/packages/python
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_name
|
||||
pytest tests/python
|
||||
cd "$_name"
|
||||
pytest tests/python --deselect tests/python/test_cattrs_special_cases.py::test_notebook_sync_options
|
||||
}
|
||||
|
||||
package() {
|
||||
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/licenses/LICENSE \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
|
||||
cd "$_name"/packages/python
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user