10 Commits

Author SHA1 Message Date
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

View File

@@ -1,22 +1,25 @@
# 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.1
pkgrel=1
pkgver=0.11.2
pkgrel=3
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')
depends=('python-pydantic' 'python-typeguard')
makedepends=('python-build' 'python-install' 'python-setuptools-scm'
'python-toml' 'python-wheel')
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
source=("$url/archive/v$pkgver/$_name-$pkgver.tar.gz")
b2sums=('01927d80f6ba961ab0f745be3c62d67683603203c7b94429c2420869d8d90c2b4aa8e02cf2e54a04feb26e4144f2423882086f6007afc4648decc39f0814ae13')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('1ade26fc9cf0d7c0700fa5430e8dc8411b1108d1eb21565adbe480b64f721a84')
b2sums=('3c26a4067c9f55eec9d151eee4dd90ff7c18084ab89999b70c944fdf5b6f1222938db1743524f433eb152d75a4446b024cff85f1d16924938727808844091271')
build() {
cd $_name-$pkgver
python setup.py build
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -26,7 +29,13 @@ check() {
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m install --optimize=1 --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.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
# vim:set ts=2 sw=2 et: