30 Commits

Author SHA1 Message Date
Daniel M. Capella
d44f34b6c0 upgpkg: 1.3.1-1 2024-03-26 15:54:41 -04:00
Daniel M. Capella
9fdac19b31 updpkgsums 2024-03-18 20:00:54 -04:00
Daniel M. Capella
c368b9b9b2 upgpkg: 1.3.0-1 2024-01-29 16:13:17 -05:00
Daniel M. Capella
92ebb36c41 upgpkg: 1.2.1-1 2023-11-30 15:04:34 -05:00
Daniel M. Capella
672969025d upgpkg: 1.2.0-1 2023-11-19 16:04:13 -05:00
Daniel M. Capella
a99ffc78c1 upgpkg: 1.1.2-1 2023-10-28 17:13:25 -04:00
Daniel M. Capella
d1ee4ca52a upgpkg: 1.1.1-1 2023-10-06 18:21:35 -04:00
Daniel M. Capella
17d51b5b12 upgpkg: 1.1.0-1 2023-10-02 20:45:26 -04:00
Daniel M. Capella
024d737d4a upgpkg: 1.0.2-1 2023-05-16 18:46:10 +00:00
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
Felix Yan
2b621d5b6d Python 3.10 rebuild 2021-12-01 00:37:26 +00:00
Daniel M. Capella
f7d114e115 Use venv when tests need to import built project
python-setuptools-scm is the only package I hit a wall with:
> ==> Starting check()...
> running install
> running bdist_egg
> bdist_egg is forbidden, please update to setuptools>=45 which uses pip
2021-11-07 13:53:47 +00:00
Evangelos Foutras
b4f66f8614 Remove PYTHONHASHSEED workaround now set by pacman 2021-09-07 02:35:30 +00:00
Daniel M. Capella
56e28d2ed3 upgpkg: 0.11.2-1 2021-07-23 16:17:59 +00:00
Daniel M. Capella
3540e011a7 upgpkg: 0.11.1-1 2021-06-25 20:39:22 +00:00
Daniel M. Capella
e7ff74987d Use PEP 517 2021-06-20 05:08:49 +00:00
Daniel M. Capella
7768be2c0f upgpkg: 0.10.3-2 2021-05-10 11:47:36 +00:00
Daniel M. Capella
a6fef2e0a2 upgpkg: 0.10.3-1 2021-05-05 19:06:05 +00:00
Daniel M. Capella
224b42a45b upgpkg: 0.10.2-1 2021-03-25 19:53:02 +00:00
Daniel M. Capella
02535cbd72 upgpkg: 0.10.1-1 2021-03-17 20:43:44 +00:00
2 changed files with 40 additions and 17 deletions

18
.SRCINFO Normal file
View File

@@ -0,0 +1,18 @@
pkgbase = python-pygls
pkgdesc = Pythonic generic implementation of the Language Server Protocol
pkgver = 1.3.1
pkgrel = 1
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

View File

@@ -1,32 +1,37 @@
# Maintainer: Otreblan <otreblain@gmail.com>
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Otreblan <otreblain@gmail.com>
_name=pygls
pkgname=python-pygls
pkgver=0.10.0
_name=${pkgname#python-}
pkgver=1.3.1
pkgrel=1
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
arch=('any')
url=https://github.com/openlawlibrary/pygls
license=('APACHE')
depends=('python-psutil' 'python-pydantic' 'python-typeguard')
makedepends=('python-setuptools')
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
source=("$url/archive/v$pkgver/$_name-$pkgver.tar.gz")
b2sums=('b131aa222c3a50b80bf819f8550b450b06d1525c66a57827af80b9db5f3a7b8b0a9b2435e5d2b572ddbdca71d1cb105da85ec246900f43a38fc4776e96db005f')
license=('Apache-2.0')
depends=('python-cattrs' 'python-lsprotocol')
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
checkdepends=('python-pytest-asyncio')
source=("git+$url.git#tag=v$pkgver")
b2sums=('c893198f1004256118acfa1bee3aefb87f98a34f2a634de7263d621e56673312a735e94ab8703135e7e43df21cde0a07946a9187c54878c2dcadd696fb8830e4')
build() {
cd $_name-$pkgver
python setup.py build
cd "$_name"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
pytest
cd "$_name"
PYTHONPATH="$PWD/$_name:$PYTHONPATH" pytest
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
cd "$_name"
python -m installer --destdir="$pkgdir" dist/*.whl
# vim:set ts=2 sw=2 et:
# 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.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}