Skip to content

CI: Fixed linting on download_wheels #21042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/download_wheels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
"""Fetch wheels from wheels.scipy.org for a pandas version."""
import argparse
import pathlib
Expand All @@ -23,7 +24,7 @@ def fetch(version):
dest.mkdir(exist_ok=True)

files = [x for x in root.xpath("//a/text()")
if x.startswith(f'pandas-{version}')
if x.startswith('pandas-{}'.format(version))
and not dest.joinpath(x).exists()]

N = len(files)
Expand All @@ -32,7 +33,9 @@ def fetch(version):
out = str(dest.joinpath(filename))
link = urllib.request.urljoin(base, filename)
urllib.request.urlretrieve(link, out)
print(f"Downloaded {link} to {out} [{i}/{N}]")
print("Downloaded {link} to {out} [{i}/{N}]".format(
link=link, out=out, i=i, N=N
))


def main(args=None):
Expand Down