(cls, filename)
| 613 | |
| 614 | @classmethod |
| 615 | def get_dist_class(cls, filename): |
| 616 | if filename.endswith(".whl"): |
| 617 | return Wheel |
| 618 | elif filename.endswith( |
| 619 | ( |
| 620 | ".zip", |
| 621 | ".tar.gz", |
| 622 | ) |
| 623 | ): |
| 624 | return Sdist |
| 625 | raise InvalidDistributionFilename(filename) |
| 626 | |
| 627 | @classmethod |
| 628 | def from_filename(cls, filename): |
no test coverage detected