robotcode-robot 0.108.1__py3-none-any.whl → 0.109.0__py3-none-any.whl
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.
- robotcode/robot/__version__.py +1 -1
- robotcode/robot/diagnostics/data_cache.py +12 -5
- robotcode/robot/diagnostics/imports_manager.py +2 -1
- {robotcode_robot-0.108.1.dist-info → robotcode_robot-0.109.0.dist-info}/METADATA +2 -2
- {robotcode_robot-0.108.1.dist-info → robotcode_robot-0.109.0.dist-info}/RECORD +7 -7
- {robotcode_robot-0.108.1.dist-info → robotcode_robot-0.109.0.dist-info}/WHEEL +0 -0
- {robotcode_robot-0.108.1.dist-info → robotcode_robot-0.109.0.dist-info}/licenses/LICENSE.txt +0 -0
robotcode/robot/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.109.0"
|
@@ -27,10 +27,20 @@ class DataCache(ABC):
|
|
27
27
|
def save_cache_data(self, section: CacheSection, entry_name: str, data: Any) -> None: ...
|
28
28
|
|
29
29
|
|
30
|
-
class
|
30
|
+
class FileCacheDataBase(DataCache, ABC):
|
31
31
|
def __init__(self, cache_dir: Path) -> None:
|
32
32
|
self.cache_dir = cache_dir
|
33
33
|
|
34
|
+
if not Path.exists(self.cache_dir):
|
35
|
+
Path.mkdir(self.cache_dir, parents=True)
|
36
|
+
Path(self.cache_dir / ".gitignore").write_text(
|
37
|
+
"# Created by robotcode\n*\n",
|
38
|
+
"utf-8",
|
39
|
+
)
|
40
|
+
|
41
|
+
|
42
|
+
class JsonDataCache(FileCacheDataBase):
|
43
|
+
|
34
44
|
def build_cache_data_filename(self, section: CacheSection, entry_name: str) -> Path:
|
35
45
|
return self.cache_dir / section.value / (entry_name + ".json")
|
36
46
|
|
@@ -51,10 +61,7 @@ class JsonDataCache(DataCache):
|
|
51
61
|
cached_file.write_text(as_json(data), "utf-8")
|
52
62
|
|
53
63
|
|
54
|
-
class PickleDataCache(
|
55
|
-
def __init__(self, cache_dir: Path) -> None:
|
56
|
-
self.cache_dir = cache_dir
|
57
|
-
|
64
|
+
class PickleDataCache(FileCacheDataBase):
|
58
65
|
def build_cache_data_filename(self, section: CacheSection, entry_name: str) -> Path:
|
59
66
|
return self.cache_dir / section.value / (entry_name + ".pkl")
|
60
67
|
|
@@ -610,7 +610,8 @@ class ImportsManager:
|
|
610
610
|
|
611
611
|
def clear_cache(self) -> None:
|
612
612
|
if self.cache_path.exists():
|
613
|
-
shutil.rmtree(self.cache_path)
|
613
|
+
shutil.rmtree(self.cache_path, ignore_errors=True)
|
614
|
+
|
614
615
|
self._logger.debug(lambda: f"Cleared cache {self.cache_path}")
|
615
616
|
|
616
617
|
@_logger.call
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.109.0
|
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://opencollective.com/robotcode
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
27
27
|
Requires-Python: >=3.8
|
28
28
|
Requires-Dist: platformdirs<4.4.0,>=3.2.0
|
29
|
-
Requires-Dist: robotcode-core==0.
|
29
|
+
Requires-Dist: robotcode-core==0.109.0
|
30
30
|
Requires-Dist: robotframework>=4.1.0
|
31
31
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
32
32
|
Description-Content-Type: text/markdown
|
@@ -1,17 +1,17 @@
|
|
1
1
|
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
robotcode/robot/__version__.py,sha256=
|
2
|
+
robotcode/robot/__version__.py,sha256=To2Wkjt2rR7FNc5nbafXdKVV4Iy6AR0OLu5SmjOkGxs,24
|
3
3
|
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
4
|
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
robotcode/robot/config/loader.py,sha256=qrP810HNMDpqhXopWa0dOa0Wq_zQfVctsNYKY6sLKGI,8654
|
6
6
|
robotcode/robot/config/model.py,sha256=sgr6-4_E06g-yIXW41Z-NtIXZ_7JMmR5WvUD7kTUqu4,89106
|
7
7
|
robotcode/robot/config/utils.py,sha256=xY-LH31BidWzonpvSrle-4HvKrp02I7IRqU2JwlL4Ls,2931
|
8
8
|
robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
robotcode/robot/diagnostics/data_cache.py,sha256=
|
9
|
+
robotcode/robot/diagnostics/data_cache.py,sha256=rUh-LGkfxLYBLh3GmiJVGJi1JNP5GLiYnI1aVO0Pwqc,3187
|
10
10
|
robotcode/robot/diagnostics/diagnostics_modifier.py,sha256=6zJdXBd6g1QM12XJbsHd8gNNysECMnWlne3q8XNgBDo,9797
|
11
11
|
robotcode/robot/diagnostics/document_cache_helper.py,sha256=5H0S7qDCeoEmqjMLUE7EQy9iZcZTYIUl5H1Pdvn5s5I,23886
|
12
12
|
robotcode/robot/diagnostics/entities.py,sha256=I55YMxXpl7C1Sx6GgxRqb7vWMK7uWIoB7GhR1X9b66c,12983
|
13
13
|
robotcode/robot/diagnostics/errors.py,sha256=RGnE4KCgNxQ58hNMBuAD3Q-qWqZVWZSZsCnhBGtQScw,1975
|
14
|
-
robotcode/robot/diagnostics/imports_manager.py,sha256=
|
14
|
+
robotcode/robot/diagnostics/imports_manager.py,sha256=aJbVZ9OyhpdFMtDRMJT2orKHQc3ad3UeJ7TPycTM6GI,61167
|
15
15
|
robotcode/robot/diagnostics/keyword_finder.py,sha256=dm4BA0ccp5V4C65CkSYUJUNXegSmvG24uu09T3eL6a4,17319
|
16
16
|
robotcode/robot/diagnostics/library_doc.py,sha256=Mz4Y2w00qHTx42xZMznnMwOWn5SY2utJAciRLaqyY00,100341
|
17
17
|
robotcode/robot/diagnostics/model_helper.py,sha256=nq78e6TQ9Anvz_VSLW560lRTKrRjBsh7NoWttEvJ2hw,30973
|
@@ -26,7 +26,7 @@ robotcode/robot/utils/robot_path.py,sha256=Z-GVBOPA_xeD20bCJi4_AWaU0eQWvCym-YFty
|
|
26
26
|
robotcode/robot/utils/stubs.py,sha256=umugZYAyneFNgqRJBRMJPzm0u0B_TH8Sx_y-ykXnxpw,351
|
27
27
|
robotcode/robot/utils/variables.py,sha256=-ldL8mRRSYYW2pwlm8IpoDeQcG6LYBqaYyV_7U3xsIc,2174
|
28
28
|
robotcode/robot/utils/visitor.py,sha256=nP3O0qh3YYuxR6S8wYJRBFfNwIVgsgohURBlrnFkRYQ,2299
|
29
|
-
robotcode_robot-0.
|
30
|
-
robotcode_robot-0.
|
31
|
-
robotcode_robot-0.
|
32
|
-
robotcode_robot-0.
|
29
|
+
robotcode_robot-0.109.0.dist-info/METADATA,sha256=dWkp3IGYkd68LNyCB5VRJOx42oBRunhzmmbRV9XhquI,2242
|
30
|
+
robotcode_robot-0.109.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
31
|
+
robotcode_robot-0.109.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
32
|
+
robotcode_robot-0.109.0.dist-info/RECORD,,
|
File without changes
|
{robotcode_robot-0.108.1.dist-info → robotcode_robot-0.109.0.dist-info}/licenses/LICENSE.txt
RENAMED
File without changes
|