robotcode-robot 0.78.4__py3-none-any.whl → 0.79.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- __version__ = "0.78.4"
1
+ __version__ = "0.79.0"
@@ -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).resolve())
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).resolve()) for e in self._lib_doc.python_path)
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).resolve().joinpath("**"))
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).resolve() for loc in self._lib_doc.module_spec.submodule_search_locations
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.resolve() == self._document.uri.to_path().resolve())
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).resolve()
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(
@@ -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()).resolve()),
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.resolve()
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.resolve()
2545
+ path = normalized_path(name_path)
2545
2546
  else:
2546
- path = Path(base_dir, name if name else base_dir).resolve()
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.resolve()
2596
+ path = normalized_path(p)
2596
2597
 
2597
2598
  if path.exists() and path.is_dir():
2598
2599
  result += [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-robot
3
- Version: 0.78.4
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.78.4
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
@@ -1,5 +1,5 @@
1
1
  robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- robotcode/robot/__version__.py,sha256=4qUludpNixgmhGKESx2FYWVdHE0dHtestyzPDEVZ-iA,23
2
+ robotcode/robot/__version__.py,sha256=1nnRuZbUvt4h80F41M2EZqt3TsZYyhJ2C2rRdk9uzhA,23
3
3
  robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
4
4
  robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  robotcode/robot/config/loader.py,sha256=LpGqJAdysvVSZpccW-Il52xn9RMBBb9X94emlBY7zCc,6077
@@ -9,8 +9,8 @@ robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
9
9
  robotcode/robot/diagnostics/document_cache_helper.py,sha256=XLOqPl88Rbo_01pt8Zx2jMH38m5kvoOnASNDoe8BK_0,22292
10
10
  robotcode/robot/diagnostics/entities.py,sha256=CrjhLHHwKCCE3YI_dcjoZADJz1urm0VGbGFdHXOuaoc,11110
11
11
  robotcode/robot/diagnostics/errors.py,sha256=VavgWYuHoW5sTT16j2rl9hxMhWxBKNSFsNmHWPzARQQ,1413
12
- robotcode/robot/diagnostics/imports_manager.py,sha256=eMt3Quac1hV5zq6CO45afhUOiL4usww3YTNSyt1bZrE,56185
13
- robotcode/robot/diagnostics/library_doc.py,sha256=ZhoJIscHIx0UaLWm56LEoa3oxR0uNZourZsnpvOg-Hs,97035
12
+ robotcode/robot/diagnostics/imports_manager.py,sha256=qE__lm0Hsj3R0gUauXRmbWJPYihNjk3O-c5hcICGQjc,56251
13
+ robotcode/robot/diagnostics/library_doc.py,sha256=sLENYhMoq5IvYgd0jUhVpRkRTvY9IfTotlthLUUO0vY,97124
14
14
  robotcode/robot/diagnostics/model_helper.py,sha256=3-6lZluPQaT9KstHLfV0jsRUAjTfrkUOomSXiMPKoQg,29868
15
15
  robotcode/robot/diagnostics/namespace.py,sha256=yerha8VmX_01h8Ga7MaH4wRVk1waVQ4pJfPu55ohcYU,89792
16
16
  robotcode/robot/diagnostics/namespace_analyzer.py,sha256=tElI2NzcCRnsvPqv7wYaV2p5E22VyqEwQQ90FOOjadI,50086
@@ -23,7 +23,7 @@ robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6
23
23
  robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
24
24
  robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
25
25
  robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
26
- robotcode_robot-0.78.4.dist-info/METADATA,sha256=WfkXkxatka4vLkqnGNKqN59xmgT4cOgHMgYbjxXEi8M,2209
27
- robotcode_robot-0.78.4.dist-info/WHEEL,sha256=bq9SyP5NxIRA9EpQgMCd-9RmPHWvbH-4lTDGwxgIR64,87
28
- robotcode_robot-0.78.4.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
29
- robotcode_robot-0.78.4.dist-info/RECORD,,
26
+ robotcode_robot-0.79.0.dist-info/METADATA,sha256=iJYDwsnbSkz5J6Lvejy49CGggJPCIZuaYA1eWOkWW2k,2209
27
+ robotcode_robot-0.79.0.dist-info/WHEEL,sha256=osohxoshIHTFJFVPhsi1UkZuLRGMHRXZzwEBW2ezjrc,87
28
+ robotcode_robot-0.79.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
29
+ robotcode_robot-0.79.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.22.3
2
+ Generator: hatchling 1.24.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any