(commit_hash, zip_dir, *, org='python', binary=False, verbose)
| 54 | return resp |
| 55 | |
| 56 | def fetch_zip(commit_hash, zip_dir, *, org='python', binary=False, verbose): |
| 57 | repo = 'cpython-bin-deps' if binary else 'cpython-source-deps' |
| 58 | url = f'https://github.com/{org}/{repo}/archive/{commit_hash}.zip' |
| 59 | reporthook = None |
| 60 | if verbose: |
| 61 | reporthook = print |
| 62 | zip_dir.mkdir(parents=True, exist_ok=True) |
| 63 | filename, _headers = retrieve_with_retries( |
| 64 | url, |
| 65 | zip_dir / f'{commit_hash}.zip', |
| 66 | reporthook |
| 67 | ) |
| 68 | return filename |
| 69 | |
| 70 | |
| 71 | def fetch_release(tag, tarball_dir, *, org='python', verbose=False): |
no test coverage detected
searching dependent graphs…