-
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.
Ensure Salt and Python versions always follow supported ones (at least)
- Loading branch information
Showing
6 changed files
with
127 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ensured minimum and maximum supported Salt versions always at least follow their default values (supported versions at the time of the template release) when updating the template. |
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 @@ | ||
Dropped `workflows` question and `basic` and `org` workflow variants. All projects use the `enhanced` workflows from now on. |
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,24 @@ | ||
from pathlib import Path | ||
|
||
import copier.template | ||
import yaml | ||
|
||
TEMPLATE_ROOT = (Path(__file__).parent.parent.parent).resolve() | ||
|
||
|
||
def load_copier_conf(): | ||
""" | ||
Load the complete Copier configuration. | ||
""" | ||
return copier.template.load_template_config(TEMPLATE_ROOT / "copier.yml") | ||
|
||
|
||
def load_data_yaml(name): | ||
""" | ||
Load a file in the template root `data` directory. | ||
""" | ||
file = (TEMPLATE_ROOT / "data" / name).with_suffix(".yaml") | ||
if not file.exists(): | ||
raise OSError(f"The file '{file}' does not exist") | ||
with open(file, encoding="utf-8") as f: | ||
return yaml.safe_load(f) |
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