robotcode-runner 0.92.0__tar.gz → 0.93.1__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.
@@ -282,6 +282,8 @@ playground/
282
282
  test-results
283
283
  results.html
284
284
  report.html
285
+ log.html
286
+ output.xml
285
287
 
286
288
  # pyenv
287
289
  .python-version
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-runner
3
- Version: 0.92.0
4
- Summary: RobotCode runner plugin for Robot Framework
3
+ Version: 0.93.1
4
+ Summary: RobotCode runner for Robot Framework
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
7
7
  Project-URL: Documentation, https://github.com/robotcodedev/robotcode#readme
@@ -25,10 +25,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
25
25
  Classifier: Topic :: Utilities
26
26
  Classifier: Typing :: Typed
27
27
  Requires-Python: >=3.8
28
- Requires-Dist: robotcode-modifiers==0.92.0
29
- Requires-Dist: robotcode-plugin==0.92.0
30
- Requires-Dist: robotcode-robot==0.92.0
31
- Requires-Dist: robotcode==0.92.0
28
+ Requires-Dist: robotcode-modifiers==0.93.1
29
+ Requires-Dist: robotcode-plugin==0.93.1
30
+ Requires-Dist: robotcode-robot==0.93.1
31
+ Requires-Dist: robotcode==0.93.1
32
32
  Requires-Dist: robotframework>=4.1.0
33
33
  Description-Content-Type: text/markdown
34
34
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "robotcode-runner"
7
- description = 'RobotCode runner plugin for Robot Framework'
7
+ description = 'RobotCode runner for Robot Framework'
8
8
  readme = { "file" = "README.md", "content-type" = "text/markdown" }
9
9
  requires-python = ">=3.8"
10
10
  license = {text = "Apache-2.0"}
