databricks-cli/libs
Denis Bilenko 2fee243586
Fix finding Python within virtualenv on Windows (#2034)
## Changes
Simplify logic for selecting Python to run when calculating default whl
build command: "python" on Windows and "python3" everywhere.

Python installers from python.org do not install python3.exe. In
virtualenv there is no python3.exe.

## Tests
Added new unit tests to create real venv with uv and simulate activation
by prepending venv/bin to PATH.
2024-12-20 07:45:32 +00:00
..
auth Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
cmdgroup Add error checking in tests and enable errcheck there (#1980) 2024-12-09 13:56:41 +01:00
cmdio Remove calls to `t.Setenv` from integration tests (#2018) 2024-12-16 12:34:37 +01:00
databrickscfg Remove calls to `t.Setenv` from integration tests (#2018) 2024-12-16 12:34:37 +01:00
dbr Extract functionality to detect if the CLI is running on DBR (#1889) 2024-11-14 16:10:45 +00:00
diag Properly read Git metadata when running inside workspace (#1945) 2024-12-05 10:13:13 +00:00
dyn Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
env Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
errs Rewrite 'interface{} -> any' (#1959) 2024-12-05 15:37:24 +00:00
exec Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
fakefs Consolidate test helpers for `io/fs` (#1906) 2024-11-15 15:37:21 +00:00
filer Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
fileset Make fileset take optional list of paths to list (#1684) 2024-08-19 15:15:14 +00:00
flags Remove dependency on ghodss/yaml (#2032) 2024-12-19 08:23:05 +00:00
folders Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
git Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
iamutil Move utility functions dealing with IAM to libs/iamutil (#1820) 2024-10-10 13:02:25 +00:00
jsonschema Custom annotations for bundle-specific JSON schema fields (#1957) 2024-12-18 10:19:14 +00:00
locker Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
log Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
notebook Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
process Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
python Fix finding Python within virtualenv on Windows (#2034) 2024-12-20 07:45:32 +00:00
set Show actionable errors for collaborative deployment scenarios (#1386) 2024-10-10 11:18:23 +00:00
sync Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
tags Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
template Remove calls to `t.Setenv` from integration tests (#2018) 2024-12-16 12:34:37 +01:00
terraform Move to a single prompt during bundle destroy (#1583) 2024-07-24 13:02:19 +00:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00
textutil Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
vfs Switch to `folders.FindDirWithLeaf` (#1963) 2024-12-11 09:44:22 +01:00