mirror of https://github.com/databricks/cli.git
43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
|
|
||
|
>>> [CLI] bundle deploy
|
||
|
Building my_test_code...
|
||
|
Building my_test_code_2...
|
||
|
Deploying resources...
|
||
|
Deployment complete!
|
||
|
Updating deployment state...
|
||
|
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/python-wheel/default/files...
|
||
|
Uploading my_test_code-0.0.1-py3-none-any.whl...
|
||
|
Uploading my_test_code_2-0.0.1-py3-none-any.whl...
|
||
|
|
||
|
>>> find.py --expect 2 whl
|
||
|
my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
|
||
|
my_test_code/dist/my_test_code_2-0.0.1-py3-none-any.whl
|
||
|
|
||
|
=== Expecting 2 wheels in libraries section in /jobs/create
|
||
|
>>> jq -s .[] | select(.path=="/api/2.1/jobs/create") | .body.tasks out.requests.txt
|
||
|
[
|
||
|
{
|
||
|
"existing_cluster_id": "0717-132531-5opeqon1",
|
||
|
"libraries": [
|
||
|
{
|
||
|
"whl": "/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/artifacts/.internal/my_test_code-0.0.1-py3-none-any.whl"
|
||
|
},
|
||
|
{
|
||
|
"whl": "/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/artifacts/.internal/my_test_code_2-0.0.1-py3-none-any.whl"
|
||
|
}
|
||
|
],
|
||
|
"python_wheel_task": {
|
||
|
"entry_point": "run",
|
||
|
"package_name": "my_test_code"
|
||
|
},
|
||
|
"task_key": "TestTask"
|
||
|
}
|
||
|
]
|
||
|
|
||
|
=== Expecting 2 wheels to be uploaded
|
||
|
>>> jq .path
|
||
|
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/artifacts/.internal/my_test_code-0.0.1-py3-none-any.whl"
|
||
|
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/artifacts/.internal/my_test_code_2-0.0.1-py3-none-any.whl"
|
||
|
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/files/my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl"
|
||
|
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/python-wheel/default/files/my_test_code/dist/my_test_code_2-0.0.1-py3-none-any.whl"
|