Date: Sunday, December 5, 2021 @ 15:25:56 Author: archange Revision: 1065169
archrelease: copy trunk to community-staging-any Added: python-lsp-server/repos/community-staging-any/PKGBUILD (from rev 1065167, python-lsp-server/trunk/PKGBUILD) Deleted: python-lsp-server/repos/community-staging-any/PKGBUILD ----------+ PKGBUILD | 117 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 60 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-12-05 15:25:52 UTC (rev 1065168) +++ PKGBUILD 2021-12-05 15:25:56 UTC (rev 1065169) @@ -1,57 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@archlinux.org> -# Maintainer: Bruno Pagani <archa...@archlinux.org> -# Contributor: Platon Pronko <platon7pro...@gmail.com> - -pkgname=python-lsp-server -pkgver=1.2.4 -pkgrel=4 -pkgdesc="Fork of the python-language-server project, maintained by the Spyder IDE team and the community" -arch=(any) -url="https://github.com/python-lsp/python-lsp-server" -license=(MIT) -depends=(python-jedi python-lsp-jsonrpc python-pluggy python-ujson python-setuptools) -checkdepends=( - python-pytest - python-flaky - python-matplotlib - python-mccabe - python-numpy - python-pandas - python-pycodestyle - python-pydocstyle - python-pyflakes - python-pylint - python-pyqt5 - python-rope - autopep8 - flake8 - yapf -) -source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz - ${pkgname}-fix-pylint-2.10.patch::https://github.com/python-lsp/python-lsp-server/commit/e8cf8e5b160f227550574cba480e276a98248d44.patch) -sha256sums=('3e9102808f661df18a54e2ddd97285d4b3c4cbc0af6fed8439a1960617f74674' - '1778835e6926a84cc44c16628463394f4a36a5abd532bba2aa87a133ad4f14fe') - -prepare() { - cd ${pkgname}-${pkgver} - patch -p1 < ../${pkgname}-fix-pylint-2.10.patch - sed 's|flake8>=3.8.0,<4.0.0|flake8>=3.8.0|g' -i setup.py - sed 's|pyflakes>=2.3.0,<2.4.0|pyflakes>=2.3.0|g' -i setup.py -} - -build() { - cd ${pkgname}-${pkgver} - python setup.py build -} - -check() { - cd ${pkgname}-${pkgver} - sed -i '/addopts =$/,$d' setup.cfg - pytest -v --color=yes -} - -package() { - cd ${pkgname}-${pkgver} - python setup.py install --root=${pkgdir} --optimize=1 --skip-build - install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ -} Copied: python-lsp-server/repos/community-staging-any/PKGBUILD (from rev 1065167, python-lsp-server/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-12-05 15:25:56 UTC (rev 1065169) @@ -0,0 +1,60 @@ +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Maintainer: Bruno Pagani <archa...@archlinux.org> +# Contributor: Platon Pronko <platon7pro...@gmail.com> + +pkgname=python-lsp-server +pkgver=1.3.2 +pkgrel=2 +pkgdesc="Fork of the python-language-server project, maintained by the Spyder IDE team and the community" +arch=(any) +url="https://github.com/python-lsp/python-lsp-server" +license=(MIT) +depends=(python-jedi python-lsp-jsonrpc python-pluggy python-ujson python-setuptools) +checkdepends=( + python-pytest + python-flaky + python-matplotlib + python-mccabe + python-numpy + python-pandas + python-pycodestyle + python-pydocstyle + python-pyflakes + python-pylint + python-pyqt5 + python-rope + autopep8 + flake8 + yapf +) +source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz + ${pkgname}-fix-py3.10.patch::${url}/pull/133.patch) +sha256sums=('c768f5714880b38111516339384bbb0f7328cd1c50090038c915210f3f6b01cb' + '2faa399a1dc34f6956d6d0196cecf5ece53cbff5ec2f2cc8bea8400997f9957e') + +prepare() { + cd ${pkgname}-${pkgver} + sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|g' -i setup.py + sed 's|flake8>=4.0.0,<4.1.0|flake8>=4.0.0|g' -i setup.py + sed 's|mccabe>=0.6.0,<0.7.0|mccabe>=0.6.0|g' -i setup.py + sed 's|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|g' -i setup.py + sed 's|pyflakes>=2.4.0,<2.5.0|pyflakes>=2.4.0|g' -i setup.py + patch -p1 < ../${pkgname}-fix-py3.10.patch +} + +build() { + cd ${pkgname}-${pkgver} + python setup.py build +} + +check() { + cd ${pkgname}-${pkgver} + sed -i '/addopts =$/,$d' setup.cfg + pytest -v --color=yes +} + +package() { + cd ${pkgname}-${pkgver} + python setup.py install --root=${pkgdir} --optimize=1 --skip-build + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +}