databricks-cli/bundle/artifacts
Andrew Nester 5f6289e3a7
Allow referencing local Python wheels without artifacts section defined (#703)
## Changes
Now if the user reference local Python wheel files and do not specify
"artifacts" section, this file will be automatically uploaded by CLI.

Fixes #693 

## Tests
Added unit tests

Ran bundle deploy for this configuration
```
resources:
  jobs:
    some_other_job:
      name: "[${bundle.environment}] My Wheel Job"
      tasks:
        - task_key: TestTask
          existing_cluster_id: ${var.job_existing_cluster}
          python_wheel_task:
            package_name: "my_test_code"
            entry_point: "run"
          libraries:
          - whl: ./dist/*.whl
 ```
 
 Result
 
 ```
andrew.nester@HFW9Y94129 wheel % databricks bundle deploy
artifacts.whl.AutoDetect: Detecting Python wheel project...
artifacts.whl.AutoDetect: No Python wheel project found at bundle root folder
Starting upload of bundle files
Uploaded bundle files at /Users/andrew.nester@databricks.com/.bundle/wheel-task/default/files!

artifacts.Upload(my_test_code-0.0.1-py3-none-any.whl): Uploading...
artifacts.Upload(my_test_code-0.0.1-py3-none-any.whl): Upload succeeded
 
 ```
2023-08-28 16:29:04 +00:00
..
whl Allow referencing local Python wheels without artifacts section defined (#703) 2023-08-28 16:29:04 +00:00
all.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
artifacts.go Added support for artifacts building for bundles (#583) 2023-07-25 13:35:08 +02:00
autodetect.go Allow referencing local Python wheels without artifacts section defined (#703) 2023-08-28 16:29:04 +00:00
build.go Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
infer.go Allow referencing local Python wheels without artifacts section defined (#703) 2023-08-28 16:29:04 +00:00
upload.go Added support for artifacts building for bundles (#583) 2023-07-25 13:35:08 +02:00