From ab4e8099fb71af95b566f2d78e9d53523bdaa5c5 Mon Sep 17 00:00:00 2001 From: Gleb Kanterov Date: Mon, 19 Aug 2024 15:24:56 +0200 Subject: [PATCH] Add `import` option for PyDABs (#1693) ## Changes Add 'import' option for PyDABs ## Tests Manually --- bundle/config/experimental.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundle/config/experimental.go b/bundle/config/experimental.go index 12048a32..66e97582 100644 --- a/bundle/config/experimental.go +++ b/bundle/config/experimental.go @@ -39,6 +39,12 @@ type PyDABs struct { // Required if PyDABs is enabled. PyDABs will load the code in the specified // environment. VEnvPath string `json:"venv_path,omitempty"` + + // Import contains a list Python packages with PyDABs code. + // + // These packages are imported to discover resources, resource generators, and mutators. + // This list can include namespace packages, which causes the import of nested packages. + Import []string `json:"import,omitempty"` } type Command string