Skip to content

Commit

Permalink
handle source.url as list
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Nov 1, 2024
1 parent 8c4d97c commit 6d1e4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_smithy/linter/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def hint_sources_should_not_mention_pypi_io_but_pypi_org(
See https://github.com/conda-forge/staged-recipes/pull/27946
"""
for source_section in sources_section:
if (source_section.get("url", "") or "").startswith(
"https://pypi.io/"
):
source = source_section.get("url", "") or ""
sources = [source] if isinstance(source, str) else source
if any(s.startswith("https://pypi.io/") for s in sources):
hints.append(
"PyPI default URL is now pypi.org, and not pypi.io."
" You may want to update the default source url."
Expand Down

0 comments on commit 6d1e4e5

Please sign in to comment.