diff --git a/textproc/py-python-lsp-server/Makefile b/textproc/py-python-lsp-server/Makefile index fb7a35189cef..9806f45b8a21 100644 --- a/textproc/py-python-lsp-server/Makefile +++ b/textproc/py-python-lsp-server/Makefile @@ -1,56 +1,69 @@ PORTNAME= python-lsp-server -PORTVERSION= 1.11.0 +PORTVERSION= 1.12.0 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${PORTNAME:S/-/_/g}-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= rhurlin@FreeBSD.org COMMENT= Python implementation of the Language Server Protocol WWW= https://github.com/python-lsp/python-lsp-server LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}autopep8>0:textproc/py-autopep8@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}docstring-to-markdown>0:textproc/py-docstring-to-markdown@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>0:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mccabe>0:devel/py-mccabe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycodestyle>0:devel/py-pycodestyle@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydocstyle>0:devel/py-pydocstyle@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyflakes>0:devel/py-pyflakes@${PY_FLAVOR} \ pylint${PYTHON_PKGNAMESUFFIX}>0:devel/pylint@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyls-black>0:devel/py-pyls-black@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-lsp-jsonrpc>0:textproc/py-python-lsp-jsonrpc@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rope>0:devel/py-rope@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ruff>0:devel/py-ruff@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ujson>0:devel/py-ujson@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}whatthepatch>0:textproc/py-whatthepatch@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yapf>0:textproc/py-yapf@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}flaky>=3.4.0:devel/py-flaky@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}isort>0:devel/py-isort@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>0:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ pylint${PYTHON_PKGNAMESUFFIX}>0:devel/pylint@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-isort>0:devel/py-pytest-isort@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qt5-pyqt>0:devel/py-qt5-pyqt@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rope>0:devel/py-rope@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}whatthepatch>0:textproc/py-whatthepatch@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yapf>0:textproc/py-yapf@${PY_FLAVOR} \ ${PYNUMPY} +### Test core dumps at +# python_lsp_server-1.12.0/test/plugins/test_autoimport.py:l277ff +# if math/openblas is built with option INTERFACE64=ON (nondefault)! +# # make test: 4 failed, 186 passed, 8 skipped, 10 warnings USES= python USE_PYTHON= autoplist concurrent pep517 pytest +TEST_USES= qt:5 +TEST_USE_PYQT= pyqt5:test +TEST_USE_QT= testlib + NO_ARCH= yes +WRKSRC= ${WRKDIR}/${DISTFILES:R:R} + .include diff --git a/textproc/py-python-lsp-server/distinfo b/textproc/py-python-lsp-server/distinfo index 55a54e2c0409..a07944a71e3e 100644 --- a/textproc/py-python-lsp-server/distinfo +++ b/textproc/py-python-lsp-server/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1711954019 -SHA256 (python-lsp-server-1.11.0.tar.gz) = 89edd6fb3f7852e4bf5a3d1d95ea41484d1a28fa94b6e3cbff12b9db123b8e86 -SIZE (python-lsp-server-1.11.0.tar.gz) = 113347 +TIMESTAMP = 1724832263 +SHA256 (python_lsp_server-1.12.0.tar.gz) = b6a336f128da03bd9bac1e61c3acca6e84242b8b31055a1ccf49d83df9dc053b +SIZE (python_lsp_server-1.12.0.tar.gz) = 114328 diff --git a/textproc/py-python-lsp-server/files/patch-MANIFEST.in b/textproc/py-python-lsp-server/files/patch-MANIFEST.in new file mode 100644 index 000000000000..e0a36ef5bdc9 --- /dev/null +++ b/textproc/py-python-lsp-server/files/patch-MANIFEST.in @@ -0,0 +1,10 @@ +--- MANIFEST.in.orig 2024-01-21 15:55:09 UTC ++++ MANIFEST.in +@@ -1,7 +1,5 @@ include README.md + include README.md +-include versioneer.py + include pylsp/_version.py + include LICENSE +-include ruff.toml + include .pylintrc + recursive-include test *.py diff --git a/textproc/py-python-lsp-server/files/patch-pyproject.toml b/textproc/py-python-lsp-server/files/patch-pyproject.toml index ee45b822c398..0796b66f8b96 100644 --- a/textproc/py-python-lsp-server/files/patch-pyproject.toml +++ b/textproc/py-python-lsp-server/files/patch-pyproject.toml @@ -1,52 +1,52 @@ ---- pyproject.toml.orig 2024-03-29 15:39:29 UTC +--- pyproject.toml.orig 2024-07-24 16:43:03 UTC +++ pyproject.toml @@ -27,29 +27,29 @@ all = [ [project.optional-dependencies] all = [ - "autopep8>=2.0.4,<2.1.0", -- "flake8>=7,<8", +- "flake8>=7.1,<8", - "mccabe>=0.7.0,<0.8.0", -- "pycodestyle>=2.11.0,<2.12.0", +- "pycodestyle>=2.12.0,<2.13.0", - "pydocstyle>=6.3.0,<6.4.0", - "pyflakes>=3.2.0,<3.3.0", - "pylint>=3.1,<4", - "rope>=1.11.0", - "yapf>=0.33.0", - "whatthepatch>=1.0.2,<2.0.0" + "autopep8>=2.0.4", -+ "flake8>=7", ++ "flake8>=7.1", + "mccabe>=0.7.0", -+ "pycodestyle>=2.11.0", ++ "pycodestyle>=2.12.0", + "pydocstyle>=6.3.0", + "pyflakes>=3.2.0", + "pylint>=3.1", + "rope>=1.7.0", + "yapf>=0.32.0", + "whatthepatch>=1.0.2" ] -autopep8 = ["autopep8>=2.0.4,<2.1.0"] --flake8 = ["flake8>=7,<8"] +-flake8 = ["flake8>=7.1,<8"] -mccabe = ["mccabe>=0.7.0,<0.8.0"] --pycodestyle = ["pycodestyle>=2.11.0,<2.12.0"] +-pycodestyle = ["pycodestyle>=2.12.0,<2.13.0"] -pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"] -pyflakes = ["pyflakes>=3.2.0,<3.3.0"] -pylint = ["pylint>=3.1,<4"] -rope = ["rope>=1.11.0"] -yapf = ["yapf>=0.33.0", "whatthepatch>=1.0.2,<2.0.0"] +autopep8 = ["autopep8>=2.0.4"] -+flake8 = ["flake8>=7"] ++flake8 = ["flake8>=7.1"] +mccabe = ["mccabe>=0.7.0"] -+pycodestyle = ["pycodestyle>=2.11.0"] ++pycodestyle = ["pycodestyle>=2.12.0"] +pydocstyle = ["pydocstyle>=6.3.0"] +pyflakes = ["pyflakes>=3.2.0"] +pylint = ["pylint>=3.1"] +rope = ["rope>=1.7.0"] +yapf = ["yapf>=0.32.0", "whatthepatch>=1.0.2"] websockets = ["websockets>=10.3"] test = [ - "pylint>=3.1,<4", + "pylint>=3.1", "pytest", "pytest-cov", "coverage",