Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pygls for openSUSE:Factory checked in at 2026-03-09 16:11:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygls (Old) and /work/SRC/openSUSE:Factory/.python-pygls.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygls" Mon Mar 9 16:11:34 2026 rev:6 rq:1337528 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygls/python-pygls.changes 2025-10-23 16:39:56.720718852 +0200 +++ /work/SRC/openSUSE:Factory/.python-pygls.new.8177/python-pygls.changes 2026-03-09 16:12:13.483116915 +0100 @@ -1,0 +2,13 @@ +Sun Mar 8 21:06:26 UTC 2026 - Dirk Müller <[email protected]> + +- update to 2.0.1: + * docs: drop pre-release banner + * docs: use correct lsprotocol version + * docs: fix broken link for pygls playground + * docs: describe arguments unpacking for server commands in v2 + * Add Aeon Programming Language to implementations list + * Fix spelling mistakes in v2 migration documentation + * fix: prevent exception handling for cancelled futures in + JsonRPCProtocol + +------------------------------------------------------------------- Old: ---- pygls-2.0.0.tar.gz New: ---- pygls-2.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygls.spec ++++++ --- /var/tmp/diff_new_pack.HlPCx5/_old 2026-03-09 16:12:14.135143801 +0100 +++ /var/tmp/diff_new_pack.HlPCx5/_new 2026-03-09 16:12:14.135143801 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pygls # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 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 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pygls -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: A pythonic generic language server License: Apache-2.0 ++++++ pygls-2.0.0.tar.gz -> pygls-2.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/CHANGELOG.md new/pygls-2.0.1/CHANGELOG.md --- old/pygls-2.0.0/CHANGELOG.md 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/CHANGELOG.md 2026-01-26 23:59:18.000000000 +0100 @@ -2,6 +2,58 @@ All notable changes to this project will be documented in this file. +## [2.0.0] - 2025-10-17 +More details: https://github.com/openlawlibrary/pygls/releases/tag/v2.0.0 + +### Bug Fixes + +- Handle a special case of BrokenPipeError exception ([#573](https://github.com/openlawlibrary/pygls/issues/573)) +- Missing inline completion provider server capability + +### Documentation + +- Switch to furo theme +- Add how-to guide on running a server +- Add reference on pygls' built in features +- Add (incomplete) guide on supporting notebooks +- Move guide on custom converters to the library +- Move guide on pygls-playground to the library +- Add (incomplete) guide on working with text docs +- Add how-to guide on getting the client's configuration +- Add reference on supported handler types +- Add how-to guide on custom error reporting +- Add (incomplete) guide on implementing diagnostics +- Add how-to guide on giving user feedback +- Add how-to guide on sending custom messages +- Add howto guide on accessing the server instance + +### Features + +- Change `pythonPath` to `pythonCommand` + +### Miscellaneous Tasks + +- Update CHANGELOG.md +- Update CONTRIBUTORS.md +- Remove unecessary dependencies from requirements.txt +- Add esbonio config +- Ensure poe uses uv +- Add local Makefile +- Bump node to v20 +- Npm audit fix +- Update cattrs to 25.3.0 in uv.lock +- Drop call for testing + +### Testing + +- Adjust tests for cattrs structuring sequences as tuples + +### Build + +- V2.0.0 + + + ## [2.0.0a6] - 2025-07-18 More details: https://github.com/openlawlibrary/pygls/releases/tag/v2.0.0a6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/CONTRIBUTORS.md new/pygls-2.0.1/CONTRIBUTORS.md --- old/pygls-2.0.0/CONTRIBUTORS.md 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/CONTRIBUTORS.md 2026-01-26 23:59:18.000000000 +0100 @@ -1,7 +1,6 @@ # Contributors (contributions) -* [alcarney](https://github.com/alcarney) (227) +* [alcarney](https://github.com/alcarney) (250) * [augb](https://github.com/augb) (35) -* [bollwyvl](https://github.com/bollwyvl) (1) * [brettcannon](https://github.com/brettcannon) (3) * [danixeee](https://github.com/danixeee) (321) * [deathaxe](https://github.com/deathaxe) (24) @@ -18,6 +17,7 @@ * [mattst88](https://github.com/mattst88) (1) * [Maxattax97](https://github.com/Maxattax97) (1) * [muffinmad](https://github.com/muffinmad) (2) +* [musicinmybrain](https://github.com/musicinmybrain) (2) * [noklam](https://github.com/noklam) (3) * [nthykier](https://github.com/nthykier) (2) * [oliversen](https://github.com/oliversen) (2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/Implementations.md new/pygls-2.0.1/Implementations.md --- old/pygls-2.0.0/Implementations.md 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/Implementations.md 2026-01-26 23:59:18.000000000 +0100 @@ -2,6 +2,7 @@ | Name | Maintainer | Repository (optional) | Notes | |--------------------------|-----------------------------------------------------------------------|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------| +| _Aeon Programming Language_ | [Alcides Fonseca](https://github.com/alcides) | [aeon](https://github.com/alcides/aeon) | A programming language with liquid types and program synthesis built-in. | | _Anakin Language Server_ | [Andrii Kolomoiets](https://github.com/muffinmad) | [anakin-language-server](https://github.com/muffinmad/anakin-language-server) | Yet another Jedi Python Language Server | | _Chapel Language Server_ | [Chapel Team](https://github.com/chapel-lang) | [chapel](https://github.com/chapel-lang/chapel/tree/main/tools/chpl-language-server) | [Chapel](https://chapel-lang.org/) language server | | _Cmake Language Server_ | [Regen100](https://github.com/regen100) | [cmake-language-server](https://github.com/regen100/cmake-language-server) | CMake LSP Implementation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/docs/source/conf.py new/pygls-2.0.1/docs/source/conf.py --- old/pygls-2.0.0/docs/source/conf.py 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/docs/source/conf.py 2026-01-26 23:59:18.000000000 +0100 @@ -111,10 +111,6 @@ "source_repository": "https://github.com/openlawlibrary/pygls/", "source_branch": "main", "source_directory": "docs/source", - "announcement": ( - "This is the documentation for the in-development v2.0 release of pygls. " - '<a href="/en/stable">Click here</a> to view the documentation for the current stable version' - ), } # Add any paths that contain custom static files (such as style sheets) here, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/docs/source/pygls/howto/migrate-to-v2.rst new/pygls-2.0.1/docs/source/pygls/howto/migrate-to-v2.rst --- old/pygls-2.0.0/docs/source/pygls/howto/migrate-to-v2.rst 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/docs/source/pygls/howto/migrate-to-v2.rst 2026-01-26 23:59:18.000000000 +0100 @@ -1,7 +1,7 @@ How To Migrate to v2.0 ====================== -The highlight of the *pygls* v2 release is upgrading ``lsprotocol`` to ``v2024.x`` bringing with it support for the proposed LSP v3.18 types and methods. +The highlight of the *pygls* v2 release is upgrading ``lsprotocol`` to ``v2025.x`` bringing with it support for the proposed LSP v3.18 types and methods. The new version includes standardised object names (so no more classes like ``NotebookDocumentSyncRegistrationOptionsNotebookSelectorType2CellsType``!) With the major version bump, this release also takes the opportunity to clean up the codebase by removing deprecated code and renaming a few things to try and improve overall consistency. @@ -51,10 +51,10 @@ ``pygls.workspace.range_from_utf16`` ``TextDocument.position_codec.range_from_client_units`` or ``Workspace.position_codec.range_from_client_units`` ``pygls.workspace.range_to_utf16`` ``TextDocument.position_codec.range_to_client_units`` or ``Workspace.position_codec.range_to_client_units`` ``Workspace.documents`` ``Workspace.text_documents`` -``Worspace.get_document`` ``Workspace.get_text_document`` -``Worspace.put_document`` ``Workspace.put_text_document`` -``Worspace.remove_document`` ``Workspace.remove_text_document`` -``Worspace.update_document`` ``Workspace.update_text_document`` +``Workspace.get_document`` ``Workspace.get_text_document`` +``Workspace.put_document`` ``Workspace.put_text_document`` +``Workspace.remove_document`` ``Workspace.remove_text_document`` +``Workspace.update_document`` ``Workspace.update_text_document`` ================================================== ============== Sending Custom Notifications @@ -75,12 +75,14 @@ See :ref:`howto-send-custom-messages` for more details -Server commands can now use type annotations --------------------------------------------- +Server commands are now called with individual arguments and can use type annotations +------------------------------------------------------------------------------------- + +Instead of calling sever commands with a single arguments of type list containing all the command arguments, *pygls v2* now unpacks the arguments and passes them as individual parameters to the command method. *pygls* will now inspect a function's type annotations when handling ``workspace/executeCommand`` requests, automatically converting JSON values to ``attrs`` class instances, or responding with an error if appropriate. -It is **not mandatory** to start using type annotations in your command definitions, but you may notice a difference in how *pygls* calls your server command methods. +It is **not mandatory** to start using type annotations in your command definitions, but you will notice a difference in how *pygls* calls your server command methods if they take arguments. **Before** @@ -88,7 +90,7 @@ @server.command("codeLens.evaluateSum") def evaluate_sum(ls: LanguageServer, args): - logging.info("arguments: %s", args) + logging.info("arguments: %s", args) # here args is a list of dict arguments = args[0] document = ls.workspace.get_text_document(arguments["uri"]) @@ -142,7 +144,7 @@ @server.command("codeLens.evaluateSum") def evaluate_sum(ls: LanguageServer, args: EvaluateSumArgs): - logging.info("arguments: %s", args) + logging.info("arguments: %s", args) # here args is an instance of EvaluateSumArgs document = ls.workspace.get_text_document(args.uri) line = document.lines[args.line] @@ -310,10 +312,10 @@ Renamed LSP Types ----------------- -As part of the update to ``lsprotocol v2024``, the following types have been renamed. +As part of the update to ``lsprotocol v2025``, the following types have been renamed. =================================================================================== ============== -**lsprotocol 2023.x** **lsprotocol 2024.x** +**lsprotocol 2023.x** **lsprotocol 2025.x** =================================================================================== ============== ``CancelRequestNotification`` ``CancelNotification`` ``ClientRegisterCapabilityRequest`` ``RegistrationRequest`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/examples/servers/README.md new/pygls-2.0.1/examples/servers/README.md --- old/pygls-2.0.0/examples/servers/README.md 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/examples/servers/README.md 2026-01-26 23:59:18.000000000 +0100 @@ -1,6 +1,6 @@ # Example Servers -See the [docs](https://pygls.readthedocs.io/en/latest/servers/howto/use-the-pygls-playground.html#howto-use-pygls-playground) for instructions on how to run these in VSCode. +See the [docs](https://pygls.readthedocs.io/en/latest/pygls/howto/use-the-pygls-playground.html#howto-use-pygls-playground) for instructions on how to run these in VSCode. | Filename | Works With | Description | |-|-|-| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/pygls/protocol/json_rpc.py new/pygls-2.0.1/pygls/protocol/json_rpc.py --- old/pygls-2.0.0/pygls/protocol/json_rpc.py 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/pygls/protocol/json_rpc.py 2026-01-26 23:59:18.000000000 +0100 @@ -321,7 +321,7 @@ Used when handling notification messages """ - if (exc := future.exception()) is not None: + if not future.cancelled() and (exc := future.exception()) is not None: try: raise exc except Exception: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygls-2.0.0/pyproject.toml new/pygls-2.0.1/pyproject.toml --- old/pygls-2.0.0/pyproject.toml 2025-10-17 21:14:56.000000000 +0200 +++ new/pygls-2.0.1/pyproject.toml 2026-01-26 23:59:18.000000000 +0100 @@ -1,6 +1,6 @@ [project] name = "pygls" -version = "2.0.0" +version = "2.0.1" description = "A pythonic generic language server (pronounced like 'pie glass')" repository = "https://github.com/openlawlibrary/pygls" authors = [
