15 Commits

Author SHA1 Message Date
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
Daniel M. Capella
3ee62a74b2 upgpkg: 0.10.0-1 2021-03-17 07:12:05 +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.9.1
pkgrel=4
pkgver=0.11.3
pkgrel=1
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
arch=('any')
url=https://github.com/openlawlibrary/pygls
license=('APACHE')
depends=('python')
makedepends=('python-setuptools')
depends=('python-pydantic' 'python-typeguard')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
'python-toml' 'python-wheel')
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
b2sums=('f723ce70d1d080c52266b9449c589b9aabf04c748793a67d775436fa326fbdd6fd63876061fb5bdad95434c832e4ee351e36483b2a8406ad7b4dd9bdc9a1c2d2')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('4d86fc854e6d6613cd42bf7511e9c6aac947fc8d62ff973a705570b036d969f2')
b2sums=('c98e70822a340ecbde924e9a2f237a32bf1f7710fb6ca76e55b0c7631cfd8b2bc14ebf87fb78fe9db1ea87f600388f620c7fb01c37cb7f14a185d6521df62611')
build() {
cd $_name-$pkgver
python setup.py build
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -26,5 +29,12 @@ check() {
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
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])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}