Beispiel #1
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 #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 __init__(self, pr_limit: int = 0):
     super().__init__(pr_limit)
     with tempfile.TemporaryDirectory() as tmpdir:
         self.cfp = get_cfp_file_path(tmpdir)[0]
Beispiel #4
0
 def __init__(self, pr_limit: int = 0):
     super().__init__(pr_limit)
     self.cfp = get_cfp_file_path()[0]