Get wheel names from Anaconda HTML directory. This looks in the Anaconda multibuild-wheels-staging page and parses the HTML to get all the wheel names for a release version. Parameters ---------- version : str The release version. For instance, "1.18.3".
(version)
| 45 | |
| 46 | |
| 47 | def get_wheel_names(version): |
| 48 | """ Get wheel names from Anaconda HTML directory. |
| 49 | |
| 50 | This looks in the Anaconda multibuild-wheels-staging page and |
| 51 | parses the HTML to get all the wheel names for a release version. |
| 52 | |
| 53 | Parameters |
| 54 | ---------- |
| 55 | version : str |
| 56 | The release version. For instance, "1.18.3". |
| 57 | |
| 58 | """ |
| 59 | http = urllib3.PoolManager(cert_reqs="CERT_REQUIRED") |
| 60 | tmpl = re.compile(rf"^.*{PREFIX}-{version}{SUFFIX}") |
| 61 | index_url = f"{STAGING_URL}/files" |
| 62 | index_html = http.request("GET", index_url) |
| 63 | soup = BeautifulSoup(index_html.data, "html.parser") |
| 64 | return soup.find_all(string=tmpl) |
| 65 | |
| 66 | |
| 67 | def download_wheels(version, wheelhouse): |
no test coverage detected