robotcode 0.58.0__tar.gz → 0.60.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to "robotcode" are documented in this file.
4
4
 
5
+ ## v0.60.0 (2023-10-04)
6
+
7
+ ### Feat
8
+
9
+ - **robotcode**: add `Path` to allowed GLOBALS in config expressions
10
+ - **robotcode**: introduce plugin spec for configuration classes
11
+
12
+ ## v0.59.0 (2023-09-28)
13
+
14
+ ### Feat
15
+
16
+ - **langserver**: all refactorings and quickfixes are now previewable
17
+
5
18
  ## v0.58.0 (2023-09-26)
6
19
 
7
20
  ### Feat
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotcode
3
- Version: 0.58.0
3
+ Version: 0.60.0
4
4
  Summary: Language server, debugger and tools for Robot Framework
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://github.com/sponsors/d-biehl
@@ -33,31 +33,31 @@ Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
33
33
  Classifier: Topic :: Utilities
34
34
  Classifier: Typing :: Typed
35
35
  Requires-Python: >=3.8
36
- Requires-Dist: robotcode-plugin==0.58.0
36
+ Requires-Dist: robotcode-plugin==0.60.0
37
37
  Provides-Extra: all
38
38
  Requires-Dist: docutils; extra == 'all'
39
39
  Requires-Dist: pyyaml>=5.4; extra == 'all'
40
40
  Requires-Dist: rich; extra == 'all'
41
- Requires-Dist: robotcode-analyze==0.58.0; extra == 'all'
42
- Requires-Dist: robotcode-debugger==0.58.0; extra == 'all'
43
- Requires-Dist: robotcode-language-server==0.58.0; extra == 'all'
44
- Requires-Dist: robotcode-runner==0.58.0; extra == 'all'
41
+ Requires-Dist: robotcode-analyze==0.60.0; extra == 'all'
42
+ Requires-Dist: robotcode-debugger==0.60.0; extra == 'all'
43
+ Requires-Dist: robotcode-language-server==0.60.0; extra == 'all'
44
+ Requires-Dist: robotcode-runner==0.60.0; extra == 'all'
45
45
  Requires-Dist: robotframework-robocop>=2.0.0; extra == 'all'
46
46
  Requires-Dist: robotframework-tidy>=2.0.0; extra == 'all'
47
47
  Provides-Extra: analyze
48
- Requires-Dist: robotcode-analyze==0.58.0; extra == 'analyze'
48
+ Requires-Dist: robotcode-analyze==0.60.0; extra == 'analyze'
49
49
  Provides-Extra: colored
50
50
  Requires-Dist: rich; extra == 'colored'
51
51
  Provides-Extra: debugger
52
- Requires-Dist: robotcode-debugger==0.58.0; extra == 'debugger'
52
+ Requires-Dist: robotcode-debugger==0.60.0; extra == 'debugger'
53
53
  Provides-Extra: languageserver
54
- Requires-Dist: robotcode-language-server==0.58.0; extra == 'languageserver'
54
+ Requires-Dist: robotcode-language-server==0.60.0; extra == 'languageserver'
55
55
  Provides-Extra: lint
56
56
  Requires-Dist: robotframework-robocop>=2.0.0; extra == 'lint'
57
57
  Provides-Extra: rest
58
58
  Requires-Dist: docutils; extra == 'rest'
59
59
  Provides-Extra: runner
60
- Requires-Dist: robotcode-runner==0.58.0; extra == 'runner'
60
+ Requires-Dist: robotcode-runner==0.60.0; extra == 'runner'
61
61
  Provides-Extra: tidy
62
62
  Requires-Dist: robotframework-tidy>=2.0.0; extra == 'tidy'
63
63
  Provides-Extra: yaml
