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

Disable uploading to conda-forge/label/main if sources include other labels #66

Open
isuruf opened this issue Oct 21, 2019 · 0 comments

Comments

@isuruf
Copy link
Member

isuruf commented Oct 21, 2019

This section

upload_to_conda_forge = any(owner == "conda-forge" for owner, _ in channels)
if upload_to_conda_forge and "channel_sources" in specific_config:
unknown_channel = False
allowed_channels = ["conda-forge", "conda-forge/label/", "defaults", "c4aarch64", "c4armv7l"]
for source_channel in source_channels.split(","):
for c in allowed_channels:
if source_channel.startswith(c):
break
else:
print("Uploading to conda-forge with source channel '{}' is not allowed".format(source_channel))
return
needs to be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant