feature: 'included_by' list
I have a use case where I want to (programmatically) refer to envs that had included the subject environment (inverse of deps/'is_included' ).
Example: create one 'jupyter notebook' environment for all envs that include the subject env.
Let me see if I did get that right.
Given 3 files:
# aaa.devenv.yml
name: AAA
include:
- another.devenv.yml
# bbb.devenv.yml
name: BBB
include:
- another.devenv.yml
# another.devenv.yml
name: ANOTHER
Do you want an option:
$ conda devenv '**/*.devenv.yml' --if-include=another.devenv.yml --execute echo from '{name}'
from AAA
from BBB
?
Let me see if I did get that right.
Given 3 files:
# aaa.devenv.yml name: AAA include: - another.devenv.yml# bbb.devenv.yml name: BBB include: - another.devenv.yml# another.devenv.yml name: ANOTHERDo you want an option:
$ conda devenv *.devenv.yml --if-include=another.devenv.yml --execute echo from {name} from AAA from BBB?
Not far off. Sorry I meant to have the counterpart for is_included. I just wanted to have a feature in the 'compilation' step, just a variable, and not have conda devenv do anything new (although integrating what your deps pkg can do would be nice).
I want something that allows me to:
# another.devenv.yml
name: ANOTHER
includes:
{{for e in included_by:
- e
{{endfor}}
gives:
name: another
includes:
- aaa.devenv.yml
- bbb.devenv.yml