@@ -17,7 +17,7 @@ dependencies = [
17
17
  "pytest",
18
18
  "pytest-html",
19
19
  "pytest_asyncio",
20
- "pytest-regtest>=1.5.0",
20
+ # "pytest-regtest>=1.5.0",
21
21
  "pytest-cov",
22
22
  "mypy",
23
23
  "ruff",
@@ -62,7 +62,7 @@ post-install-commands = ["pip install -U -e {root:uri}/../robotframework"]
62
62
  python = "3.8"
63
63
 
64
64
  [[envs.devel.matrix]]
65
- python = ["3.8", "3.9", "3.10", "3.11"]
65
+ python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
66
66
  rf = ["rf41", "rf50", "rf60", "rf61"]
67
67
 
68
68
  [envs.devel.overrides]
@@ -49,7 +49,7 @@ classifiers = [
49
49
  "Framework :: Robot Framework :: Tool",
50
50
  ]
51
51
  requires-python = ">=3.8"
52
- dependencies = ["robotcode-plugin==0.58.0"]
52
+ dependencies = ["robotcode-plugin==0.60.0"]
53
53
  dynamic = ["version"]
54
54
 
55
55
 
@@ -66,20 +66,20 @@ robotcode = "robotcode.cli.__main__:main"
66
66
 
67
67
 
68
68
  [project.optional-dependencies]
69
- debugger = ["robotcode-debugger==0.58.0"]
70
- languageserver = ["robotcode-language-server==0.58.0"]
71
- runner = ["robotcode-runner==0.58.0"]
72
- analyze = ["robotcode-analyze==0.58.0"]
69
+ debugger = ["robotcode-debugger==0.60.0"]
70
+ languageserver = ["robotcode-language-server==0.60.0"]
71
+ runner = ["robotcode-runner==0.60.0"]
72
+ analyze = ["robotcode-analyze==0.60.0"]
73
73
  yaml = ["PyYAML>=5.4"]
74
74
  lint = ["robotframework-robocop>=2.0.0"]
75
75
  tidy = ["robotframework-tidy>=2.0.0"]
76
76
  rest = ["docutils"]
77
77
  colored = ["rich"]
78
78
  all = [
79
- "robotcode-debugger==0.58.0",
80
- "robotcode-language-server==0.58.0",
81
- "robotcode-runner==0.58.0",
82
- "robotcode-analyze==0.58.0",
79
+ "robotcode-debugger==0.60.0",
80
+ "robotcode-language-server==0.60.0",
81
+ "robotcode-runner==0.60.0",
82
+ "robotcode-analyze==0.60.0",
83
83
  "PyYAML>=5.4",
84
84
  "robotframework-robocop>=2.0.0",
85
85
  "robotframework-tidy>=2.0.0",
@@ -0,0 +1 @@
1
+ __version__ = "0.60.0"
@@ -7,10 +7,11 @@ from typing import Any, Dict, List, Optional
7
7
  import click
8
8
  from robotcode.core.dataclasses import encode_case
9
9
  from robotcode.plugin import Application, OutputFormat, UnknownError, pass_application
10
+ from robotcode.plugin.manager import PluginManager
10
11
  from robotcode.robot.config.loader import (
11
12
  DiscoverdBy,
12
13
  find_project_root,
13
- load_config_from_path,
14
+ load_robot_config_from_path,
14
15
  )
15
16
  from robotcode.robot.config.model import LibDocProfile, RebotProfile, RobotConfig, RobotProfile, TestDocProfile
16
17
  from robotcode.robot.config.utils import get_config_files
@@ -55,13 +56,13 @@ def show(
55
56
 
56
57
  if single:
57
58
  for file, _ in config_files:
58
- config = load_config_from_path(file)
59
+ config = load_robot_config_from_path(file)
59
60
  click.secho(f"File: {file}")
60
61
  app.print_data(config, remove_defaults=True, default_output_format=OutputFormat.TOML)
61
62
 
62
63
  return
63
64
 
64
- config = load_config_from_path(*config_files)
65
+ config = load_robot_config_from_path(*config_files)
65
66
 
66
67
  app.print_data(config, remove_defaults=True, default_output_format=OutputFormat.TOML)
67
68
 
@@ -202,6 +203,16 @@ def get_config_fields() -> Dict[str, Dict[str, str]]:
202
203
  "description": field.metadata.get("description", "").strip(),
203
204
  }
204
205
 
206
+ for entry in PluginManager().config_classes:
207
+ for s, cls in entry:
208
+ if dataclasses.is_dataclass(cls):
209
+ for field in dataclasses.fields(cls):
210
+ field_name_encoded = encode_case(TestDocProfile, field)
211
+ result[f"{s}." + field_name_encoded] = {
212
+ "type": str(field.type),
213
+ "description": field.metadata.get("description", "").strip(),
214
+ }
215
+
205
216
  return {k: v for k, v in sorted(result.items(), key=lambda item: item[0])}
206
217
 
207
218
 
@@ -5,7 +5,7 @@ import click
5
5
  from robotcode.plugin import Application, OutputFormat, UnknownError, pass_application
6
6
  from robotcode.robot.config.loader import (
7
7
  DiscoverdBy,
8
- load_config_from_path,
8
+ load_robot_config_from_path,
9
9
  )
10
10
  from robotcode.robot.config.utils import get_config_files
11
11
 
@@ -32,7 +32,7 @@ def show(
32
32
  try:
33
33
  config_files, _, _ = get_config_files(paths, app.config.config_files, verbose_callback=app.verbose)
34
34
 
35
- config = load_config_from_path(*config_files).combine_profiles(
35
+ config = load_robot_config_from_path(*config_files).combine_profiles(
36
36
  *(app.config.profiles or []), verbose_callback=app.verbose
37
37
  )
38
38
 
@@ -61,7 +61,7 @@ def list(
61
61
  verbose_callback=app.verbose,
62
62
  )
63
63
 
64
- config = load_config_from_path(*config_files)
64
+ config = load_robot_config_from_path(*config_files)
65
65
  selected_profiles = [
66
66
  k for k in config.select_profiles(*(app.config.profiles or []), verbose_callback=app.verbose).keys()
67
67
  ]
@@ -1 +0,0 @@
1
- __version__ = "0.58.0"
File without changes
File without changes
File without changes