Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.3.0 - Python Import Inject #9

Merged
merged 3 commits into from
May 30, 2024

Conversation

CCP-Zeulix
Copy link
Collaborator

[3.3.0] - 2024-05-30

Added

  • 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__!=})

## Added

- 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](https://github.com/ccpgames/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__!=}`)
## Added

- 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](https://github.com/ccpgames/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__!=}`)
@CCP-Zeulix CCP-Zeulix merged commit 59f6c9c into main May 30, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant