Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-lsprotocol for openSUSE:Factory checked in at 2023-12-28 23:01:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-lsprotocol (Old) and /work/SRC/openSUSE:Factory/.python-lsprotocol.new.28375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lsprotocol" Thu Dec 28 23:01:39 2023 rev:2 rq:1135280 version:2023.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-lsprotocol/python-lsprotocol.changes 2023-11-06 21:14:54.388651969 +0100 +++ /work/SRC/openSUSE:Factory/.python-lsprotocol.new.28375/python-lsprotocol.changes 2023-12-28 23:03:17.550453413 +0100 @@ -1,0 +2,7 @@ +Wed Dec 27 10:52:56 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 2023.0.0: + * Update to latest LSP spec + * Update package classifiers + +------------------------------------------------------------------- Old: ---- lsprotocol-2023.0.0b1.tar.gz New: ---- lsprotocol-2023.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-lsprotocol.spec ++++++ --- /var/tmp/diff_new_pack.uBSNc9/_old 2023-12-28 23:03:18.782498441 +0100 +++ /var/tmp/diff_new_pack.uBSNc9/_new 2023-12-28 23:03:18.786498587 +0100 @@ -17,7 +17,7 @@ Name: python-lsprotocol -Version: 2023.0.0b1 +Version: 2023.0.0 Release: 0 Summary: Python implementation of the Language Server Protocol License: MIT ++++++ lsprotocol-2023.0.0b1.tar.gz -> lsprotocol-2023.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lsprotocol-2023.0.0b1/PKG-INFO new/lsprotocol-2023.0.0/PKG-INFO --- old/lsprotocol-2023.0.0b1/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/lsprotocol-2023.0.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +1,20 @@ Metadata-Version: 2.1 Name: lsprotocol -Version: 2023.0.0b1 +Version: 2023.0.0 Summary: Python implementation of the Language Server Protocol. Author-email: Microsoft Corporation <lsprotocol-h...@microsoft.com> Maintainer-email: Brett Cannon <br...@python.org>, Karthik Nadig <kana...@microsoft.com> Requires-Python: >=3.7 Description-Content-Type: text/markdown -Classifier: Development Status :: 3 - Alpha +Classifier: Development Status :: 5 - Production/Stable Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Requires-Dist: attrs>=21.3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lsprotocol-2023.0.0b1/lsprotocol/_hooks.py new/lsprotocol-2023.0.0/lsprotocol/_hooks.py --- old/lsprotocol-2023.0.0b1/lsprotocol/_hooks.py 2023-09-18 21:03:48.332230000 +0200 +++ new/lsprotocol-2023.0.0/lsprotocol/_hooks.py 2023-11-16 19:22:52.418139200 +0100 @@ -1214,7 +1214,7 @@ rename=_to_camel_case(a.name), omit_if_default=_omit(cls, a.name), ) - for a in attrs.fields(cls) + for a in attrs.fields(cls) # type: ignore } return cattrs.gen.make_dict_unstructure_fn(cls, converter, **attributes) @@ -1224,7 +1224,7 @@ rename=_to_camel_case(a.name), omit_if_default=_omit(cls, a.name), ) - for a in attrs.fields(cls) + for a in attrs.fields(cls) # type: ignore } return cattrs.gen.make_dict_structure_fn(cls, converter, **attributes) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lsprotocol-2023.0.0b1/lsprotocol/types.py new/lsprotocol-2023.0.0/lsprotocol/types.py --- old/lsprotocol-2023.0.0b1/lsprotocol/types.py 2023-09-18 21:03:48.336230300 +0200 +++ new/lsprotocol-2023.0.0/lsprotocol/types.py 2023-11-16 19:22:52.422139200 +0100 @@ -7056,6 +7056,16 @@ @since 3.17.0.""" # Since: 3.17.0. + folding_range: Optional["FoldingRangeWorkspaceClientCapabilities"] = attrs.field( + default=None + ) + """Capabilities specific to the folding range requests scoped to the workspace. + + @since 3.18.0 + @proposed""" + # Since: 3.18.0 + # Proposed + @attrs.define class TextDocumentClientCapabilities: @@ -7692,6 +7702,34 @@ @attrs.define +class FoldingRangeWorkspaceClientCapabilities: + """Client workspace capabilities specific to folding ranges + + @since 3.18.0 + @proposed""" + + # Since: 3.18.0 + # Proposed + + refresh_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether the client implementation supports a refresh request sent from the + server to the client. + + Note that this event is global and will force the client to refresh all + folding ranges currently shown. It should be used with absolute care and is + useful for situation where a server for example detects a project wide + change that requires such a calculation. + + @since 3.18.0 + @proposed""" + # Since: 3.18.0 + # Proposed + + +@attrs.define class TextDocumentSyncClientCapabilities: dynamic_registration: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -9041,6 +9079,27 @@ @attrs.define +class WorkspaceFoldingRangeRefreshRequest: + """@since 3.18.0 + @proposed""" + + id: Union[int, str] = attrs.field() + """The request id.""" + params: Optional[None] = attrs.field(default=None) + method: str = "workspace/foldingRange/refresh" + """The method to be invoked.""" + jsonrpc: str = attrs.field(default="2.0") + + +@attrs.define +class WorkspaceFoldingRangeRefreshResponse: + id: Optional[Union[int, str]] = attrs.field() + """The request id.""" + result: None = attrs.field(default=None) + jsonrpc: str = attrs.field(default="2.0") + + +@attrs.define class TextDocumentDeclarationRequest: """A request to resolve the type definition locations of a symbol at a given text document position. The request's parameter is of type {@link TextDocumentPositionParams} @@ -10814,6 +10873,7 @@ WORKSPACE_DID_DELETE_FILES = "workspace/didDeleteFiles" WORKSPACE_DID_RENAME_FILES = "workspace/didRenameFiles" WORKSPACE_EXECUTE_COMMAND = "workspace/executeCommand" +WORKSPACE_FOLDING_RANGE_REFRESH = "workspace/foldingRange/refresh" WORKSPACE_INLAY_HINT_REFRESH = "workspace/inlayHint/refresh" WORKSPACE_INLINE_VALUE_REFRESH = "workspace/inlineValue/refresh" WORKSPACE_SEMANTIC_TOKENS_REFRESH = "workspace/semanticTokens/refresh" @@ -11158,6 +11218,12 @@ ExecuteCommandParams, ExecuteCommandRegistrationOptions, ), + WORKSPACE_FOLDING_RANGE_REFRESH: ( + WorkspaceFoldingRangeRefreshRequest, + WorkspaceFoldingRangeRefreshResponse, + None, + None, + ), WORKSPACE_INLAY_HINT_REFRESH: ( WorkspaceInlayHintRefreshRequest, WorkspaceInlayHintRefreshResponse, @@ -11383,6 +11449,7 @@ WorkspaceDiagnosticRefreshRequest, WorkspaceDiagnosticRequest, WorkspaceExecuteCommandRequest, + WorkspaceFoldingRangeRefreshRequest, WorkspaceInlayHintRefreshRequest, WorkspaceInlineValueRefreshRequest, WorkspaceSemanticTokensRefreshRequest, @@ -11451,6 +11518,7 @@ WorkspaceDiagnosticRefreshResponse, WorkspaceDiagnosticResponse, WorkspaceExecuteCommandResponse, + WorkspaceFoldingRangeRefreshResponse, WorkspaceInlayHintRefreshResponse, WorkspaceInlineValueRefreshResponse, WorkspaceSemanticTokensRefreshResponse, @@ -11688,6 +11756,8 @@ WorkspaceExecuteCommandRequest, WorkspaceExecuteCommandResponse, WorkspaceFoldersInitializeParams, + WorkspaceFoldingRangeRefreshRequest, + WorkspaceFoldingRangeRefreshResponse, WorkspaceFullDocumentDiagnosticReport, WorkspaceInlayHintRefreshRequest, WorkspaceInlayHintRefreshResponse, @@ -12050,6 +12120,10 @@ "WorkspaceExecuteCommandResponse.jsonrpc", "WorkspaceExecuteCommandResponse.result", "WorkspaceFoldersInitializeParams.workspace_folders", + "WorkspaceFoldingRangeRefreshRequest.jsonrpc", + "WorkspaceFoldingRangeRefreshRequest.method", + "WorkspaceFoldingRangeRefreshResponse.jsonrpc", + "WorkspaceFoldingRangeRefreshResponse.result", "WorkspaceFullDocumentDiagnosticReport.kind", "WorkspaceFullDocumentDiagnosticReport.version", "WorkspaceInlayHintRefreshRequest.jsonrpc", @@ -12306,6 +12380,7 @@ "FoldingRangeOptions": FoldingRangeOptions, "FoldingRangeParams": FoldingRangeParams, "FoldingRangeRegistrationOptions": FoldingRangeRegistrationOptions, + "FoldingRangeWorkspaceClientCapabilities": FoldingRangeWorkspaceClientCapabilities, "FormattingOptions": FormattingOptions, "FullDocumentDiagnosticReport": FullDocumentDiagnosticReport, "GeneralClientCapabilities": GeneralClientCapabilities, @@ -12685,6 +12760,8 @@ "WorkspaceFoldersChangeEvent": WorkspaceFoldersChangeEvent, "WorkspaceFoldersInitializeParams": WorkspaceFoldersInitializeParams, "WorkspaceFoldersServerCapabilities": WorkspaceFoldersServerCapabilities, + "WorkspaceFoldingRangeRefreshRequest": WorkspaceFoldingRangeRefreshRequest, + "WorkspaceFoldingRangeRefreshResponse": WorkspaceFoldingRangeRefreshResponse, "WorkspaceFullDocumentDiagnosticReport": WorkspaceFullDocumentDiagnosticReport, "WorkspaceInlayHintRefreshRequest": WorkspaceInlayHintRefreshRequest, "WorkspaceInlayHintRefreshResponse": WorkspaceInlayHintRefreshResponse, @@ -12776,6 +12853,7 @@ WORKSPACE_DIAGNOSTIC: "clientToServer", WORKSPACE_DIAGNOSTIC_REFRESH: "serverToClient", WORKSPACE_EXECUTE_COMMAND: "clientToServer", + WORKSPACE_FOLDING_RANGE_REFRESH: "serverToClient", WORKSPACE_INLAY_HINT_REFRESH: "serverToClient", WORKSPACE_INLINE_VALUE_REFRESH: "serverToClient", WORKSPACE_SEMANTIC_TOKENS_REFRESH: "serverToClient", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lsprotocol-2023.0.0b1/pyproject.toml new/lsprotocol-2023.0.0/pyproject.toml --- old/lsprotocol-2023.0.0b1/pyproject.toml 2023-09-18 21:03:48.336230300 +0200 +++ new/lsprotocol-2023.0.0/pyproject.toml 2023-11-16 19:22:52.422139200 +0100 @@ -5,7 +5,7 @@ [project] name = "lsprotocol" description = 'Python implementation of the Language Server Protocol.' -version = "2023.0.0b1" +version = "2023.0.0" authors = [ { name = "Microsoft Corporation", email = "lsprotocol-h...@microsoft.com" }, ] @@ -17,13 +17,15 @@ { name = "Karthik Nadig", email = "kana...@microsoft.com" }, ] classifiers = [ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ]