code: def create_shipfile(target, source, env):
      
  
      source_dir = os.path.dirname(str(source[0]))
      recipe_name = os.path.basename(str(source[0]))[:-5]
  
      resman = RecipeManager()
  
      resman.add_recipe_actions(env['CUSTOM_STEPS'])
      resman.add_recipe_folder(source_dir, whitelist=[os.path.basename(str(source[0]))])
      recipe = resman.get_recipe(recipe_name)
  
      recipe.archive(str(target[0]))
docs: Create a .ship file with all dependencies.