robotcode-robot 0.78.4__tar.gz → 0.79.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/PKG-INFO +2 -2
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/pyproject.toml +1 -1
- robotcode_robot-0.79.0/src/robotcode/robot/__version__.py +1 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/imports_manager.py +7 -7
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/library_doc.py +6 -5
- robotcode_robot-0.78.4/src/robotcode/robot/__version__.py +0 -1
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/.gitignore +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/LICENSE.txt +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/README.md +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/__init__.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/config/__init__.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/config/loader.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/config/model.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/config/utils.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/__init__.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/entities.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/errors.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/namespace.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/namespace_analyzer.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/py.typed +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/__init__.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/ast.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/markdownformatter.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/match.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/robot_path.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/stubs.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/variables.py +0 -0
- {robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/visitor.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.79.0
|
4
4
|
Summary: Support classes for RobotCode for handling Robot Framework projects.
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
6
6
|
Project-URL: Donate, https://github.com/sponsors/d-biehl
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
27
27
|
Requires-Python: >=3.8
|
28
28
|
Requires-Dist: platformdirs<4.2.0,>=3.2.0
|
29
|
-
Requires-Dist: robotcode-core==0.
|
29
|
+
Requires-Dist: robotcode-core==0.79.0
|
30
30
|
Requires-Dist: robotframework>=4.1.0
|
31
31
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
32
32
|
Description-Content-Type: text/markdown
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.79.0"
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/imports_manager.py
RENAMED
@@ -37,7 +37,7 @@ from robotcode.core.utils.caching import SimpleLRUCache
|
|
37
37
|
from robotcode.core.utils.dataclasses import as_json, from_json
|
38
38
|
from robotcode.core.utils.glob_path import Pattern, iter_files
|
39
39
|
from robotcode.core.utils.logging import LoggingDescriptor
|
40
|
-
from robotcode.core.utils.path import path_is_relative_to
|
40
|
+
from robotcode.core.utils.path import normalized_path, path_is_relative_to
|
41
41
|
|
42
42
|
from ..__version__ import __version__
|
43
43
|
from ..utils import get_robot_version, get_robot_version_str
|
@@ -183,7 +183,7 @@ class _LibrariesEntry(_ImportEntry):
|
|
183
183
|
self._lib_doc.module_spec is not None
|
184
184
|
and self._lib_doc.module_spec.submodule_search_locations is not None
|
185
185
|
and any(
|
186
|
-
path_is_relative_to(path, Path(e)
|
186
|
+
path_is_relative_to(path, normalized_path(Path(e)))
|
187
187
|
for e in self._lib_doc.module_spec.submodule_search_locations
|
188
188
|
)
|
189
189
|
)
|
@@ -197,7 +197,7 @@ class _LibrariesEntry(_ImportEntry):
|
|
197
197
|
self._lib_doc.module_spec is None
|
198
198
|
and not self._lib_doc.source
|
199
199
|
and self._lib_doc.python_path
|
200
|
-
and any(path_is_relative_to(path, Path(e)
|
200
|
+
and any(path_is_relative_to(path, normalized_path(Path(e))) for e in self._lib_doc.python_path)
|
201
201
|
)
|
202
202
|
):
|
203
203
|
self._invalidate()
|
@@ -221,14 +221,14 @@ class _LibrariesEntry(_ImportEntry):
|
|
221
221
|
self.parent.file_watcher_manager.add_file_watchers(
|
222
222
|
self.parent.did_change_watched_files,
|
223
223
|
[
|
224
|
-
str(Path(location)
|
224
|
+
str(normalized_path(Path(location)).joinpath("**"))
|
225
225
|
for location in self._lib_doc.module_spec.submodule_search_locations
|
226
226
|
],
|
227
227
|
)
|
228
228
|
)
|
229
229
|
|
230
230
|
if source_or_origin is not None and Path(source_or_origin).parent in [
|
231
|
-
Path(loc)
|
231
|
+
normalized_path(Path(loc)) for loc in self._lib_doc.module_spec.submodule_search_locations
|
232
232
|
]:
|
233
233
|
return
|
234
234
|
|
@@ -307,7 +307,7 @@ class _ResourcesEntry(_ImportEntry):
|
|
307
307
|
path = uri.to_path()
|
308
308
|
if (
|
309
309
|
self._document is not None
|
310
|
-
and (path
|
310
|
+
and (normalized_path(path) == normalized_path(self._document.uri.to_path()))
|
311
311
|
or self._document is None
|
312
312
|
):
|
313
313
|
self._invalidate()
|
@@ -1457,7 +1457,7 @@ class ImportsManager:
|
|
1457
1457
|
def _get_document() -> TextDocument:
|
1458
1458
|
self._logger.debug(lambda: f"Load resource {name} from source {source}")
|
1459
1459
|
|
1460
|
-
source_path = Path(source)
|
1460
|
+
source_path = normalized_path(Path(source))
|
1461
1461
|
extension = source_path.suffix
|
1462
1462
|
if extension.lower() not in RESOURCE_EXTENSIONS:
|
1463
1463
|
raise ImportError(
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/library_doc.py
RENAMED
@@ -66,6 +66,7 @@ from robot.variables.filesetter import PythonImporter, YamlImporter
|
|
66
66
|
from robot.variables.finders import VariableFinder
|
67
67
|
from robot.variables.search import contains_variable
|
68
68
|
from robotcode.core.lsp.types import Position, Range
|
69
|
+
from robotcode.core.utils.path import normalized_path
|
69
70
|
from robotcode.robot.diagnostics.entities import (
|
70
71
|
ArgumentDefinition,
|
71
72
|
ImportedVariableDefinition,
|
@@ -1490,7 +1491,7 @@ def _get_default_variables() -> Any:
|
|
1490
1491
|
if __default_variables is None:
|
1491
1492
|
__default_variables = Variables()
|
1492
1493
|
for k, v in {
|
1493
|
-
"${TEMPDIR}": str(Path(tempfile.gettempdir())
|
1494
|
+
"${TEMPDIR}": str(normalized_path(Path(tempfile.gettempdir()))),
|
1494
1495
|
"${/}": os.sep,
|
1495
1496
|
"${:}": os.pathsep,
|
1496
1497
|
"${\\n}": os.linesep,
|
@@ -2476,7 +2477,7 @@ def complete_library_import(
|
|
2476
2477
|
]
|
2477
2478
|
|
2478
2479
|
for p in paths:
|
2479
|
-
path = p
|
2480
|
+
path = normalized_path(p)
|
2480
2481
|
|
2481
2482
|
if path.exists() and path.is_dir():
|
2482
2483
|
result += [
|
@@ -2541,9 +2542,9 @@ def complete_resource_import(
|
|
2541
2542
|
if name is None or name.startswith((".", "/", os.sep)):
|
2542
2543
|
name_path = Path(name if name else base_dir)
|
2543
2544
|
if name_path.is_absolute():
|
2544
|
-
path = name_path
|
2545
|
+
path = normalized_path(name_path)
|
2545
2546
|
else:
|
2546
|
-
path = Path(base_dir, name if name else base_dir)
|
2547
|
+
path = normalized_path(Path(base_dir, name if name else base_dir))
|
2547
2548
|
|
2548
2549
|
if path.exists() and (path.is_dir()):
|
2549
2550
|
result += [
|
@@ -2592,7 +2593,7 @@ def complete_variables_import(
|
|
2592
2593
|
]
|
2593
2594
|
|
2594
2595
|
for p in paths:
|
2595
|
-
path = p
|
2596
|
+
path = normalized_path(p)
|
2596
2597
|
|
2597
2598
|
if path.exists() and path.is_dir():
|
2598
2599
|
result += [
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.78.4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/__init__.py
RENAMED
File without changes
|
File without changes
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/entities.py
RENAMED
File without changes
|
File without changes
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/model_helper.py
RENAMED
File without changes
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/diagnostics/namespace.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.78.4 → robotcode_robot-0.79.0}/src/robotcode/robot/utils/markdownformatter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|