aboutsummaryrefslogtreecommitdiff
path: root/delivery_merge/cli/merge.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-16 09:58:35 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-16 09:58:35 -0400
commitdb949eb7a2e8e28d9808a638ae283de57043ab52 (patch)
treef41913c893b3a18f98195cb5159b0abf4b1e6cd4 /delivery_merge/cli/merge.py
parent39b5aaff1550ce5bdb1982a6f0c532d5a975e7d2 (diff)
downloaddelivery_merge-db949eb7a2e8e28d9808a638ae283de57043ab52.tar.gz
Implement force_yaml_channels()
* Switch from pyyaml to ruamel.yaml
Diffstat (limited to 'delivery_merge/cli/merge.py')
-rw-r--r--delivery_merge/cli/merge.py10
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)