Skip to content

Commit

Permalink
lazier lazy_wheel
Browse files Browse the repository at this point in the history
- handle short files `416`; prefetch entire dist-info
- lazy_wheel: translate BadZipfile to InvalidWheel
- handle 501 on negative bytes range from pypi
- catch UnsupportedWheel
- make lazy wheel work against tensorflow-gpu
- link to pypi discussion on negative byte ranges
- check for case when server doesn't support byte ranges at all
- remove _check_zip() method since we do that in prefetch_dist_info() now
- clean up error handling code and don't warn when negative ranges fail
- remove TODO, as Cache-Control: no-cache is the correct behavior
- rearrange explanatory comments
  • Loading branch information
dholth authored and cosmicexplorer committed Aug 9, 2023
1 parent 96f22c8 commit d237759
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 82 deletions.
2 changes: 2 additions & 0 deletions news/12208.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Implement lazier lazy_wheel that avoids the HEAD request, fetching the metadata
for many wheels in 1 request.
Loading

0 comments on commit d237759

Please sign in to comment.