truefoundry 0.4.10__py3-none-any.whl → 0.4.11__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.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- truefoundry/ml/log_types/artifacts/utils.py +9 -2
- {truefoundry-0.4.10.dist-info → truefoundry-0.4.11.dist-info}/METADATA +1 -1
- {truefoundry-0.4.10.dist-info → truefoundry-0.4.11.dist-info}/RECORD +5 -5
- {truefoundry-0.4.10.dist-info → truefoundry-0.4.11.dist-info}/WHEEL +0 -0
- {truefoundry-0.4.10.dist-info → truefoundry-0.4.11.dist-info}/entry_points.txt +0 -0
|
@@ -2,7 +2,7 @@ import json
|
|
|
2
2
|
import logging
|
|
3
3
|
import os
|
|
4
4
|
import posixpath
|
|
5
|
-
from pathlib import Path
|
|
5
|
+
from pathlib import Path, PureWindowsPath
|
|
6
6
|
from typing import Any, Dict, Optional, Sequence, Tuple, Union
|
|
7
7
|
|
|
8
8
|
from truefoundry.ml.exceptions import MlFoundryException
|
|
@@ -11,6 +11,13 @@ from truefoundry.ml.log_types.artifacts.constants import DESCRIPTION_MAX_LENGTH
|
|
|
11
11
|
logger = logging.getLogger(__name__)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
def to_unix_path(path):
|
|
15
|
+
path = os.path.normpath(path)
|
|
16
|
+
if os.path.sep == "\\":
|
|
17
|
+
path = PureWindowsPath(path).as_posix()
|
|
18
|
+
return path
|
|
19
|
+
|
|
20
|
+
|
|
14
21
|
def _copy_tree(
|
|
15
22
|
root_dir: str, src_path: str, dest_path: str, dest_to_src: Dict[str, str]
|
|
16
23
|
):
|
|
@@ -136,7 +143,7 @@ def _get_src_dest_pairs(
|
|
|
136
143
|
dest_to_src_map: Dict[str, str],
|
|
137
144
|
) -> Sequence[Tuple[str, str]]:
|
|
138
145
|
src_dest_pairs = [
|
|
139
|
-
(src_path, os.path.relpath(dest_abs_path, root_dir))
|
|
146
|
+
(src_path, to_unix_path(os.path.relpath(dest_abs_path, root_dir)))
|
|
140
147
|
for dest_abs_path, src_path in dest_to_src_map.items()
|
|
141
148
|
]
|
|
142
149
|
return src_dest_pairs
|
|
@@ -323,7 +323,7 @@ truefoundry/ml/log_types/artifacts/dataset.py,sha256=a4dxd2EN8p7Ci-cLGGiDOboN3t0
|
|
|
323
323
|
truefoundry/ml/log_types/artifacts/general_artifact.py,sha256=_EOlNGMg2PFjlevlD6LEOsaQBBwRWs60PkzJases6tE,3927
|
|
324
324
|
truefoundry/ml/log_types/artifacts/model.py,sha256=Q4Phy8-5E8hDxHC-Zg-V1uj_-V3p1z6Wh6JC-zot0Vs,21912
|
|
325
325
|
truefoundry/ml/log_types/artifacts/model_extras.py,sha256=TIE73bLKfwIVzNiVcjmaZ841A70BHBwu4XAM6ZAQRFI,1045
|
|
326
|
-
truefoundry/ml/log_types/artifacts/utils.py,sha256=
|
|
326
|
+
truefoundry/ml/log_types/artifacts/utils.py,sha256=a7tjjeaNdG5EbecwJqkqsaOTfIDz8dwes2mIBScWxSw,6482
|
|
327
327
|
truefoundry/ml/log_types/image/__init__.py,sha256=fcOq8yQnNj1rkLcPeIjLXBpdA1WIeiPsXOlAAvMxx7M,76
|
|
328
328
|
truefoundry/ml/log_types/image/constants.py,sha256=wLtGEOA4T5fZHSlOXPuNDLX3lpbCtwlvGKPFk_1fah0,255
|
|
329
329
|
truefoundry/ml/log_types/image/image.py,sha256=qQnAVgErAq4Jn6wXFFpaveOd52zcjUuomUCqNRxO2io,12478
|
|
@@ -355,7 +355,7 @@ truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=5mBCIc-ON
|
|
|
355
355
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=Hf6Dk6Fu6P7DqsK5ULgraf9DStjgigf-kjaRAMBW-RU,8680
|
|
356
356
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
357
357
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
358
|
-
truefoundry-0.4.
|
|
359
|
-
truefoundry-0.4.
|
|
360
|
-
truefoundry-0.4.
|
|
361
|
-
truefoundry-0.4.
|
|
358
|
+
truefoundry-0.4.11.dist-info/METADATA,sha256=EuRuGtOb_dKSn7qB9M1eOorPfIwMAOeBaGpwd4QK1yA,3100
|
|
359
|
+
truefoundry-0.4.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
360
|
+
truefoundry-0.4.11.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
361
|
+
truefoundry-0.4.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|