Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nextchanges/cli/environments-setup-local.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added the `databricks environments setup-local` command, which provisions (or updates) a local Python environment matched to a Databricks compute target. It resolves the target to an environment key, fetches the pinned Python version, databricks-connect version, and dependency constraints published for that key, then provisions a matched `.venv` with uv.
2 changes: 2 additions & 0 deletions acceptance/localenv/group-help/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions acceptance/localenv/group-help/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

>>> [CLI] environments --help
setup-local Set up a local Python environment that matches your Databricks compute
5 changes: 5 additions & 0 deletions acceptance/localenv/group-help/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Assert setup-local is now listed under the generated environments group (the
# visibility this PR unveils). Grep a single line rather than snapshotting the
# whole group help, which also lists generated API subcommands that churn on
# SDK regen.
trace $CLI environments --help | grep setup-local
1 change: 1 addition & 0 deletions acceptance/localenv/group-help/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["direct"]
4 changes: 0 additions & 4 deletions cmd/environments/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ Use this when you want to develop or debug a Databricks project locally: it inst

# See what would change without writing anything
databricks environments setup-local --serverless-version 5 --dry-run`,
// Hidden until the environment constraints repository is publicly
// available: the command is runnable for dogfooding but stays out of
// help and completion until it is unveiled.
Hidden: true,
}
// The target is selected via flags; reject stray positional args rather than
// silently ignoring them.
Expand Down
Loading