robotcode-plugin 0.86.2__tar.gz → 0.88.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-plugin
3
- Version: 0.86.2
3
+ Version: 0.88.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,8 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
24
24
  Classifier: Topic :: Utilities
25
25
  Classifier: Typing :: Typed
26
26
  Requires-Python: >=3.8
27
- Requires-Dist: click>=8.0.0
27
+ Requires-Dist: click>=8.1.0
28
+ Requires-Dist: colorama>=0.4.6
28
29
  Requires-Dist: pluggy>=1.0.0
29
30
  Requires-Dist: tomli-w>=1.0.0
30
31
  Description-Content-Type: text/markdown
@@ -7,7 +7,7 @@ name = "robotcode-plugin"
7
7
  description = 'Some classes for RobotCode plugin management'
8
8
  readme = { "file" = "README.md", "content-type" = "text/markdown" }
9
9
  requires-python = ">=3.8"
10
- license = {text = "Apache-2.0"}
10
+ license = { text = "Apache-2.0" }
11
11
  keywords = []
12
12
  authors = [{ name = "Daniel Biehl", email = "dbiehl@live.de" }]
13
13
  classifiers = [
@@ -25,7 +25,12 @@ classifiers = [
25
25
  "Framework :: Robot Framework",
26
26
  "Framework :: Robot Framework :: Tool",
27
27
  ]
28
- dependencies = ["click>=8.0.0", "pluggy>=1.0.0", "tomli_w>=1.0.0"]
28
+ dependencies = [
29
+ "click>=8.1.0",
30
+ "pluggy>=1.0.0",
31
+ "tomli_w>=1.0.0",
32
+ "colorama>=0.4.6",
33
+ ]
29
34
  dynamic = ["version"]
30
35
 
31
36
  [project.urls]
@@ -266,18 +266,21 @@ class Application:
266
266
  text_or_generator: Union[Iterable[str], Callable[[], Iterable[str]], str],
267
267
  color: Optional[bool] = None,
268
268
  ) -> None:
269
- if not self.config.pager:
270
- text = (
271
- text_or_generator
272
- if isinstance(text_or_generator, str)
273
- else "".join(text_or_generator() if callable(text_or_generator) else text_or_generator)
274
- )
275
- click.echo(text, color=color if color is not None else self.colored)
276
- else:
277
- click.echo_via_pager(
278
- text_or_generator,
279
- color=color if color is not None else self.colored,
280
- )
269
+ try:
270
+ if not self.config.pager:
271
+ text = (
272
+ text_or_generator
273
+ if isinstance(text_or_generator, str)
274
+ else "".join(text_or_generator() if callable(text_or_generator) else text_or_generator)
275
+ )
276
+ click.echo(text, color=color if color is not None else self.colored)
277
+ else:
278
+ click.echo_via_pager(
279
+ text_or_generator,
280
+ color=color if color is not None else self.colored,
281
+ )
282
+ except OSError:
283
+ pass
281
284
 
282
285
  def keyboard_interrupt(self) -> None:
283
286
  self.verbose("Aborted!", file=sys.stderr)
@@ -0,0 +1 @@
1
+ __version__ = "0.88.0"
@@ -36,7 +36,7 @@ class AliasedGroup(click.Group):
36
36
  subcommand = f"{', '.join(cmd.aliases)}"
37
37
  commands.append((subcommand, cmd))
38
38
 
39
- if len(commands):
39
+ if commands:
40
40
  limit = formatter.width - 6 - max(len(cmd[0]) for cmd in commands)
41
41
 
42
42
  rows = []
@@ -1 +0,0 @@
1
- __version__ = "0.86.2"