forked from pool/python-python-lsp-server
		
	Accepting request 944960 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/944960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=11
This commit is contained in:
		| @@ -1,3 +1,9 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Sat Jan  8 21:37:57 UTC 2022 - Benjamin Greiner <code@bnavigator.de> | ||||
|  | ||||
| - Provide pylint in correct flavor for test | ||||
| - Cleanup python36 flavor conditionals | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Sun Dec 19 18:29:50 UTC 2021 - Ben Greiner <code@bnavigator.de> | ||||
|  | ||||
|   | ||||
| @@ -33,7 +33,10 @@ BuildRequires:  %{python_module PyQt5} | ||||
| BuildRequires:  %{python_module autopep8 >= 1.6.0 with %python-autopep8 < 1.7.0} | ||||
| BuildRequires:  %{python_module flake8 >= 4.0.0 with %python-flake8 < 4.1.0} | ||||
| BuildRequires:  %{python_module flaky} | ||||
| BuildRequires:  %{python_module matplotlib} | ||||
| BuildRequires:  %{python_module mccabe >= 0.6.0} | ||||
| BuildRequires:  %{python_module numpy} | ||||
| BuildRequires:  %{python_module pandas} | ||||
| BuildRequires:  %{python_module pluggy} | ||||
| BuildRequires:  %{python_module pycodestyle >= 2.8.0 with %python-pycodestyle < 2.9.0} | ||||
| BuildRequires:  %{python_module pydocstyle >= 2.0.0} | ||||
| @@ -44,9 +47,7 @@ BuildRequires:  %{python_module python-lsp-jsonrpc >= 1.0.0} | ||||
| BuildRequires:  %{python_module rope >= 0.10.5} | ||||
| BuildRequires:  %{python_module ujson >= 3.0.0} | ||||
| BuildRequires:  %{python_module yapf} | ||||
| BuildRequires:  %{python_module matplotlib  if (%python-base without python36-base)} | ||||
| BuildRequires:  %{python_module numpy if (%python-base without python36-base)} | ||||
| BuildRequires:  %{python_module pandas  if (%python-base without python36-base)} | ||||
|  | ||||
| # /SECTION | ||||
| BuildRequires:  fdupes | ||||
| Requires:       python-jedi >= 0.17.2 | ||||
| @@ -101,14 +102,17 @@ will be enabled: | ||||
| %python_expand %fdupes %{buildroot}%{$python_sitelib} | ||||
|  | ||||
| %check | ||||
| %{python_expand # provide pylint command in correct flavor | ||||
| mkdir -p build/testbin | ||||
| ln -s %{_bindir}/pylint-%{$python_bin_suffix} build/testbin/pylint | ||||
| } | ||||
| export PATH="$PWD/build/testbin:$PATH" | ||||
| # Remove pytest addopts | ||||
| rm setup.cfg | ||||
| %if 0%{?sle_version} >= 150000 && 0%{?is_opensuse} | ||||
|   # Test failure on Leap 15 due to mock hiccup | ||||
|   donttest+=" or test_flake8_config_param or test_flake8_executable_param" | ||||
| %endif | ||||
| # don't test numpy on python36: NEP 29 | ||||
| python36_donttest=" or test_numpy or test_pandas or test_matplotlib" | ||||
| %pytest -ra -k "not (dummy_k_expr_start ${donttest} ${$python_donttest})" -vv | ||||
|  | ||||
| %post | ||||
|   | ||||
		Reference in New Issue
	
	Block a user