python-fragments 0.1__tar.gz → 0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {python_fragments-0.1 → python_fragments-0.3}/PKG-INFO +3 -3
  2. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/server.py +3 -3
  3. {python_fragments-0.1 → python_fragments-0.3}/pyproject.toml +3 -3
  4. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/PKG-INFO +3 -3
  5. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/requires.txt +1 -1
  6. {python_fragments-0.1 → python_fragments-0.3}/README.md +0 -0
  7. {python_fragments-0.1 → python_fragments-0.3}/fragments/__init__.py +0 -0
  8. {python_fragments-0.1 → python_fragments-0.3}/fragments/ast_nodes.py +0 -0
  9. {python_fragments-0.1 → python_fragments-0.3}/fragments/cli.py +0 -0
  10. {python_fragments-0.1 → python_fragments-0.3}/fragments/grammar.py +0 -0
  11. {python_fragments-0.1 → python_fragments-0.3}/fragments/html/__init__.py +0 -0
  12. {python_fragments-0.1 → python_fragments-0.3}/fragments/html/elements.py +0 -0
  13. {python_fragments-0.1 → python_fragments-0.3}/fragments/loader.py +0 -0
  14. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/__init__.py +0 -0
  15. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/completion.py +0 -0
  16. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/definition.py +0 -0
  17. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/file_state.py +0 -0
  18. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/hover.py +0 -0
  19. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/lifecycle.py +0 -0
  20. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/pyright.py +0 -0
  21. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/rename.py +0 -0
  22. {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/semantic_tokens.py +0 -0
  23. {python_fragments-0.1 → python_fragments-0.3}/fragments/source.py +0 -0
  24. {python_fragments-0.1 → python_fragments-0.3}/fragments/transpiler.py +0 -0
  25. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/SOURCES.txt +0 -0
  26. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/dependency_links.txt +0 -0
  27. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/entry_points.txt +0 -0
  28. {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/top_level.txt +0 -0
  29. {python_fragments-0.1 → python_fragments-0.3}/setup.cfg +0 -0
  30. {python_fragments-0.1 → python_fragments-0.3}/tests/test_grammar.py +0 -0
  31. {python_fragments-0.1 → python_fragments-0.3}/tests/test_pyright.py +0 -0
  32. {python_fragments-0.1 → python_fragments-0.3}/tests/test_source_map.py +0 -0
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fragments
3
- Version: 0.1
4
- Summary: HTML template rendering in Python
3
+ Version: 0.3
4
+ Summary: Modern HTML template rendering in Python
5
5
  Author-email: The Running Algorithm <services@therunningalgorithm.info>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.12
8
8
  Description-Content-Type: text/markdown
9
9
  Provides-Extra: lsp
10
10
  Requires-Dist: basedpyright>=1.39.0; extra == "lsp"
11
- Requires-Dist: pygls>=1.3.0; extra == "lsp"
11
+ Requires-Dist: pygls>=2.0.0; extra == "lsp"
12
12
  Provides-Extra: dev
13
13
  Requires-Dist: pytest>=8.4.1; extra == "dev"
14
14
 
@@ -6,7 +6,7 @@ from typing import Any
6
6
 
7
7
  from lsprotocol import types
8
8
  from lsprotocol.converters import get_converter
9
- from pygls.server import LanguageServer
9
+ from pygls.lsp.server import LanguageServer
10
10
 
11
11
  from fragments import grammar
12
12
  from fragments.ast_nodes import ASTFragment
@@ -40,7 +40,7 @@ class FragmentsServer(LanguageServer):
40
40
  async def _on_pyright_request(self, message: dict[str, Any]) -> object:
41
41
  if message["method"] == "workspace/configuration":
42
42
  items = message["params"]["items"]
43
- editor_configs = await self.get_configuration_async(
43
+ editor_configs = await self.workspace_configuration_async(
44
44
  types.ConfigurationParams(items=[types.ConfigurationItem(scope_uri=item.get("scopeUri"), section=item.get("section", "")) for item in items])
45
45
  )
46
46
  result: list[dict[str, object] | None] = []
@@ -79,7 +79,7 @@ class FragmentsServer(LanguageServer):
79
79
  parse_error = self._parse_errors.get(uri)
80
80
  if parse_error is not None:
81
81
  diagnostics.append(parse_error)
82
- self.publish_diagnostics(uri, diagnostics)
82
+ self.text_document_publish_diagnostics(types.PublishDiagnosticsParams(uri=uri, diagnostics=diagnostics))
83
83
 
84
84
 
85
85
  server = FragmentsServer()
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-fragments"
7
- version = "0.1"
8
- description = "HTML template rendering in Python"
7
+ version = "0.3"
8
+ description = "Modern HTML template rendering in Python"
9
9
  authors = [{ name = "The Running Algorithm", email = "services@therunningalgorithm.info" }]
10
10
  readme = "README.md"
11
11
  license = { text = "Proprietary" }
@@ -15,7 +15,7 @@ dependencies = []
15
15
  [project.optional-dependencies]
16
16
  lsp = [
17
17
  "basedpyright>=1.39.0",
18
- "pygls>=1.3.0",
18
+ "pygls>=2.0.0",
19
19
  ]
20
20
  dev = [
21
21
  "pytest>=8.4.1",
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fragments
3
- Version: 0.1
4
- Summary: HTML template rendering in Python
3
+ Version: 0.3
4
+ Summary: Modern HTML template rendering in Python
5
5
  Author-email: The Running Algorithm <services@therunningalgorithm.info>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.12
8
8
  Description-Content-Type: text/markdown
9
9
  Provides-Extra: lsp
10
10
  Requires-Dist: basedpyright>=1.39.0; extra == "lsp"
11
- Requires-Dist: pygls>=1.3.0; extra == "lsp"
11
+ Requires-Dist: pygls>=2.0.0; extra == "lsp"
12
12
  Provides-Extra: dev
13
13
  Requires-Dist: pytest>=8.4.1; extra == "dev"
14
14
 
@@ -4,4 +4,4 @@ pytest>=8.4.1
4
4
 
5
5
  [lsp]
6
6
  basedpyright>=1.39.0
7
- pygls>=1.3.0
7
+ pygls>=2.0.0
File without changes
File without changes