Subject: CVS commit: pkgsrc/lang/py-pygls
From: Adam Ciarcinski
Date: 2023-10-04 23:27:48
Message id: 20231004212748.DD410FBDB@cvs.NetBSD.org

Log Message:
py-pygls: updated to 1.1.0

1.1.0

Bug Fixes

Fix broken link and outdated comment
Correctly cast from UTF16 positions
Ensure server commands can be executed
Mypy lints
Error code of JsonRpcInternalError
Only show code action when there's no sum
Don't include trailing whitespace in code action title
'bool' object has no attribute 'resolve_provider'
Computation of formatting and diagnostic provider capabilities

CI

Migrate to Poetry and modernise
Linter for conventional commits
Autogenerate changelog with git-cliff
Automate CONTRIBUTORS.md
Retry Pyodide tests
Test against Python 3.12
Use matrix.python-version in cache key
Update json-extension pipeline
Pin poetry to 1.5.1
Do not install chromium/chromedriver
Enable coverage reporting
Run all lints even when some fail
Increase Pyodide CI retries to 6

Documentation

Use autodoc to document client methods
Update docstrings
Change specification for commit messages
Typo in vscode-playground README.md
Add api docs for servers, protocol and workspace
Align docstring formatting
Handle methods starting with $/
Update links and code snippets
Rename advanced usage to user guide
Instructions for using plain text files with vscode-playground

Features

Add document diagnostic capability
Add workspace symbol resolve
Add workspace diagnostic support
Adds inline value support
Adds type hierarchy request support
Add await syntax support for sending edit request to client
Allow servers to provide NotebookDocumentSyncOptions
Initial support for notebook document syncronisation
Add notebook support to example inlay_hints.py server
Accept PositionEncoding client capability
Support UTF32 ans UTF8 position encoding

Miscellaneous Tasks

Update autogenerated Pygls client
Introduce black formatting
Add .git-blame-ignore-revs file
Delete fountain-vscode-extension
Update README.md
Bump lsprotocol version
Fix deprecation warning, set chrome path
Disable body-max-line-length check
Add .readthedocs.yaml
Strict types in uris.py and workspace.py
Move workspace/doc/position into own files
Fix mypy types
Maintain Workspace backwards compat
Fix use of deprecated methods in tests/test_language_server.py

Refactor

Move example json-server to examples/servers
Rename json-vscode-extension/ -> vscode-playground
Simplify end-to-end test client fixture definition
Rename Client -> JsonRPCClient
Rename LanguageClient -> BaseLanguageClient
Rename <verb>_document to <verb>_text_document
Expose workspace via a property
Server Position class
Rename server Position to PositionCodec, instantiate it in Workspace
Reference types via types module
Make default argument mandatory, add type annotations

Testing

Test that the client provided token is used
Remove a useless sleep
Test cases of server initiated progress
Base Pyodide wheel deps off poetry.lock

Build

Bump semver in /examples/fountain-vscode-extension
Bump semver in /examples/json-vscode-extension
Bump word-wrap in /examples/json-vscode-extension
Lock min Python version to 3.7.9
Cache specific Python minor version
Bump lsprotocol to 2023.0.0b1
Release v1.1.0

Json-extension

Support cancellation in progress example

Progress

Support work done progress cancellation from client

Server

Add a type annotation to help completions in editor

Added

Add LanguageClient with LSP methods autogenerated from type annotations in lsprotocol
Add base JSON-RPC Client with support for running servers in a subprocess and \ 
communicating over stdio.
Support work done progress cancel
Add support for textDocument/inlayHint and inlayHint/resolve requests

Fixed

pygls no longer overrides the event loop for the current thread when given an \ 
explicit loop to use.
Fixed MethodTypeNotRegisteredError when registering a TEXT_DOCUMENT_DID_SAVE \ 
feature with options.
Fixed detection of LanguageServer type annotations when using string-based \ 
annotations.

Files:
RevisionActionfile
1.11modifypkgsrc/lang/py-pygls/Makefile
1.6modifypkgsrc/lang/py-pygls/PLIST
1.12modifypkgsrc/lang/py-pygls/distinfo