Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update prepare_recipe_in_local_feedstock() to copy over recipe from repo to fake feedstock #82

Merged
merged 2 commits into from
Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build_tools/conda_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def construct_pkg_ver(repo_dir, arg_version, arg_last_stable):
print("repo_dir: {d}".format(d=repo_dir))
files = ["recipe/conda_build_config.yaml",
"recipe/build.sh",
".ci_support/migrations/python38.yaml"]
".ci_support/migrations/python38.yaml",
".ci_support/migrations/hdf51106.yaml"]

if is_conda_forge_pkg:
if args.do_rerender:
Expand Down
11 changes: 11 additions & 0 deletions build_tools/release_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ def prepare_recipe_in_local_feedstock_repo(package_name, organization, repo_name
# merge this recipe to feedstock and delete the recipe from the repo.
#
repo_recipe = os.path.join(repo_dir, "recipe", "meta.yaml.in")

#
# if branch name starts with 'for_release', we are building a non conda-forge
# package for a release, and the branch should have the recipe ready for
# rerender, so just copy over to the fake feedstock.
#
for_release = branch.startswith("for_release")
if for_release:
shutil.copyfile(repo_recipe, recipe_file)
return SUCCESS

if os.path.isfile(repo_recipe):
print("\nNOTE: {r} exists, we will build using this recipe.\n".format(r=repo_recipe))
recipe_file_source = repo_recipe
Expand Down