robotcode-robot 0.32.3__tar.gz → 0.34.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotcode-robot
3
- Version: 0.32.3
3
+ Version: 0.34.1
4
4
  Summary: Support classes for RobotCode for handling Robot Framework projects.
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://github.com/sponsors/d-biehl
@@ -25,7 +25,7 @@ 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-core
28
+ Requires-Dist: robotcode-core==0.34.1
29
29
  Requires-Dist: robotframework>=4.1.0
30
30
  Requires-Dist: tomli>=1.1.0; python_version < '3.11'
31
31
  Description-Content-Type: text/markdown
@@ -28,7 +28,7 @@ classifiers = [
28
28
  dependencies = [
29
29
  "robotframework>=4.1.0",
30
30
  "tomli>=1.1.0; python_version < '3.11'",
31
- "robotcode-core",
31
+ "robotcode-core==0.34.1",
32
32
  ]
33
33
  dynamic = ["version"]
34
34
 
@@ -0,0 +1 @@
1
+ __version__ = "0.34.1"
@@ -1,3 +1,5 @@
1
+ # ruff: noqa: RUF009
2
+
1
3
  import dataclasses
2
4
  import datetime
3
5
  import fnmatch
@@ -2161,7 +2163,7 @@ class RobotConfig(RobotExtraBaseProfile):
2161
2163
  profile_names = [p for p in profiles.keys() if fnmatch.fnmatchcase(p, name)]
2162
2164
 
2163
2165
  if not profile_names:
2164
- raise ValueError(f"Can't find any profiles matching the pattern '{name}''.")
2166
+ raise ValueError(f"Can't find any profiles matching the pattern '{name}'.")
2165
2167
 
2166
2168
  for v in profile_names:
2167
2169
  result.update({v: profiles[v]})
@@ -0,0 +1,14 @@
1
+ from typing import Optional
2
+
3
+ from robotcode.core.utils.version import Version, create_version_from_str
4
+
5
+ _robot_version: Optional[Version] = None
6
+
7
+
8
+ def get_robot_version() -> Version:
9
+ global _robot_version
10
+ if _robot_version is None:
11
+ import robot.version
12
+
13
+ _robot_version = create_version_from_str(robot.version.get_version())
14
+ return _robot_version
@@ -1 +0,0 @@
1
- __version__ = "0.32.3"