Skip to content

Commit

Permalink
Version 3.3.0 - Python Import Inject (#9)
Browse files Browse the repository at this point in the history
* ## [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](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__!=}`)

* ## [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](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__!=}`)
  • Loading branch information
CCP-Zeulix authored May 30, 2024
1 parent a3c0f0b commit 59f6c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alviss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.3.0-dev.1'
__version__ = '3.3.0'

__author__ = 'Thordur Matthiasson <thordurm@ccpgames.com>'
__license__ = 'MIT License'
Expand Down

0 comments on commit 59f6c9c

Please sign in to comment.