generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before we were guessing the URL at pythonhosted.org based on pypi/warehouse#1944. This works in theory, but there are over 100k wheels uploaded with the wrong python tags (i.e., the tag in index metadata doesn't match the tag in the .whl filename). Instead, pypi_file takes a package name, version, filename, and sha256, fetches package metadata from pypi (or a compatible index), and uses that URL to download the package. It's still pure Bazel, thanks to the PyPI JSON API and Bazel's JSON support.
- Loading branch information
Showing
9 changed files
with
710 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.