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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: asta-code-execution
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Add your description here
5
5
  Author: Allen Institute for Artificial Intelligence
6
6
  Requires-Dist: ipython>=9.9.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "asta-code-execution"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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(