mirror of https://github.com/databricks/cli.git
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
|
|
>>> [CLI] bundle deploy
|
|
Uploading my_test_code-0.0.1-py3-none-any.whl...
|
|
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/python-wheel-local/default/files...
|
|
Deploying resources...
|
|
Updating deployment state...
|
|
Deployment complete!
|
|
|
|
>>> find.py --expect 1 whl
|
|
package/my_test_code-0.0.1-py3-none-any.whl
|
|
|
|
=== Expecting 1 wheel in libraries section in /jobs/create
|
|
>>> jq -s .[] | select(.path=="/api/2.1/jobs/create") | .body out.requests.txt
|
|
{
|
|
"deployment": {
|
|
"kind": "BUNDLE",
|
|
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/python-wheel-local/default/state/metadata.json"
|
|
},
|
|
"edit_mode": "UI_LOCKED",
|
|
"format": "MULTI_TASK",
|
|
"max_concurrent_runs": 1,
|
|
"name": "[default] My Wheel Job",
|
|
"queue": {
|
|
"enabled": true
|
|
},
|
|
"tasks": [
|
|
{
|
|
"existing_cluster_id": "0717-aaaaa-bbbbbb",
|
|
"libraries": [
|
|
{
|
|
"whl": "/Workspace/foo/bar/.internal/my_test_code-0.0.1-py3-none-any.whl"
|
|
}
|
|
],
|
|
"python_wheel_task": {
|
|
"entry_point": "run",
|
|
"package_name": "my_test_code"
|
|
},
|
|
"task_key": "TestTask"
|
|
}
|
|
]
|
|
}
|
|
|
|
=== Expecting 1 wheel to be uploaded
|
|
>>> jq .path
|
|
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/python-wheel-local/default/files/package/my_test_code-0.0.1-py3-none-any.whl"
|
|
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/.internal/my_test_code-0.0.1-py3-none-any.whl"
|