diff options
| author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-11-17 12:12:40 +0100 |
|---|---|---|
| committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-11-17 12:14:15 +0100 |
| commit | 8189d84b7b5e440e573bc0f879ae70e8841178be (patch) | |
| tree | 029fbd0820c503fa0079d328cd7c05f814128e27 /dev-python/python-lsp-server | |
| parent | b6a9865b116875540ed1f5cc53cc8550fea0f383 (diff) | |
| download | gentoo-8189d84b7b5e440e573bc0f879ae70e8841178be.tar.gz gentoo-8189d84b7b5e440e573bc0f879ae70e8841178be.tar.bz2 gentoo-8189d84b7b5e440e573bc0f879ae70e8841178be.zip | |
dev-python/python-lsp-server: enable pypy3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/python-lsp-server')
| -rw-r--r-- | dev-python/python-lsp-server/python-lsp-server-1.9.0.ebuild | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/dev-python/python-lsp-server/python-lsp-server-1.9.0.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.9.0.ebuild index a3670dc4e136..19ca03fd0ea5 100644 --- a/dev-python/python-lsp-server/python-lsp-server-1.9.0.ebuild +++ b/dev-python/python-lsp-server/python-lsp-server-1.9.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 optfeature pypi @@ -31,10 +31,12 @@ RDEPEND=" >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] - >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] - >=dev-python/rope-1.2.0[${PYTHON_USEDEP}] >=dev-python/yapf-0.33.0[${PYTHON_USEDEP}] - >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] + >=dev-python/rope-1.2.0[${PYTHON_USEDEP}] + >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + ' 'python*') ) " BDEPEND=" @@ -42,17 +44,19 @@ BDEPEND=" >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] dev-python/flaky[${PYTHON_USEDEP}] >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] - >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] - dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}] - >=dev-python/rope-1.2.0[${PYTHON_USEDEP}] >=dev-python/yapf-0.33.0[${PYTHON_USEDEP}] - >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] + dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}] + >=dev-python/rope-1.2.0[${PYTHON_USEDEP}] + >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + ' 'python*') ) " @@ -77,6 +81,18 @@ python_test() { test/plugins/test_pydocstyle_lint.py ) + if [[ ${EPYTHON} == pypy3 ]] then + # Not all plugins are available for pypy3 + EPYTEST_IGNORE+=( + test/plugins/test_autoimport.py + test/plugins/test_completion.py + test/plugins/test_pylint_lint.py + test/plugins/test_rope_rename.py + # whatthepatch required for yapf + test/plugins/test_yapf_format.py + ) + fi + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest } |
