diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-16 09:58:35 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-16 09:58:35 -0400 |
commit | db949eb7a2e8e28d9808a638ae283de57043ab52 (patch) | |
tree | f41913c893b3a18f98195cb5159b0abf4b1e6cd4 /delivery_merge/cli | |
parent | 39b5aaff1550ce5bdb1982a6f0c532d5a975e7d2 (diff) | |
download | delivery_merge-db949eb7a2e8e28d9808a638ae283de57043ab52.tar.gz |
Implement force_yaml_channels()
* Switch from pyyaml to ruamel.yaml
Diffstat (limited to 'delivery_merge/cli')
-rw-r--r-- | delivery_merge/cli/merge.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/delivery_merge/cli/merge.py b/delivery_merge/cli/merge.py index 6cf421e..45adf64 100644 --- a/delivery_merge/cli/merge.py +++ b/delivery_merge/cli/merge.py @@ -1,6 +1,11 @@ import os from ..conda import conda, conda_installer, conda_init_path -from ..merge import env_combine, testable_packages, integration_test +from ..merge import ( + env_combine, + testable_packages, + integration_test, + force_yaml_channels +) from argparse import ArgumentParser @@ -53,6 +58,9 @@ def main(): print("Exporting yaml configuration...") conda('env', 'export', '-n', name, '--file', yamlfile) + print("Fix up yaml channel order...") + force_yaml_channels(yamlfile, channels) + print("Exporting explicit dump...") with open(specfile, 'w+') as spec: proc = conda('list', '--explicit', '-n', name) |