-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use multiple external repos for definitions and mappings (#311)
* Add output_directory option to parse_model_registration * Update config to use multiple repositories * Update codelist to use multiple external repos * Update RegionProcessor to use multiple external repos * Remove unnecessary repository_dimension_path * Update test for multiple external repos * Fix repository set for definitions and mappings * Add tests for config * Add test for multiple external repos * Revert to previous suggestion from @danielhuppmann * Apply suggestions from code review Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at> * Finish renaming in repo in loop * Switch cast to set order to clarity * Allow errors for rmtree for windows debugging * Attempt fix for failing Windows test * Remove all clean-up for Windows fix * Change repo permissions on Windows to delete * Re-introduce external repo cleanup * Add explicit errors for debugging * Try IWRITE for Windows permission change * Try onerror for rmtree * Get explicit removing errors * Update docs for usage of multiple repos --------- Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
- Loading branch information
1 parent
a9c47dc
commit 87311de
Showing
13 changed files
with
158 additions
and
58 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
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
9 changes: 9 additions & 0 deletions
9
tests/data/nomenclature_configs/multiple_repos_for_mapping.yaml
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,9 @@ | ||
repositories: | ||
common-definitions: | ||
url: https://github.com/IAMconsortium/common-definitions.git/ | ||
legacy-definitions: | ||
url: https://github.com/IAMconsortium/legacy-definitions.git/ | ||
mappings: | ||
repositories: | ||
- common-definitions | ||
- legacy-definitions |
10 changes: 10 additions & 0 deletions
10
tests/data/nomenclature_configs/multiple_repos_per_dimension.yaml
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 @@ | ||
repositories: | ||
common-definitions: | ||
url: https://github.com/IAMconsortium/common-definitions.git/ | ||
legacy-definitions: | ||
url: https://github.com/IAMconsortium/legacy-definitions.git/ | ||
definitions: | ||
variable: | ||
repository: | ||
- common-definitions | ||
- legacy-definitions |
Empty file.
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