@@ -28,10 +28,10 @@ classifiers = [
28
28
  dynamic = ["version"]
29
29
  dependencies = [
30
30
  "robotframework>=4.1.0",
31
- "robotcode-robot==0.92.0",
32
- "robotcode-modifiers==0.92.0",
33
- "robotcode-plugin==0.92.0",
34
- "robotcode==0.92.0",
31
+ "robotcode-robot==0.93.1",
32
+ "robotcode-modifiers==0.93.1",
33
+ "robotcode-plugin==0.93.1",
34
+ "robotcode==0.93.1",
35
35
  ]
36
36
 
37
37
  [project.entry-points.robotcode]
@@ -0,0 +1 @@
1
+ __version__ = "0.93.1"
@@ -50,7 +50,7 @@ from robotcode.plugin import (
50
50
  from robotcode.plugin.click_helper.types import add_options
51
51
  from robotcode.robot.utils import get_robot_version
52
52
 
53
- from ..robot import ROBOT_OPTIONS, RobotFrameworkEx, handle_robot_options
53
+ from ..robot import ROBOT_OPTIONS, ROBOT_VERSION_OPTIONS, RobotFrameworkEx, handle_robot_options
54
54
 
55
55
 
56
56
  class ErroneousTestSuite(running_model.TestSuite):
@@ -372,6 +372,7 @@ class Collector(SuiteVisitor):
372
372
  help="Read file contents from stdin. This is an internal option.",
373
373
  hidden=show_hidden_arguments(),
374
374
  )
375
+ @add_options(*ROBOT_VERSION_OPTIONS)
375
376
  @pass_application
376
377
  def discover(app: Application, show_diagnostics: bool, read_from_stdin: bool) -> None:
377
378
  """\
@@ -942,7 +943,7 @@ def files(app: Application, full_paths: bool, paths: Iterable[Path]) -> None:
942
943
  ```
943
944
  """
944
945
 
945
- root_folder, profile, cmd_options = handle_robot_options(app, ())
946
+ root_folder, profile, _cmd_options = handle_robot_options(app, ())
946
947
 
947
948
  search_paths = set(
948
949
  (
@@ -67,7 +67,11 @@ def libdoc(app: Application, robot_options_and_args: Tuple[str, ...]) -> None:
67
67
  pass
68
68
 
69
69
  config_files, root_folder, _ = get_config_files(
70
- robot_arguments, app.config.config_files, verbose_callback=app.verbose
70
+ robot_arguments,
71
+ app.config.config_files,
72
+ root_folder=app.config.root,
73
+ no_vcs=app.config.no_vcs,
74
+ verbose_callback=app.verbose,
71
75
  )
72
76
  try:
73
77
  profile = (
@@ -68,7 +68,11 @@ def rebot(app: Application, robot_options_and_args: Tuple[str, ...]) -> None:
68
68
  pass
69
69
 
70
70
  config_files, root_folder, _ = get_config_files(
71
- robot_arguments, app.config.config_files, verbose_callback=app.verbose
71
+ robot_arguments,
72
+ app.config.config_files,
73
+ root_folder=app.config.root,
74
+ no_vcs=app.config.no_vcs,
75
+ verbose_callback=app.verbose,
72
76
  )
73
77
 
74
78
  try:
@@ -212,6 +212,19 @@ class RobotFrameworkEx(RobotFramework):
212
212
 
213
213
 
214
214
  # mypy: disable-error-code="arg-type"
215
+ ROBOT_VERSION_OPTIONS = {
216
+ click.version_option(
217
+ version=__version__,
218
+ package_name="robotcode.runner",
219
+ prog_name="RobotCode Runner",
220
+ message=f"%(prog)s %(version)s\n{USAGE.splitlines()[0].split(' -- ')[0].strip()} {get_full_version()}",
221
+ ),
222
+ }
223
+
224
+ ROBOT_SIMPLE_OPTIONS: Set[click.Command] = {
225
+ *ROBOT_VERSION_OPTIONS,
226
+ click.argument("robot_options_and_args", nargs=-1, type=click.Path()),
227
+ }
215
228
 
216
229
  ROBOT_OPTIONS: Set[click.Command] = {
217
230
  click.option(
@@ -226,13 +239,7 @@ ROBOT_OPTIONS: Set[click.Command] = {
226
239
  multiple=True,
227
240
  help="Excludes tests/tasks or suites by longname.",
228
241
  ),
229
- click.version_option(
230
- version=__version__,
231
- package_name="robotcode.runner",
232
- prog_name="RobotCode Runner",
233
- message=f"%(prog)s %(version)s\n{USAGE.splitlines()[0].split(' -- ')[0].strip()} {get_full_version()}",
234
- ),
235
- click.argument("robot_options_and_args", nargs=-1, type=click.Path()),
242
+ *ROBOT_SIMPLE_OPTIONS,
236
243
  }
237
244
 
238
245
 
@@ -255,7 +262,11 @@ def handle_robot_options(
255
262
  sys.path = old_sys_path
256
263
 
257
264
  config_files, root_folder, _ = get_config_files(
258
- robot_arguments, app.config.config_files, verbose_callback=app.verbose
265
+ robot_arguments,
266
+ app.config.config_files,
267
+ root_folder=app.config.root,
268
+ no_vcs=app.config.no_vcs,
269
+ verbose_callback=app.verbose,
259
270
  )
260
271
  try:
261
272
  profile = (
@@ -67,7 +67,11 @@ def testdoc(app: Application, robot_options_and_args: Tuple[str, ...]) -> None:
67
67
  pass
68
68
 
69
69
  config_files, root_folder, _ = get_config_files(
70
- robot_arguments, app.config.config_files, verbose_callback=app.verbose
70
+ robot_arguments,
71
+ app.config.config_files,
72
+ root_folder=app.config.root,
73
+ no_vcs=app.config.no_vcs,
74
+ verbose_callback=app.verbose,
71
75
  )
72
76
 
73
77
  try:
@@ -1 +0,0 @@
1
- __version__ = "0.92.0"