robotcode-core 0.100.1__tar.gz → 0.101.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.
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/PKG-INFO +1 -1
- robotcode_core-0.101.0/src/robotcode/core/__version__.py +1 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/uri.py +1 -1
- robotcode_core-0.100.1/src/robotcode/core/__version__.py +0 -1
- robotcode_core-0.100.1/src/robotcode/core/utils/contextlib.py +0 -44
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/.gitignore +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/LICENSE.txt +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/README.md +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/pyproject.toml +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/__init__.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/async_tools.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/concurrent.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/documents_manager.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/event.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/filewatcher.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/ignore_spec.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/language.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/lsp/__init__.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/lsp/types.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/py.typed +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/text_document.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/types.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/__init__.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/caching.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/cli.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/dataclasses.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/debugpy.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/glob_path.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/inspect.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/logging.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/net.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/path.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/process.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/safe_eval.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/utils/version.py +0 -0
- {robotcode_core-0.100.1 → robotcode_core-0.101.0}/src/robotcode/core/workspace.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.101.0"
|
|
@@ -121,7 +121,7 @@ class Uri(Mapping[str, str]):
|
|
|
121
121
|
netloc = parse.unquote(self.netloc)
|
|
122
122
|
path = parse.unquote(self.path)
|
|
123
123
|
|
|
124
|
-
if self._parts.scheme
|
|
124
|
+
if self._parts.scheme not in ["file", "untitled"]:
|
|
125
125
|
raise InvalidUriError(f"Invalid URI scheme '{self!s}'.")
|
|
126
126
|
|
|
127
127
|
if netloc and self._parts.scheme == "file":
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.100.1"
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from contextlib import AbstractContextManager
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import Any, Callable, List, Literal, Optional, Union
|
|
5
|
-
|
|
6
|
-
from .path import same_file
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ChDir(AbstractContextManager[Any]):
|
|
10
|
-
def __init__(
|
|
11
|
-
self, path: "Union[str, os.PathLike[str], None]", verbose_callback: Optional[Callable[[str], None]] = None
|
|
12
|
-
) -> None:
|
|
13
|
-
self.path = path
|
|
14
|
-
self._old_cwd: List[Optional[Path]] = []
|
|
15
|
-
self._verbose_callback = verbose_callback
|
|
16
|
-
|
|
17
|
-
def __enter__(self) -> Optional[Path]:
|
|
18
|
-
result = Path.cwd()
|
|
19
|
-
|
|
20
|
-
if self.path is None or (self._old_cwd and same_file(self.path, Path.cwd())):
|
|
21
|
-
self._old_cwd.append(None)
|
|
22
|
-
else:
|
|
23
|
-
self._old_cwd.append(result)
|
|
24
|
-
|
|
25
|
-
if self.path:
|
|
26
|
-
if self._verbose_callback:
|
|
27
|
-
self._verbose_callback(f"Changing directory to {self.path}")
|
|
28
|
-
|
|
29
|
-
os.chdir(self.path)
|
|
30
|
-
|
|
31
|
-
return result
|
|
32
|
-
|
|
33
|
-
def __exit__(self, _exc_type: Any, _exc_value: Any, _traceback: Any) -> Literal[False]:
|
|
34
|
-
old_path = self._old_cwd.pop()
|
|
35
|
-
if old_path is not None:
|
|
36
|
-
if self._verbose_callback:
|
|
37
|
-
self._verbose_callback(f"Changing directory back to {old_path}")
|
|
38
|
-
|
|
39
|
-
os.chdir(old_path)
|
|
40
|
-
|
|
41
|
-
return False
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
chdir = ChDir
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|