fractal-server 2.3.0a2__py3-none-any.whl → 2.3.0a3__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.
- fractal_server/__init__.py +1 -1
- fractal_server/tasks/v2/background_operations_ssh.py +13 -3
- {fractal_server-2.3.0a2.dist-info → fractal_server-2.3.0a3.dist-info}/METADATA +1 -1
- {fractal_server-2.3.0a2.dist-info → fractal_server-2.3.0a3.dist-info}/RECORD +7 -7
- {fractal_server-2.3.0a2.dist-info → fractal_server-2.3.0a3.dist-info}/LICENSE +0 -0
- {fractal_server-2.3.0a2.dist-info → fractal_server-2.3.0a3.dist-info}/WHEEL +0 -0
- {fractal_server-2.3.0a2.dist-info → fractal_server-2.3.0a3.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "2.3.
|
1
|
+
__VERSION__ = "2.3.0a3"
|
@@ -32,7 +32,7 @@ def _parse_script_5_stdout(stdout: str) -> dict[str, str]:
|
|
32
32
|
("Python interpreter:", "python_bin"),
|
33
33
|
("Package name:", "package_name"),
|
34
34
|
("Package version:", "package_version"),
|
35
|
-
("Package parent folder:", "
|
35
|
+
("Package parent folder:", "package_root_parent_remote"),
|
36
36
|
("Manifest absolute path:", "manifest_path_remote"),
|
37
37
|
]
|
38
38
|
stdout_lines = stdout.splitlines()
|
@@ -253,11 +253,21 @@ def background_collect_pip_ssh(
|
|
253
253
|
logger.error(error_msg)
|
254
254
|
raise ValueError(error_msg)
|
255
255
|
# Extract/drop parsed attributes
|
256
|
-
pkg_attrs.pop("package_name")
|
256
|
+
package_name = pkg_attrs.pop("package_name")
|
257
257
|
python_bin = pkg_attrs.pop("python_bin")
|
258
|
-
|
258
|
+
package_root_parent_remote = pkg_attrs.pop(
|
259
|
+
"package_root_parent_remote"
|
260
|
+
)
|
259
261
|
manifest_path_remote = pkg_attrs.pop("manifest_path_remote")
|
260
262
|
|
263
|
+
# FIXME SSH: Use more robust logic to determine `package_root`,
|
264
|
+
# e.g. as in the custom task-collection endpoint (where we use
|
265
|
+
# `importlib.util.find_spec`)
|
266
|
+
package_name_underscore = package_name.replace("-", "_")
|
267
|
+
package_root_remote = (
|
268
|
+
Path(package_root_parent_remote) / package_name_underscore
|
269
|
+
).as_posix()
|
270
|
+
|
261
271
|
# Read and validate remote manifest file
|
262
272
|
with connection.sftp().open(manifest_path_remote, "r") as f:
|
263
273
|
manifest = json.load(f)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fractal_server/__init__.py,sha256
|
1
|
+
fractal_server/__init__.py,sha256=fJtYUzjhPItYuaLDEQFlfFa5BJQl-_QK0B61xD5i25Y,24
|
2
2
|
fractal_server/__main__.py,sha256=CocbzZooX1UtGqPi55GcHGNxnrJXFg5tUU5b3wyFCyo,4958
|
3
3
|
fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
|
4
4
|
fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -182,7 +182,7 @@ fractal_server/tasks/v2/_TaskCollectPip.py,sha256=kWQNMNZ8OEddkYhmhsk3E6ArcaD7qe
|
|
182
182
|
fractal_server/tasks/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
183
183
|
fractal_server/tasks/v2/_venv_pip.py,sha256=xm4XClWYbhXQRqDxYxM9cP7ZCnx-8b078fuVUL12D2M,6286
|
184
184
|
fractal_server/tasks/v2/background_operations.py,sha256=dfKH467G0tln9EKiDRzN2WW_eD1SvT3PJrMu4FyTCBs,11497
|
185
|
-
fractal_server/tasks/v2/background_operations_ssh.py,sha256=
|
185
|
+
fractal_server/tasks/v2/background_operations_ssh.py,sha256=K3gqAPZbkvJtsUFDbdvsRpt5oJXeiwT8MYEuwZpHMOI,12512
|
186
186
|
fractal_server/tasks/v2/endpoint_operations.py,sha256=gT38pl5TEH6WNWOtg4Itegt2lTJJI6YRa7fEj9Y4x2s,4226
|
187
187
|
fractal_server/tasks/v2/templates/_1_create_venv.sh,sha256=_Lr1UCWQycqea07YZFICxiwQVz9YZHYS-AaVFjNLUyQ,993
|
188
188
|
fractal_server/tasks/v2/templates/_2_upgrade_pip.sh,sha256=45CPrRxxNBq1ujDA8m1_LWt6QaN1G29mda_LbW2EjN8,626
|
@@ -192,8 +192,8 @@ fractal_server/tasks/v2/templates/_5_pip_show.sh,sha256=3onbKZ0PJkkYronP4_tdMBoA
|
|
192
192
|
fractal_server/tasks/v2/utils.py,sha256=JOyCacb6MNvrwfLNTyLwcz8y79J29YuJeJ2MK5kqXRM,1657
|
193
193
|
fractal_server/urls.py,sha256=5o_qq7PzKKbwq12NHSQZDmDitn5RAOeQ4xufu-2v9Zk,448
|
194
194
|
fractal_server/utils.py,sha256=b7WwFdcFZ8unyT65mloFToYuEDXpQoHRcmRNqrhd_dQ,2115
|
195
|
-
fractal_server-2.3.
|
196
|
-
fractal_server-2.3.
|
197
|
-
fractal_server-2.3.
|
198
|
-
fractal_server-2.3.
|
199
|
-
fractal_server-2.3.
|
195
|
+
fractal_server-2.3.0a3.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
196
|
+
fractal_server-2.3.0a3.dist-info/METADATA,sha256=60Gve43ZpUF0gj_6_8tx1xWDkmpf0q8fktP0FisvGD0,4427
|
197
|
+
fractal_server-2.3.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
198
|
+
fractal_server-2.3.0a3.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
199
|
+
fractal_server-2.3.0a3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|