Add support for HTML indexes (#719)

## Summary

This PR adds support for HTML index responses (as with
`--index-url=https://download.pytorch.org/whl`).

Closes https://github.com/astral-sh/puffin/issues/412.
This commit is contained in:
Charlie Marsh 2023-12-24 11:04:00 -05:00 committed by GitHub
parent 9e6cb706a0
commit 5bce699ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 465 additions and 19 deletions

View file

@ -8,7 +8,8 @@ use thiserror::Error;
use pep440_rs::Version;
use puffin_normalize::{InvalidNameError, PackageName};
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum SourceDistExtension {
Zip,
TarGz,