(self, uri: ParseResult)
| 12 | scheme = "mirror" |
| 13 | |
| 14 | def __init__(self, uri: ParseResult): |
| 15 | self.uri = uri |
| 16 | self.opts = {"release": "latest"} |
| 17 | |
| 18 | self.package_name = uri.hostname |
| 19 | self.mirror_path = mirror.LocalMirror.get_mirror_path() # Path(uri.path) |
| 20 | self.package = PypiPackage.from_cached(self.package_name) |
| 21 | |
| 22 | self.opts.update(parse_qs(uri.query)) |
| 23 | self.comment = uri.fragment.lstrip("#") |
| 24 | |
| 25 | @property |
| 26 | def metadata(self): |
nothing calls this directly
no test coverage detected