From 1721742c1c0b24615766f7a013fa8148fed8b8c1 Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: May 01 2020 21:41:58 +0000 Subject: Intial import (#1826998) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8688dc2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-language-server-0.31.10.tar.gz diff --git a/python-language-server.spec b/python-language-server.spec new file mode 100644 index 0000000..bbdb62d --- /dev/null +++ b/python-language-server.spec @@ -0,0 +1,100 @@ +%global pypi_name python-language-server + +%global short_name language-server + +%global _description %{expand: +A Python implementation of the Language Server Protocol. +} + +Name: %{pypi_name} +Version: 0.31.10 +Release: 2%{?dist} +Summary: Python Language Server for the Language Server Protocol + +License: MIT +URL: https://github.com/palantir/python-language-server +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(autopep8) +BuildRequires: python3dist(configparser) +BuildRequires: python3dist(coverage) +BuildRequires: python3dist(flake8) +BuildRequires: python3dist(jedi) +BuildRequires: python3dist(matplotlib) +BuildRequires: python3dist(mccabe) +BuildRequires: python3dist(mock) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(pandas) +BuildRequires: python3dist(pluggy) +BuildRequires: python3dist(pycodestyle) +BuildRequires: python3dist(pydocstyle) >= 2.0.0 +BuildRequires: python3dist(pyflakes) >= 1.6.0 +BuildRequires: python3dist(pylint) +BuildRequires: python3dist(pyqt5) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) +BuildRequires: python3dist(python-jsonrpc-server) +BuildRequires: python3dist(rope) >= 0.10.5 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(ujson) +BuildRequires: python3-versioneer +BuildRequires: python3dist(yapf) + +%description %_description + +%package -n python3-%{short_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{short_name}} + +Requires: python3dist(jedi) +Requires: python3dist(python-jsonrpc-server) +Requires: python3dist(pluggy) +Requires: python3dist(ujson) + +%description -n python3-%{short_name} +%_description + +%prep +%autosetup -n %{pypi_name}-%{version} +# drop ujson version +# https://github.com/palantir/python-language-server/issues/744 +# https://github.com/palantir/python-jsonrpc-server/issues/36 +sed -i 's/ujson<=1.35;/ujson;/' setup.py + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +# disable incompatible tests +# https://github.com/palantir/python-jsonrpc-server/issues/33 +# https://github.com/palantir/python-jsonrpc-server/pull/37 +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k 'not ( test_missing_message or test_syntax_error_pylint_py )' + + +%files -n python3-%{short_name} +%license LICENSE +%doc README.rst +%{_bindir}/pyls +%{python3_sitelib}/pyls +%{python3_sitelib}/python_language_server-%{version}-py%{python3_version}.egg-info + +%changelog +* Mon Apr 27 2020 Mukundan Ragavan - 0.31.10-2 +- Enable tests +- Disable incompatible tests + +* Thu Apr 23 2020 Mukundan Ragavan - 0.31.10-1 +- Fix license field +- Update to 0.31.10 +- Fix requires list + +* Wed Apr 22 2020 Mukundan Ragavan - 0.31.9-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..be6c860 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-language-server-0.31.10.tar.gz) = 2f922fff1b88c197314816e5d749cd1d1148ce00ab3eeadbefe45a71fd1f521bce386be9494d882a4d1b001a9797a5b31e42c6a4637dd0343eba419b9fccc6e6