databricks / bundle-examples

Examples of Databricks Asset Bundles
Other
89 stars 30 forks source link

Added bundle example for Python project with common lib package #1

Closed andrewnester closed 1 year ago

andrewnester commented 1 year ago

Added bundle example for Python project with common lib package

Example run

andrew.nester@HFW9Y94129 job_with_python_wheel_task % cd example && databricks bundle deploy   
artifacts.whl.Build(common): Building...
artifacts.whl.Build(common): Build succeeded
artifacts.whl.Build(example): Building...
artifacts.whl.Build(example): Build succeeded
Starting upload of bundle files
Uploaded bundle files at /Users/andrew.nester@databricks.com/.bundle/job_with_python_wheel_task/default/files!

artifacts.Upload(lib-0.0.1-py3-none-any.whl): Uploading...
artifacts.Upload(lib-0.0.1-py3-none-any.whl): Upload succeeded
artifacts.Upload(example-0.0.1-py3-none-any.whl): Uploading...
artifacts.Upload(example-0.0.1-py3-none-any.whl): Upload succeeded
Starting resource deployment
Resource deployment completed!
andrew.nester@HFW9Y94129 example % databricks bundle run test_job
Run URL: ***

2023-07-26 13:18:18 "[default] Job With Wheel Task" TERMINATED SUCCESS 
Output:
=======
Task TestTask:
Hello from my example
Hello from common lib
lennartkats-db commented 1 year ago

@andrewnester It looks like this was inadvertently closed; feel free to reopen this. If we have an example like this it would be good to base it on the default-python template, so customers always have the same structure with a tests/ and resources/ dir.