asta-code-execution 0.1.4__tar.gz → 0.1.5__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.
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/PKG-INFO +1 -1
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/pyproject.toml +1 -1
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/process_backend.py +2 -5
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/README.md +0 -0
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/__init__.py +0 -0
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/executor.py +0 -0
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/ipython_session.py +0 -0
- {asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/py.typed +0 -0
{asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/process_backend.py
RENAMED
|
@@ -150,15 +150,12 @@ class ProcessIPythonBackend:
|
|
|
150
150
|
)
|
|
151
151
|
|
|
152
152
|
# Install code_execution package so the sandbox runner can import it.
|
|
153
|
-
# In the workspace dev layout, packages/code_execution/pyproject.toml is
|
|
154
|
-
# three levels up from this file; install editable from there. When the
|
|
155
|
-
# parent process is running from a normal site-packages install, that
|
|
156
|
-
# path is the site-packages parent dir (no pyproject.toml), so fall back
|
|
157
|
-
# to installing the published wheel pinned to the loaded version.
|
|
158
153
|
code_exec_pkg = Path(__file__).resolve().parent.parent.parent
|
|
159
154
|
if (code_exec_pkg / "pyproject.toml").is_file():
|
|
155
|
+
# Running from local workspace
|
|
160
156
|
install_spec = ["-e", str(code_exec_pkg)]
|
|
161
157
|
else:
|
|
158
|
+
# Running from pip-installed cli
|
|
162
159
|
version = importlib.metadata.version("asta-code-execution")
|
|
163
160
|
install_spec = [f"asta-code-execution=={version}"]
|
|
164
161
|
subprocess.run(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asta_code_execution-0.1.4 → asta_code_execution-0.1.5}/src/code_execution/ipython_session.py
RENAMED
|
File without changes
|
|
File without changes
|