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:
Saugat Pachhai (सौगात)
2022-09-08 14:10:35 +03:00
committed by Ruslan Kuprieiev
parent df60df5242
commit c73764156e
18 changed files with 90 additions and 9 deletions
@@ -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"},
)