Beispiel #1
0
 def migrate(self, recipe_dir: str, attrs: "AttrsTypedDict",
             **kwargs: Any) -> "MigrationUidTypedDict":
     with indir(recipe_dir):
         content, self.messages = update_cb3("meta.yaml", self.cfp)
         with open("meta.yaml", "w") as f:
             f.write(content)
         self.set_build_number("meta.yaml")
     return super().migrate(recipe_dir, attrs)
Beispiel #2
0
 def __call__(self, args):
     from conda_smithy.update_cb3 import update_cb3
     from conda_smithy.configure_feedstock import get_cfp_file_path
     recipe_file = os.path.join(args.recipe_directory, 'meta.yaml')
     output_file = args.output
     if output_file is None:
         output_file = recipe_file
     if args.cbc is None:
         cbc, _ = get_cfp_file_path()
     else:
         cbc = os.path.join(os.getcwd(), args.cbc)
     output_content, messages = update_cb3(recipe_file, cbc)
     with io.open(output_file, 'w') as fh:
         fh.write(output_content)
     print("List of changes done to the recipe:")
     print(messages)
Beispiel #3
0
    def __call__(self, args):
        from conda_smithy.update_cb3 import update_cb3
        from conda_smithy.configure_feedstock import get_cfp_file_path

        recipe_file = os.path.join(args.recipe_directory, "meta.yaml")
        output_file = args.output
        if output_file is None:
            output_file = recipe_file
        if args.cbc is None:
            cbc, _ = get_cfp_file_path()
        else:
            cbc = os.path.join(os.getcwd(), args.cbc)
        output_content, messages = update_cb3(recipe_file, cbc)
        with io.open(output_file, "w") as fh:
            fh.write(output_content)
        print("List of changes done to the recipe:")
        print(messages)