| |
@@ -137,7 +137,7 @@
|
| |
req.raise_for_status()
|
| |
total = int(req.headers["Content-Length"])
|
| |
with util.remove_on_error(cratef), open(cratef, "wb") as f:
|
| |
- for chunk in tqdm.tqdm(req.iter_content(), f"Downloading {cratef_base}".format(cratef_base),
|
| |
+ for chunk in tqdm.tqdm(req.iter_content(), f"Downloading {cratef_base}",
|
| |
total=total, unit="B", unit_scale=True):
|
| |
f.write(chunk)
|
| |
return cratef, crate, version
|
| |
@@ -231,7 +231,6 @@
|
| |
|
| |
|
| |
def make_diff(path, lines1, mtime1, lines2, mtime2):
|
| |
- relpath = "/".join(path.split("/")[-2:])
|
| |
return list(difflib.unified_diff(lines1, lines2,
|
| |
fromfile=path, tofile=path,
|
| |
fromfiledate=mtime1, tofiledate=mtime2))
|
| |
__main__.py
:make_diff
cfg.py
:ctypes.c_voidp
→ctypes.c_void_p
inspector.py
:metadata.Dependency
:Dependency
class is in scope,metadata
module is notmetadata.py
:from_json
method)dep
→f_dep
) so it does not get shadowed by an innerdep
loop variabletox.ini
:test.py
, it was removed when proper tests were addedNote that I was not able to figure out how to actually correctly launch the new tests.
I tried installing requirements.txt + tox + pytest into a virtualenv, but running both
tox
orpytest
failed to correctly load the tests.@zbyszek Could you document how to run the tests, please?