robotcode-plugin 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-plugin
3
- Version: 2.3.1
3
+ Version: 2.5.0
4
4
  Summary: Some classes for RobotCode plugin management
5
5
  Project-URL: Donate, https://opencollective.com/robotcode
6
6
  Project-URL: Documentation, https://github.com/robotcodedev/robotcode#readme
@@ -24,7 +24,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
24
24
  Classifier: Topic :: Utilities
25
25
  Classifier: Typing :: Typed
26
26
  Requires-Python: >=3.10
27
- Requires-Dist: click>=8.1.0
27
+ Requires-Dist: click>=8.2.0
28
28
  Requires-Dist: colorama>=0.4.6
29
29
  Requires-Dist: pluggy>=1.0.0
30
30
  Requires-Dist: tomli-w>=1.0.0
@@ -27,7 +27,7 @@ classifiers = [
27
27
  "Framework :: Robot Framework :: Tool",
28
28
  ]
29
29
  dependencies = [
30
- "click>=8.1.0",
30
+ "click>=8.2.0",
31
31
  "pluggy>=1.0.0",
32
32
  "tomli_w>=1.0.0",
33
33
  "colorama>=0.4.6",
@@ -122,6 +122,15 @@ class Application:
122
122
  ColoredOutput.YES,
123
123
  ]
124
124
 
125
+ @property
126
+ def has_rich(self) -> bool:
127
+ try:
128
+ import rich # noqa: F401
129
+
130
+ return True
131
+ except ImportError:
132
+ return False
133
+
125
134
  def verbose(
126
135
  self,
127
136
  message: Union[str, Callable[[], Any], None],
@@ -333,11 +342,14 @@ class Application:
333
342
 
334
343
  def keyboard_interrupt(self) -> None:
335
344
  self.verbose("Aborted!", file=sys.stderr)
336
- sys.exit(253)
345
+ self.exit(253, fast=True)
337
346
 
338
- def exit(self, code: int = 0) -> None:
347
+ def exit(self, code: int = 0, fast: bool = False) -> None:
339
348
  self.verbose(f"Exit with code {code}")
340
- sys.exit(code)
349
+ if fast:
350
+ os._exit(code)
351
+ else:
352
+ sys.exit(code)
341
353
 
342
354
  @contextmanager
343
355
  def chdir(self, path: Union[str, Path, None]) -> Iterator[Optional[Path]]:
@@ -0,0 +1 @@
1
+ __version__ = "2.5.0"
@@ -1 +0,0 @@
1
- __version__ = "2.3.1"