You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a recipe.yaml that defines a bunch of outputs. They all have the same host requirements, but I think currently I have to define them separately for each subpackage output. This is particularly annoying when I want to change them because I have to change it for each.
With the new (experimental) feature of lists defined in context, can I define a list of host requirements there and then use the list for each of the outputs? Alternatively, can I define a "global" set of host requirements that get inherited by each output (95% sure not currently supported, but I kinda like the idea)
context:
version: ${{ env.get("VERSION") }}build_num: ${{ env.get("BUILD_NUM") }}source:
path: ../use_gitignore: truebuild:
number: ${{ build_num }}noarch: pythonrequirements:
host:
- pip
- poetry-core >=2.0.0
- tomlkit
- python
- python-build
- ruamel.yamlrun:
- python>=3.9outputs:
- package:
name: thing_aversion: ${{ version }}requirements:
# host: # purely inherited hererun:
# maybe inherited as a union, or if overriding at all, need to also specifiy the things listed in the "base"# - python>=3.9
- requests
- package:
name: thing_bversion: ${{ version }}requirements:
# host: # purely inherited hererun:
# maybe inherited as a union, or if overriding at all, need to also specifiy the things listed in the "base"# - python>=3.9
- pandas
The text was updated successfully, but these errors were encountered:
With the new (experimental) feature of lists defined in context, can I define a list of host requirements there and then use the list for each of the outputs?
I'm afraid that's not possible, and I can't think of a way of making it possible, short of changing how Jinja is used. However, that is likely to break some tooling.
I'm afraid that's not possible, and I can't think of a way of making it possible, short of changing how Jinja is used. However, that is likely to break some tooling.
Yeah, kinda expected so, but was hopeful :) Thank you for the quick reply, and from the implementer of the feature!
I have a
recipe.yaml
that defines a bunch of outputs. They all have the same host requirements, but I think currently I have to define them separately for each subpackage output. This is particularly annoying when I want to change them because I have to change it for each.With the new (experimental) feature of lists defined in
context
, can I define a list of host requirements there and then use the list for each of the outputs? Alternatively, can I define a "global" set of host requirements that get inherited by each output (95% sure not currently supported, but I kinda like the idea)current simplified recipe
simplified recipe using list in context
simplified recipe using inherited requirements
The text was updated successfully, but these errors were encountered: