File tree Expand file tree Collapse file tree
acceptance/bundle/templates/default-python/combinations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import os
44import subprocess
55
6+ CLOUD_ENV = os .environ .get ("CLOUD_ENV" )
7+ if CLOUD_ENV and os .environ ["SERVERLESS" ] == "yes" and not os .environ .get ("TEST_METASTORE_ID" ):
8+ sys .exit (f"SKIP_TEST SERVERLESS=yes but TEST_METASTORE_ID is empty in this env { CLOUD_ENV = } " )
69
710BUILDING = "Building python_artifact"
811UPLOADING = "Uploading dist/"
Original file line number Diff line number Diff line change 11{
2- " project_name" : " my_default_python " ,
2+ " project_name" : " X$UNIQUE_NAME " ,
33 " include_notebook" : " $INCLUDE_NOTEBOOK" ,
44 " include_dlt" : " $INCLUDE_DLT" ,
55 " include_python" : " $INCLUDE_PYTHON" ,
Original file line number Diff line number Diff line change 22>>> [CLI] bundle init default-python --config-file ./input.json
33
44Welcome to the default Python template for Databricks Asset Bundles!
5- Workspace to use (auto-detected, edit in 'my_default_python /databricks.yml'): [DATABRICKS_URL]
5+ Workspace to use (auto-detected, edit in 'X[UNIQUE_NAME] /databricks.yml'): [DATABRICKS_URL]
66
7- ✨ Your new project has been created in the 'my_default_python ' directory!
7+ ✨ Your new project has been created in the 'X[UNIQUE_NAME] ' directory!
88
99Please refer to the README.md file for "getting started" instructions.
1010See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
1111
1212>>> [CLI] bundle validate -t dev
13- Name: my_default_python
13+ Name: X[UNIQUE_NAME]
1414Target: dev
1515Workspace:
1616 Host: [DATABRICKS_URL]
1717 User: [USERNAME]
18- Path: /Workspace/Users/[USERNAME]/.bundle/my_default_python /dev
18+ Path: /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME] /dev
1919
2020Validation OK!
2121
2222>>> [CLI] bundle validate -t prod
23- Name: my_default_python
23+ Name: X[UNIQUE_NAME]
2424Target: prod
2525Workspace:
2626 Host: [DATABRICKS_URL]
2727 User: [USERNAME]
28- Path: /Workspace/Users/[USERNAME]/.bundle/my_default_python /prod
28+ Path: /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME] /prod
2929
3030Validation OK!
3131
3232>>> ../check_output.py [CLI] bundle deploy -t dev
33- Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python /dev/files...
33+ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME] /dev/files...
3434Deploying resources...
3535Deployment complete!
Original file line number Diff line number Diff line change 11envsubst < input.json.tmpl > input.json
22trace $CLI bundle init default-python --config-file ./input.json
33
4- cd ./my_default_python
4+ cd ./X*
55trace $CLI bundle validate -t dev
66trace $CLI bundle validate -t prod
77
@@ -13,3 +13,5 @@ trace ../check_output.py $CLI bundle deploy -t dev
1313# Do not affect this repository's git behaviour #2318
1414mv .gitignore out.gitignore
1515rm .databricks/.gitignore
16+ cd ..
17+ rm -fr X*
Original file line number Diff line number Diff line change 1- Ignore = [" my_default_python" , " input.json" ]
1+ Cloud = true
2+
3+ Ignore = [" input.json" ]
24EnvMatrix.INCLUDE_NOTEBOOK = [" yes" , " no" ]
35EnvMatrix.INCLUDE_DLT = [" yes" , " no" ]
46EnvMatrix.INCLUDE_PYTHON = [" yes" , " no" ]
You can’t perform that action at this time.
0 commit comments