-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add omittable_distros support for configs
- Loading branch information
1 parent
7d9f656
commit c2ae21d
Showing
14 changed files
with
384 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
This is a isolated site configuration specifically for testing omittable_distros. | ||
This allows for custom configuration of the default config without affecting other tests. | ||
|
||
* The [default](configs/default.json) config defines `omittable_distros` that can be | ||
inherited by other distros. It lists two distros that do not exist for this site. | ||
* [omittable/defined](omittable/defined.json) defines `omittable_distros` replacing it with a modified | ||
list of distros to omit for this URI and its children. | ||
* [omittable/inherited](omittable/inherited.json) does not define the `omittable_distros` and inherits | ||
from its parents which aren't defined so it finally inherits the value defined | ||
in the `default` config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "default", | ||
"context": [], | ||
"inherits": false, | ||
"distros": { | ||
"maya2020": [ | ||
"the_dcc_plugin_a", | ||
"the_dcc_plugin_b", | ||
"the_dcc_plugin_c" | ||
], | ||
"houdini19.5": [ | ||
"the_dcc_plugin_d" | ||
] | ||
}, | ||
"omittable_distros": [ | ||
"missing_dcc", | ||
"non-existent-distro", | ||
"the_dcc_plugin_b" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "defined", | ||
"context": ["omittable"], | ||
"description": "This config defines omittable_distros and will ignore the default.", | ||
"inherits": true, | ||
"distros": { | ||
"maya2020": [ | ||
"the_dcc_plugin_a", | ||
"the_dcc_plugin_b", | ||
"the_dcc_plugin_c" | ||
], | ||
"houdini19.5": [ | ||
"the_dcc_plugin_d" | ||
], | ||
"missing_dcc": [ | ||
"the_dcc_plugin_d", | ||
"non-existent-distro" | ||
] | ||
}, | ||
"omittable_distros": [ | ||
"houdini19.5", | ||
"missing_dcc", | ||
"non-existent-distro" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "inherited", | ||
"context": ["omittable"], | ||
"description": "This config doesn't define omittable_distros and will inherit from default.", | ||
"inherits": true, | ||
"distros": { | ||
"maya2020": [ | ||
"the_dcc_plugin_a", | ||
"the_dcc_plugin_b" | ||
], | ||
"missing_dcc": [ | ||
"the_dcc_plugin_d", | ||
"non-existent-distro" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "invalid", | ||
"context": ["omittable"], | ||
"description": "This config doesn't mark the distro missing_dcc as omittable_distros and will cause an InvalidRequirementError.", | ||
"inherits": true, | ||
"distros": { | ||
"maya2020": [ | ||
"the_dcc_plugin_a", | ||
"the_dcc_plugin_b", | ||
"the_dcc_plugin_c" | ||
], | ||
"houdini19.5": [ | ||
"the_dcc_plugin_d" | ||
], | ||
"missing_dcc": [ | ||
"the_dcc_plugin_d", | ||
"non-existent-distro" | ||
] | ||
}, | ||
"omittable_distros": [ | ||
"houdini19.5", | ||
"non-existent-distro" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"append": { | ||
"config_paths": [ | ||
"{relative_root}/configs" | ||
], | ||
"distro_paths": [ | ||
"{relative_root}/../distros/*" | ||
] | ||
}, | ||
"set": { | ||
"platforms": [ | ||
"windows", | ||
"linux" | ||
] | ||
} | ||
} |
Oops, something went wrong.