Date: Friday, July 22, 2022 @ 13:22:01 Author: archange Revision: 1255233
upgpkg: python-lsp-server 1.5.0-1 FS#75270 list optdepends Modified: python-lsp-server/trunk/PKGBUILD ----------+ PKGBUILD | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-07-22 13:10:18 UTC (rev 1255232) +++ PKGBUILD 2022-07-22 13:22:01 UTC (rev 1255233) @@ -3,41 +3,55 @@ # Contributor: Platon Pronko <[email protected]> pkgname=python-lsp-server -pkgver=1.4.1 +pkgver=1.5.0 pkgrel=1 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) +depends=(python-jedi python-lsp-jsonrpc python-pluggy python-ujson python-setuptools python-websockets) makedepends=(python-build python-installer python-setuptools-scm python-wheel) +optdepends=( + 'python-mccabe: complexity checking' + 'python-pycodestyle: linter - style checking' + 'python-pydocstyle: linter - docstring style checking' + 'python-pyflakes: linter to detect various errors' + 'python-pylint: code linting' + 'python-rope: for completions and renaming' + 'autopep8: code formatting' + 'flake8: error checking' + 'yapf: code formatting (preferred)' + 'python-whatthepatch: required for yapf support' +) 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 + python-whatthepatch + python-matplotlib + python-numpy + python-pandas + python-pyqt5 ) source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('be7f83298af9f0951a93972cafc9db04fd7cf5c05f20812515275f0ba70e342f') +sha256sums=('e5c094c19925022a27c4068f414b2bb653243f8fb0d768e39735289d7a89380d') prepare() { cd ${pkgname}-${pkgver} - sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|g' -i setup.cfg - sed 's|flake8>=4.0.0,<4.1.0|flake8>=4.0.0|g' -i setup.cfg - sed 's|mccabe>=0.6.0,<0.7.0|mccabe>=0.6.0|g' -i setup.cfg - sed 's|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|g' -i setup.cfg - sed 's|pyflakes>=2.4.0,<2.5.0|pyflakes>=2.4.0|g' -i setup.cfg + sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|' -i pyproject.toml + sed 's|flake8>=4.0.0,<4.1.0|flake8>=4.0.0|' -i pyproject.toml + sed 's|mccabe>=0.6.0,<0.7.0|mccabe>=0.6.0|' -i pyproject.toml + sed 's|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|' -i pyproject.toml + sed 's|pyflakes>=2.4.0,<2.5.0|pyflakes>=2.4.0|' -i pyproject.toml + sed 's|numpy<1.23|numpy|' -i pyproject.toml } build() { @@ -48,9 +62,9 @@ check() { cd ${pkgname}-${pkgver} # Disable coverage - sed -i '/addopts =/d' setup.cfg - sed -i '/--cov/d' setup.cfg - pytest -vv --color=yes + sed -i '/--cov/d' pyproject.toml + # Numpy completions broken with numpy 1.23 + pytest -vv --color=yes -k 'not test_numpy_completions' } package() {
