instance-repo 1.1.0.dev0__tar.gz → 1.1.1.dev0__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.
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/PKG-INFO +1 -1
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/__init__.py +1 -1
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/splits.py +20 -2
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/PKG-INFO +1 -1
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/pyproject.toml +1 -1
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/README.md +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/_routing.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/_site_defaults.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/artifacts.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/bootstrap.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/cache.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/cli.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/__init__.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/benchmarks.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/config.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/datasets.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/images.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/instances.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/reports.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/scaffold.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/versions.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/clients/workflows.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/concurrency.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/content.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/endpoints.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/errors.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/image.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/layout.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/loader.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/models.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/paths.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/release.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/repo.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/retry.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/store/__init__.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/store/acr.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/store/base.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/store/oss.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/store/registry.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/tasktoml.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/transport.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo/validate.py +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/SOURCES.txt +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/dependency_links.txt +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/entry_points.txt +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/requires.txt +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/top_level.txt +0 -0
- {instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/setup.cfg +0 -0
|
@@ -224,11 +224,20 @@ class SplitsClient:
|
|
|
224
224
|
|
|
225
225
|
def update(self, dataset: str, split: str | None = None, *,
|
|
226
226
|
version: str | None = None, run_type: str = "",
|
|
227
|
-
dataset_split_id: str | None = None
|
|
227
|
+
dataset_split_id: str | None = None,
|
|
228
|
+
environment: str | None = None) -> DatasetSplit:
|
|
228
229
|
"""更新 split 记录(``PATCH /datasets/splits/detail``)。
|
|
229
230
|
|
|
230
231
|
服务端 body 仅接受 ``run_type``(**必填**:"train"/"eval",空串=清除);
|
|
231
|
-
|
|
232
|
+
写端点**仅限 online**(apiserver 对显式 pre 返回 400;pre 环境 split 的
|
|
233
|
+
run_type 变更经 ``versions.update(split_run_types=...)`` 走集合路由)。
|
|
234
|
+
|
|
235
|
+
``environment`` 语义与 :meth:`get`/:meth:`list` 对齐:显式参数优先,
|
|
236
|
+
缺省由 profile 派生。派生/显式为 ``pre`` 时**前置拒绝**(SchemaError)
|
|
237
|
+
——避免「存在性检查读 pre、写入却落 online」的读写环境撕裂(AP CLI
|
|
238
|
+
review 真机锤实:读 pre 查到、写 online 报 not found 或改错记录)。
|
|
239
|
+
显式 ``"online"`` 会拼进 query,请求自文档化;为空(无 profile)时
|
|
240
|
+
不拼参,服务端默认 online(向后兼容)。
|
|
232
241
|
|
|
233
242
|
寻址二选一:``dataset_split_id``(优先,split-first 精确记录 id)或
|
|
234
243
|
``dataset``+``split``(+可选 ``version``)name 三元组。
|
|
@@ -243,6 +252,15 @@ class SplitsClient:
|
|
|
243
252
|
f"&split={quote(split, safe='')}")
|
|
244
253
|
if (version or "").strip():
|
|
245
254
|
q += f"&version={quote(version, safe='')}"
|
|
255
|
+
env = self._env(environment)
|
|
256
|
+
if env == "pre":
|
|
257
|
+
raise SchemaError(
|
|
258
|
+
"splits.update is online-only: the split record write endpoint "
|
|
259
|
+
"(PATCH /datasets/splits/detail) only accepts the online "
|
|
260
|
+
"environment. To change the run_type of a pre split, use "
|
|
261
|
+
"versions.update(split_run_types={split: run_type}) instead.")
|
|
262
|
+
if env == "online":
|
|
263
|
+
q += "&environment=online"
|
|
246
264
|
rt = run_type or ""
|
|
247
265
|
if rt and rt not in RUN_TYPE_VALUES: # 空串=清除,合法
|
|
248
266
|
raise SchemaError(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{instance_repo-1.1.0.dev0 → instance_repo-1.1.1.dev0}/instance_repo.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|