mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 23:11:44 +01:00
metadata: support custom metadata in .dvc files
This adds support for custom metadata in outputs under `meta` key. Also adds `--meta` flag to `add`/`import`/`import-url` that supports `key=value` values.
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
df60df5242
commit
c73764156e
@@ -26,6 +26,10 @@ def test_add_annotations(mocker, func, args):
|
||||
"model",
|
||||
"--desc",
|
||||
"description",
|
||||
"--meta",
|
||||
"key1=value1",
|
||||
"--meta",
|
||||
"key2=value2",
|
||||
]
|
||||
)
|
||||
|
||||
@@ -39,4 +43,5 @@ def test_add_annotations(mocker, func, args):
|
||||
desc="description",
|
||||
type="model",
|
||||
labels=["example-get-started", "model-registry"],
|
||||
meta={"key1": "value1", "key2": "value2"},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user