- Update to 2.0.0: - Add some example servers - Respect client's preferred encoding when possible - test: add end-to-end tests for the various formatting requests - build(deps): upgrade black to latest (24.3.0) - Add example server for textDocument/rename and textDocument/prepareRename - Update hover.py to use language server argument - build(deps-dev): bump idna from 3.6 to 3.7 - build(deps-dev): bump jinja2 from 3.1.3 to 3.1.4 - build(deps-dev): bump requests from 2.31.0 to 2.32.0 - Make the pygls-playground extension a workspace local extension - build(deps): bump idna from 3.6 to 3.7 in /docs - Add Document Links example server - docs: add Document and Workspace symbol example server - Provide more detail in exception - build(deps): bump certifi from 2023.11.17 to 2024.7.4 - build(deps): bump requests from 2.31.0 to 2.32.2 in /docs - build(deps): bump urllib3 from 2.1.0 to 2.2.2 - build(deps): bump jinja2 from 3.1.2 to 3.1.4 in /docs - build(deps-dev): bump zipp from 3.17.0 to 3.19.1 - Add example semantic tokens server - build(deps): bump setuptools from 69.0.2 to 70.0.0 in /docs - Update to latest lsprotocol v2024.0.0a2 - Generate server methods based on lsprotocol type definitions - chore: remove deprecated code - fix: use BinaryIO not TextIO in start_io() - Remove multiprocessing.pool.ThreadPool - fix: return None for non file: URIs - Add TCP support to pygls' LanguageClient - Add start_ws method to pygls' LanguageClient - chore: update to lsprotocol-2024.0.0b1 - docs: remove Strata server implementation - Move JsonRPCServer.start_io to high-level asyncio API - Migrate JsonRPCServer.start_tcp and JsonRPCServer.start_ws to high level asyncio APIs - Replace "transports" with "writers" - Ressurrect our pyodide support - fix: fallback JsonRpcException code for malformed server errors - Introduce support for generator feature handlers - Use issubclass when checking the client/server instance to inject - Fixes error when passing max_workers - Use type annotations when invoking @server.command(...) handlers - Update the hello world example to the v2.0 syntax - fix: workspace/executeCommand with async handlers - ci: start testing on Python 3.14 - chore: lsprotocol 2025.0.0rc1 - Type annotation improvments - Fix pyodide tests - chore: add devcontainer definition and Makefile - Typing tweaks - Make TextDocument.lines be a Sequence[str] rather than List[str] - chore: lsprotocol 2025.0.0 - build(deps): bump the pip group across 2 directories with 5 updates - ci: migrate from poetry to uv - Update Makefile to easily switch between Python versions - Fix UTF-8 position encoding - fix: 🐛 fix conversion of client_position into offset_at_position - docs: switch to furo theme - Update and re-organise documentation - fix: Handle a special case of BrokenPipeError exception - Change pythonPath to pythonCommand in the pygls-playground extension - fix: missing inline completion provider server capability - test: adjust tests for cattrs structuring sequences as tuples - build: v2.0.0 - Update dependencies - Add missing dependencies attrs, cattrs - Set required version dependency for lsprotocol OBS-URL: https://build.opensuse.org/request/show/1313176 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygls?expand=0&rev=12
71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pygls
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pygls
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: A pythonic generic language server
|
|
License: Apache-2.0
|
|
URL: https://github.com/openlawlibrary/pygls
|
|
Source: https://github.com/openlawlibrary/pygls/archive/refs/tags/v%{version}.tar.gz#/pygls-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry-core}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# For testing
|
|
BuildRequires: %{python_module lsprotocol = 2025.0.0}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest}
|
|
# Endif
|
|
Requires: python-attrs >= 24.3.0
|
|
Requires: python-cattrs >= 23.1.2
|
|
Requires: python-lsprotocol = 2025.0.0
|
|
Requires: python-websockets
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
pygls (pronounced like "pie glass") is a pythonic generic
|
|
implementation of the Language Server Protocol for use as a
|
|
foundation for writing your own Language Servers in just a few
|
|
lines of code.
|
|
|
|
%prep
|
|
%autosetup -p1 -n pygls-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/pygls
|
|
%{python_sitelib}/pygls-%{version}*-info
|
|
|
|
%changelog
|