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.
- {python_fragments-0.1 → python_fragments-0.3}/PKG-INFO +3 -3
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/server.py +3 -3
- {python_fragments-0.1 → python_fragments-0.3}/pyproject.toml +3 -3
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/PKG-INFO +3 -3
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/requires.txt +1 -1
- {python_fragments-0.1 → python_fragments-0.3}/README.md +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/__init__.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/ast_nodes.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/cli.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/grammar.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/html/__init__.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/html/elements.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/loader.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/__init__.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/completion.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/definition.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/file_state.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/hover.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/lifecycle.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/pyright.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/rename.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/lsp/semantic_tokens.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/source.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/fragments/transpiler.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/SOURCES.txt +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/dependency_links.txt +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/entry_points.txt +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/top_level.txt +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/setup.cfg +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/tests/test_grammar.py +0 -0
- {python_fragments-0.1 → python_fragments-0.3}/tests/test_pyright.py +0 -0
- {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.
|
|
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>=
|
|
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.
|
|
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.
|
|
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.
|
|
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>=
|
|
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.
|
|
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>=
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fragments-0.1 → python_fragments-0.3}/python_fragments.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|