Skip to content

Commit

Permalink
feat: allow uploading on main channel for v1 recipes (#337)
Browse files Browse the repository at this point in the history
* feat: allow uploading on main channel

* Update recipe/meta.yaml

---------

Co-authored-by: Wolf Vollprecht <w.vollprecht@gmail.com>
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent a6a0f09 commit 2523297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
11 changes: 0 additions & 11 deletions recipe/conda_forge_ci_setup/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,6 @@ def upload_package(feedstock_root, recipe_root, config_file, validate, private,
"is not allowed" % ("conda-forge", source_channel))
return

build_tool = determine_build_tool(feedstock_root)
if build_tool != CONDA_BUILD and upload_to_conda_forge:
# make sure that we are not uploading to the main conda-forge channel
# when building packages with `rattler-build`
if ["conda-forge", "main"] in channels:
print(
"Uploading to conda-forge's main channel is not yet allowed when building with rattler-build.\n"
"You can set a label channel in the channel_targets section of the config file\n"
"to upload to a label channel."
)
return

# get the git sha of the current commit
git_sha = subprocess.run(
Expand Down
3 changes: 2 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% set name = "conda-forge-ci-setup" %}
{% set version = "4.9.4" %}
{% set version = "4.10.0" %}
{% set build = 0 %}

{% set cuda_compiler_version = cuda_compiler_version or "None" %}
{% if cuda_compiler_version == "None" %}
# prioritize non-CUDA variant via build number
Expand Down

0 comments on commit 2523297

Please sign in to comment.