11 Commits

Author SHA1 Message Date
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
Antonio Rojas
4411908402 Update to 0.13.0 2022-11-22 22:56:08 +00:00
Antonio Rojas
861476e8cf Update to 0.12.1 2022-08-31 17:18:51 +00:00
Antonio Rojas
853a4defa9 Update to 0.11.3 2022-07-02 19:08:16 +00:00
Daniel M. Capella
c45e24884b Do not specify --compile-bytecode installer option
The defaults for --compile-bytecode (0, 1) are equivalent to the --optimize=1 used previously.
2022-02-19 21:47:34 +00:00
Daniel M. Capella
5413d3ac75 Switch to python-installer from python-install 2022-02-16 23:32:21 +00:00
Felix Yan
b167108df3 Python 3.10 rebuild 2021-12-02 21:38:24 +00:00

View File

@@ -3,19 +3,28 @@
_name=pygls
pkgname=python-pygls
pkgver=0.11.2
pkgrel=2
pkgver=1.0.1
pkgrel=3
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
arch=('any')
url=https://github.com/openlawlibrary/pygls
license=('APACHE')
depends=('python-pydantic' 'python-typeguard')
makedepends=('python-build' 'python-install' 'python-setuptools-scm'
depends=('python-lsprotocol' '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=('1ade26fc9cf0d7c0700fa5430e8dc8411b1108d1eb21565adbe480b64f721a84')
b2sums=('3c26a4067c9f55eec9d151eee4dd90ff7c18084ab89999b70c944fdf5b6f1222938db1743524f433eb152d75a4446b024cff85f1d16924938727808844091271')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
'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() {
cd $_name-$pkgver
@@ -29,7 +38,8 @@ check() {
package() {
cd $_name-$pkgver
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
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])")
@@ -37,5 +47,3 @@ package() {
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
# vim:set ts=2 sw=2 et: