truefoundry 0.4.8rc0__py3-none-any.whl → 0.4.9rc1__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.

@@ -897,6 +897,9 @@ class MlFoundryArtifactsRepository:
897
897
  page_token = page.next_page_token
898
898
 
899
899
  def _is_directory(self, artifact_path):
900
+ # TODO: Ideally server should return a flag to indicate if it is a directory
901
+ # For now we can rely on list_artifacts because generally in cloud buckets
902
+ # directories are not stored as separate entities - empty directories ideally do not exist
900
903
  for _ in self.list_artifacts(artifact_path, page_size=3):
901
904
  return True
902
905
  return False
@@ -1014,7 +1017,9 @@ class MlFoundryArtifactsRepository:
1014
1017
 
1015
1018
  def _get_file_paths_recur(self, src_artifact_dir_path, dst_local_dir_path):
1016
1019
  local_dir = os.path.join(dst_local_dir_path, src_artifact_dir_path)
1017
- dir_content = [ # prevent infinite loop, sometimes the dir is recursively included
1020
+ # prevent infinite loop, sometimes the dir is recursively included
1021
+ # TODO (chiragjn): Check why and when this happens
1022
+ dir_content = [
1018
1023
  file_info
1019
1024
  for file_info in self.list_artifacts(src_artifact_dir_path)
1020
1025
  if file_info.path != "." and file_info.path != src_artifact_dir_path
@@ -1099,8 +1104,8 @@ class MlFoundryArtifactsRepository:
1099
1104
 
1100
1105
  try:
1101
1106
  progress_bar.start()
1102
- # Check if the artifacts points to a directory
1103
- if self._is_directory(artifact_path):
1107
+ # empty string is treated as root directory
1108
+ if not artifact_path or self._is_directory(artifact_path):
1104
1109
  futures: List[Future] = []
1105
1110
  file_paths: List[Tuple[str, str]] = []
1106
1111
  abort_event = Event()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.4.8rc0
3
+ Version: 0.4.9rc1
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhishek@truefoundry.com
@@ -37,7 +37,7 @@ Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
37
37
  Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
38
38
  Requires-Dist: python-socketio[client] (>=5.5.2,<6.0.0)
39
39
  Requires-Dist: questionary (>=1.10.0,<2.0.0)
40
- Requires-Dist: requests (>=2.31.0,<3.0.0)
40
+ Requires-Dist: requests (>=2.18.0,<3.0.0)
41
41
  Requires-Dist: requirements-parser (>=0.11.0,<0.12.0)
42
42
  Requires-Dist: rich (>=13.7.1,<14.0.0)
43
43
  Requires-Dist: rich-click (>=1.2.1,<2.0.0)
@@ -125,7 +125,7 @@ truefoundry/langchain/utils.py,sha256=PGLDe9chZ3BuUjakexOGpIqZRFoHEgu-zJ9yKdpLLm
125
125
  truefoundry/logger.py,sha256=u-YCNjg5HBwE70uQcpjIG64Ghos-K2ulTWaxC03BSj4,714
126
126
  truefoundry/ml/__init__.py,sha256=2A1l7pgqbVRt3cRW_0Lxg92hyJEkMxkCUh1EFprrmc0,942
127
127
  truefoundry/ml/artifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
128
- truefoundry/ml/artifact/truefoundry_artifact_repo.py,sha256=VU8i3jnY62MLfzA3rxXuUjdqLz8Yaw4zqqPWSsf0mBg,45850
128
+ truefoundry/ml/artifact/truefoundry_artifact_repo.py,sha256=FksxhUpRHb9pgWZmAB16DhXqkAL6UIAPA1S3RJUApQU,46201
129
129
  truefoundry/ml/autogen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
130
130
  truefoundry/ml/autogen/client/__init__.py,sha256=B6Z0oUmE-S9YqUCDRpKDuTyNWX2Fmx4es7nWx7Bhy10,17600
131
131
  truefoundry/ml/autogen/client/api/__init__.py,sha256=3sMSljMIS3UHYeF0BcNvrPPx6VbBSRt_1IfDn-13Kyc,752
@@ -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.8rc0.dist-info/METADATA,sha256=29yqtR3hnoaIvy_2VfJprq87Jj1ycisFuMBTYVhGrTY,3102
359
- truefoundry-0.4.8rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
360
- truefoundry-0.4.8rc0.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
361
- truefoundry-0.4.8rc0.dist-info/RECORD,,
358
+ truefoundry-0.4.9rc1.dist-info/METADATA,sha256=9IU6anotmcm0swYYWFYpLojpa5xBZaGzLB59yczTOo0,3102
359
+ truefoundry-0.4.9rc1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
360
+ truefoundry-0.4.9rc1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
361
+ truefoundry-0.4.9rc1.dist-info/RECORD,,