databricks-cli/bundle/config/mutator/python
Gleb Kanterov 44902fa350
Make `pydabs/venv_path` optional (#1687)
## Changes
Make `pydabs/venv_path` optional. When not specified, CLI detects the
Python interpreter using `python.DetectExecutable`, the same way as for
`artifacts`. `python.DetectExecutable` works correctly if a virtual
environment is activated or `python3` is available on PATH through other
means.

Extract the venv detection code from PyDABs into `libs/python/detect`.
This code will be used when we implement the `python/venv_path` section
in `databricks.yml`.

## Tests
Unit tests and manually

---------

Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com>
2024-08-20 13:26:57 +00:00
..
log_writer.go Add ApplyPythonMutator (#1430) 2024-06-20 08:43:08 +00:00
python_diagnostics.go Support multiple paths for diagnostics (#1616) 2024-07-25 15:16:27 +00:00
python_diagnostics_test.go Support multiple paths for diagnostics (#1616) 2024-07-25 15:16:27 +00:00
python_mutator.go Make `pydabs/venv_path` optional (#1687) 2024-08-20 13:26:57 +00:00
python_mutator_test.go Make `pydabs/venv_path` optional (#1687) 2024-08-20 13:26:57 +00:00