Skip to content

Commit

Permalink
fix(find_dependencies): a GitHub issues URL can point us to the repo.
Browse files Browse the repository at this point in the history
This lets us find where `wheel` is hosted on GitHub.
  • Loading branch information
Ned Batchelder authored and nedbat committed Oct 13, 2023
1 parent c25c80f commit b9f0692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edx_repo_tools/find_dependencies/find_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def repo_url_from_tgz(tgz_path: str) -> Optional[str]:
r"(?i)^Project-URL: Source.*,\s*(.*)$",
r"(?i)^Home-page: (.*)$",
r"(?i)^Project-URL: Home.*,\s*(.*)$",
# If they point to GitHub issues, that's their repo.
r"(?i)^Project-URL: [^,]+,\s*(https?://github.com/[^/]+/[^/]+)/issues/?$",
# If we can't find a URL marked as home, then use any GitHub repo URL.
r"(?i)^Project-URL: [^,]+,\s*(https?://github.com/[^/]+/[^/]+)$",
]
Expand Down

0 comments on commit b9f0692

Please sign in to comment.