Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ad74048be | ||
|
|
53ab6238f2 | ||
|
|
d00160c35b | ||
|
|
3188da27c9 | ||
|
|
dde4182353 | ||
|
|
d44f34b6c0 | ||
|
|
9fdac19b31 | ||
|
|
c368b9b9b2 | ||
|
|
92ebb36c41 | ||
|
|
672969025d | ||
|
|
a99ffc78c1 | ||
|
|
d1ee4ca52a | ||
|
|
17d51b5b12 | ||
|
|
024d737d4a | ||
|
|
6d95e55328 |
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
pkgbase = python-pygls
|
||||||
|
pkgdesc = Pythonic generic implementation of the Language Server Protocol
|
||||||
|
pkgver = 1.3.1
|
||||||
|
pkgrel = 4
|
||||||
|
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
|
||||||
4
.nvchecker.toml
Normal file
4
.nvchecker.toml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[python-pygls]
|
||||||
|
source = "git"
|
||||||
|
git = "https://github.com/openlawlibrary/pygls.git"
|
||||||
|
prefix = "v"
|
||||||
12
LICENSE
Normal file
12
LICENSE
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Copyright Arch Linux Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for
|
||||||
|
any purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
|
||||||
|
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
||||||
|
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
|
||||||
|
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||||
|
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||||
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
1
LICENSES/0BSD.txt
Symbolic link
1
LICENSES/0BSD.txt
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../LICENSE
|
||||||
40
PKGBUILD
40
PKGBUILD
@@ -1,49 +1,37 @@
|
|||||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||||
# Contributor: Otreblan <otreblain@gmail.com>
|
# Contributor: Otreblan <otreblain@gmail.com>
|
||||||
|
|
||||||
_name=pygls
|
|
||||||
pkgname=python-pygls
|
pkgname=python-pygls
|
||||||
pkgver=1.0.1
|
_name=${pkgname#python-}
|
||||||
pkgrel=2
|
pkgver=1.3.1
|
||||||
|
pkgrel=4
|
||||||
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url=https://github.com/openlawlibrary/pygls
|
url=https://github.com/openlawlibrary/pygls
|
||||||
license=('APACHE')
|
license=('Apache-2.0')
|
||||||
depends=('python-lsprotocol' 'python-typeguard')
|
depends=('python-cattrs' 'python-lsprotocol')
|
||||||
makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
|
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
|
||||||
'python-toml' 'python-wheel')
|
checkdepends=('python-pytest-asyncio')
|
||||||
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
|
source=("git+$url.git#tag=v$pkgver")
|
||||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
|
b2sums=('c893198f1004256118acfa1bee3aefb87f98a34f2a634de7263d621e56673312a735e94ab8703135e7e43df21cde0a07946a9187c54878c2dcadd696fb8830e4')
|
||||||
'pygls-typeguard3.patch::https://github.com/openlawlibrary/pygls/pull/327.patch')
|
|
||||||
sha256sums=('f3ee98ddbb4690eb5c755bc32ba7e129607f14cbd313575f33d0cea443b78cb2'
|
|
||||||
'e95fbe7f2f18f2e1499ead927d207b88016df4ae46b5a80d350877dba8507bef')
|
|
||||||
b2sums=('62089e817214d8ae0b9d2454a0787e18f077183fbcd1dcf538630ec167f1356f3031dff679dd45aeab48a11e545b7c63fa74e1c42fca7fec7c33d51b72efb25f'
|
|
||||||
'8f1b326092bb460a13a9de00bda1644725ad0b66a9e0049ed2ab7e88730ed0068455a6f126b685825bfeee82a4229c12557de6a430ca55b73f91498843c5ba4a')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd $_name-$pkgver
|
|
||||||
patch --forward --strip=1 --input=../pygls-typeguard3.patch || true
|
|
||||||
sed -i 's/typeguard>=2.10.0,<3/typeguard>=3,<4/' setup.cfg
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_name-$pkgver
|
cd "$_name"
|
||||||
python -m build --wheel --skip-dependency-check --no-isolation
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd $_name-$pkgver
|
cd "$_name"
|
||||||
pytest
|
PYTHONPATH="$PWD/$_name:$PYTHONPATH" pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $_name-$pkgver
|
cd "$_name"
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
rm -r "$pkgdir"/usr/lib/site-packages
|
|
||||||
|
|
||||||
# Symlink license file
|
# Symlink license file
|
||||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
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
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|||||||
22
REUSE.toml
Normal file
22
REUSE.toml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
version = 1
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [
|
||||||
|
"PKGBUILD",
|
||||||
|
"README.md",
|
||||||
|
"keys/**",
|
||||||
|
".SRCINFO",
|
||||||
|
".nvchecker.toml",
|
||||||
|
"*.install",
|
||||||
|
"*.sysusers",
|
||||||
|
"*.tmpfiles",
|
||||||
|
"*.logrotate",
|
||||||
|
"*.pam",
|
||||||
|
"*.service",
|
||||||
|
"*.socket",
|
||||||
|
"*.timer",
|
||||||
|
"*.desktop",
|
||||||
|
"*.hook",
|
||||||
|
]
|
||||||
|
SPDX-FileCopyrightText = "Arch Linux contributors"
|
||||||
|
SPDX-License-Identifier = "0BSD"
|
||||||
Reference in New Issue
Block a user