robotcode-repl 2.3.1__tar.gz → 2.5.0__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.
@@ -334,4 +334,8 @@ bundled/libs
334
334
  results/
335
335
 
336
336
  # kilocode
337
- .kilocode/
337
+ .kilocode/
338
+
339
+ # .agents
340
+ .agents/
341
+ skills-lock.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotcode-repl
3
- Version: 2.3.1
3
+ Version: 2.5.0
4
4
  Summary: RobotCode REPL for Robot Framework
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -0,0 +1 @@
1
+ __version__ = "2.5.0"
@@ -13,7 +13,7 @@ from robot.running.context import EXECUTION_CONTEXTS
13
13
  from robot.running.signalhandler import STOP_SIGNAL_MONITOR, _StopSignalMonitor
14
14
 
15
15
  from robotcode.core.utils.path import normalized_path
16
- from robotcode.robot.utils import get_robot_version
16
+ from robotcode.robot.utils import RF_VERSION
17
17
  from robotcode.robot.utils.ast import iter_nodes
18
18
 
19
19
  if TYPE_CHECKING:
@@ -51,7 +51,7 @@ def _patch() -> None:
51
51
  _patched = True
52
52
 
53
53
 
54
- if get_robot_version() >= (7, 0):
54
+ if RF_VERSION >= (7, 0):
55
55
 
56
56
  def _run_keyword(kw: Keyword, context: Any) -> Any:
57
57
  return kw.run(context.steps[-1][1], context)
@@ -62,7 +62,7 @@ else:
62
62
  return kw.run(context)
63
63
 
64
64
 
65
- if get_robot_version() < (7, 0):
65
+ if RF_VERSION < (7, 0):
66
66
 
67
67
  class InterpreterLogger:
68
68
  def __init__(self, interpreter: "BaseInterpreter") -> None:
@@ -13,7 +13,6 @@ from robotcode.core.utils.path import normalized_path
13
13
  from robotcode.plugin import (
14
14
  Application,
15
15
  )
16
- from robotcode.robot.utils import get_robot_version
17
16
  from robotcode.runner.cli.robot import RobotFrameworkEx, handle_robot_options
18
17
 
19
18
  from .base_interpreter import BaseInterpreter
@@ -110,9 +109,8 @@ def run_repl(
110
109
  else:
111
110
  LOGGER.unregister_console_logger()
112
111
 
113
- if get_robot_version() >= (5, 0):
114
- if settings.pythonpath:
115
- sys.path = settings.pythonpath + sys.path
112
+ if settings.pythonpath:
113
+ sys.path = settings.pythonpath + sys.path
116
114
 
117
115
  with io.StringIO(REPL_SUITE) as suite_io:
118
116
  model = get_model(suite_io, curdir=str(curdir).replace("\\", "\\\\"))
@@ -1 +0,0 @@
1
- __version__ = "2.3.1"
File without changes