A new expression for injecting values imported from/via Python like so
${__PY__:alviss.__version__}
This uses the ccptools.tpu.strimp.get_any(...) to import whatever the
expression key points to and inject into the parsed config
The use case here is mainly to inject dynamic Python values into Alviss
files "on-demand" like when using ccp-stencil
templates in a CI/CD pipe so you can have the ever-changing version of the
package you're working on injected automatically into the Alviss config file
used as Context for rendering Docker files, Kube manifests and so on
(similar to how it can be done in pyproject.toml)
This expression also adheres to the normal format of "defaults" (e.g.
${__PY__:alviss.__version__=Unknown}) and "required" (e.g.
${__PY__:alviss.__version__!=})
[3.3.0] - 2024-05-30
Added
${__PY__:alviss.__version__}
ccptools.tpu.strimp.get_any(...)
to import whatever the expression key points to and inject into the parsed configpyproject.toml
)${__PY__:alviss.__version__=Unknown}
) and "required" (e.g.${__PY__:alviss.__version__!=}
)