Date: Sunday, March 26, 2023 @ 15:38:00 Author: arojas Revision: 1429274
archrelease: copy trunk to community-any Added: python-lsp-server/repos/community-any/PKGBUILD (from rev 1429273, python-lsp-server/trunk/PKGBUILD) python-lsp-server/repos/community-any/ce913f16.patch (from rev 1429273, python-lsp-server/trunk/ce913f16.patch) Deleted: python-lsp-server/repos/community-any/PKGBUILD python-lsp-server/repos/community-any/ce913f16.patch ----------------+ PKGBUILD | 153 +++++++++++++++++++++++++++---------------------------- ce913f16.patch | 52 +++++++++--------- 2 files changed, 102 insertions(+), 103 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-03-26 15:37:51 UTC (rev 1429273) +++ PKGBUILD 2023-03-26 15:38:00 UTC (rev 1429274) @@ -1,77 +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.7.1 -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 python-websockets python-docstring-to-markdown) -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-mccabe - python-pycodestyle - python-pydocstyle - python-pyflakes - python-pylint - python-rope - autopep8 - flake8 - yapf - python-whatthepatch - python-matplotlib - python-numpy - python-pandas - python-pyqt5 - python-appdirs -) -source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz - ce913f16.patch) -sha256sums=('67473bb301f35434b5fa8b21fc5ed5fac27dc8a8446ccec8bae456af52a0aef6' - '05cce14f51081854b33df34a22f0ecf07060c3195412cce49238f36d3cf1b05f') - -prepare() { - cd ${pkgname}-${pkgver} - sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|' -i pyproject.toml - sed 's|flake8>=5.0.0,<7|flake8>=5.0.0|' -i pyproject.toml - sed 's|mccabe>=0.7.0,<0.8.0|mccabe>=0.7.0|' -i pyproject.toml - sed 's|pycodestyle>=2.9.0,<2.11.0|pycodestyle>=2.9.0|' -i pyproject.toml - sed 's|pyflakes>=2.5.0,<3.1.0|pyflakes>=2.5.0|' -i pyproject.toml - sed 's|pydocstyle>=6.2.0,<6.3.0|pydocstyle|' -i pyproject.toml - patch -Rp1 -i ../ce913f16.patch # Revert pydocstyle bump until package is updated -} - -build() { - cd ${pkgname}-${pkgver} - python -m build -wn -} - -check() { - cd ${pkgname}-${pkgver} - # Disable coverage - sed -i '/--cov/d' pyproject.toml - pytest -vv --color=yes -} - -package() { - cd ${pkgname}-${pkgver} - python -m installer -d="${pkgdir}" dist/*.whl - install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ -} Copied: python-lsp-server/repos/community-any/PKGBUILD (from rev 1429273, python-lsp-server/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-03-26 15:38:00 UTC (rev 1429274) @@ -0,0 +1,76 @@ +# 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.7.1 +pkgrel=3 +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 python-websockets python-docstring-to-markdown) +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-mccabe + python-pycodestyle + python-pydocstyle + python-pyflakes + python-pylint + python-rope + autopep8 + flake8 + yapf + python-whatthepatch + python-matplotlib + python-numpy + python-pandas + python-pyqt5 + python-appdirs +) +source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz + https://github.com/python-lsp/python-lsp-server/commit/40124c6d.patch) +sha256sums=('67473bb301f35434b5fa8b21fc5ed5fac27dc8a8446ccec8bae456af52a0aef6' + 'a035a8a4053cc134fb2dd88f9c7ee3a7ebbcf43b439cb72c665d785fd4b0336e') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i ../40124c6d.patch # Support pydocstyle 6.3 + sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|' -i pyproject.toml + sed 's|flake8>=5.0.0,<7|flake8>=5.0.0|' -i pyproject.toml + sed 's|mccabe>=0.7.0,<0.8.0|mccabe>=0.7.0|' -i pyproject.toml + sed 's|pycodestyle>=2.9.0,<2.11.0|pycodestyle>=2.9.0|' -i pyproject.toml + sed 's|pyflakes>=2.5.0,<3.1.0|pyflakes>=2.5.0|' -i pyproject.toml +} + +build() { + cd ${pkgname}-${pkgver} + python -m build -wn +} + +check() { + cd ${pkgname}-${pkgver} + # Disable coverage + sed -i '/--cov/d' pyproject.toml + pytest -vv --color=yes +} + +package() { + cd ${pkgname}-${pkgver} + python -m installer -d="${pkgdir}" dist/*.whl + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +} Deleted: ce913f16.patch =================================================================== --- ce913f16.patch 2023-03-26 15:37:51 UTC (rev 1429273) +++ ce913f16.patch 2023-03-26 15:38:00 UTC (rev 1429274) @@ -1,26 +0,0 @@ -From ce913f16359f03ffe4a60b6a2fe7ccae4b15bb4a Mon Sep 17 00:00:00 2001 -From: Carlos Cordoba <ccordob...@gmail.com> -Date: Wed, 4 Jan 2023 19:05:01 -0500 -Subject: [PATCH] Fix pydocstyle linting with its 6.2.0 version (#329) - ---- - pylsp/plugins/pydocstyle_lint.py | 4 ++-- - pyproject.toml | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/pylsp/plugins/pydocstyle_lint.py b/pylsp/plugins/pydocstyle_lint.py -index 7f4e0723..0aa72b7c 100644 ---- a/pylsp/plugins/pydocstyle_lint.py -+++ b/pylsp/plugins/pydocstyle_lint.py -@@ -66,9 +66,9 @@ def pylsp_lint(config, workspace, document): - - # Will only yield a single filename, the document path - diags = [] -- for filename, checked_codes, ignore_decorators in conf.get_files_to_check(): -+ for filename, checked_codes, ignore_decorators, property_decorators in conf.get_files_to_check(): - errors = pydocstyle.checker.ConventionChecker().check_source( -- document.source, filename, ignore_decorators=ignore_decorators -+ document.source, filename, ignore_decorators=ignore_decorators, property_decorators=property_decorators - ) - - try: Copied: python-lsp-server/repos/community-any/ce913f16.patch (from rev 1429273, python-lsp-server/trunk/ce913f16.patch) =================================================================== --- ce913f16.patch (rev 0) +++ ce913f16.patch 2023-03-26 15:38:00 UTC (rev 1429274) @@ -0,0 +1,26 @@ +From ce913f16359f03ffe4a60b6a2fe7ccae4b15bb4a Mon Sep 17 00:00:00 2001 +From: Carlos Cordoba <ccordob...@gmail.com> +Date: Wed, 4 Jan 2023 19:05:01 -0500 +Subject: [PATCH] Fix pydocstyle linting with its 6.2.0 version (#329) + +--- + pylsp/plugins/pydocstyle_lint.py | 4 ++-- + pyproject.toml | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/pylsp/plugins/pydocstyle_lint.py b/pylsp/plugins/pydocstyle_lint.py +index 7f4e0723..0aa72b7c 100644 +--- a/pylsp/plugins/pydocstyle_lint.py ++++ b/pylsp/plugins/pydocstyle_lint.py +@@ -66,9 +66,9 @@ def pylsp_lint(config, workspace, document): + + # Will only yield a single filename, the document path + diags = [] +- for filename, checked_codes, ignore_decorators in conf.get_files_to_check(): ++ for filename, checked_codes, ignore_decorators, property_decorators in conf.get_files_to_check(): + errors = pydocstyle.checker.ConventionChecker().check_source( +- document.source, filename, ignore_decorators=ignore_decorators ++ document.source, filename, ignore_decorators=ignore_decorators, property_decorators=property_decorators + ) + + try: