cortexgrid 0.2.89__tar.gz → 0.2.90__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.5
2
2
  Name: cortexgrid
3
- Version: 0.2.89
3
+ Version: 0.2.90
4
4
  Summary: Connect your ML code to the RoboLab compute cluster — Ray, MLflow, and S3
5
5
  Project-URL: Homepage, https://github.com/robodatalab/cortexgrid
6
6
  Project-URL: Repository, https://github.com/robodatalab/cortexgrid
@@ -131,10 +131,17 @@ def bundle_class(
131
131
  len(desc.local_files),
132
132
  pip_requirements,
133
133
  )
134
+ # Ray unpacks a remote (s3://) working_dir zip by stripping its
135
+ # top-level directory when there is exactly one, so a bundle of a single
136
+ # package (model_gateway/) would lose that directory and its import
137
+ # path. Zipping under code/ gives Ray that one directory to strip.
134
138
  # make_archive returns the path it wrote. Rebuilding it with
135
139
  # Path.with_suffix would cut dotted names ("Qwen2.5-0.5B" -> "Qwen2.zip").
136
140
  archive = shutil.make_archive(
137
- str(Path(tmp) / f"{family}__{suffix}"), "zip", root_dir=str(code_root)
141
+ str(Path(tmp) / f"{family}__{suffix}"),
142
+ "zip",
143
+ root_dir=tmp,
144
+ base_dir=code_root.name,
138
145
  )
139
146
  bundle_url = upload(
140
147
  archive,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cortexgrid"
3
- version = "0.2.89"
3
+ version = "0.2.90"
4
4
  description = "Connect your ML code to the RoboLab compute cluster — Ray, MLflow, and S3"
5
5
  readme = "docs/cortexgrid/README.md"
6
6
  license = "Apache-2.0"
File without changes
File without changes