Skip to content

Check it yourself

stepmaniay-verification Public

Tests anyone can run against StepManiaY's published builds and ITGmania 1.3.0, the release it grew from.

Clone

Clone with HTTPS

Plain git over HTTPS: no account, no app, nothing else to install.

Download the source tarball 3.0 MB

fix(fetch): name the client, since stepmaniay.com's downloads refuse a bare Python one

stepmaniay developer · commit 287f674f37d41b90114191c462156d5634777ce6 parent a570a20

1 file changed: +7 −1

modified tools/fetch_engines.py +7 −1
@@ -16,6 +16,9 @@ import tarfile import urllib.request from pathlib import Path++# Named, since stepmaniay.com's downloads refuse a bare Python client.+USER_AGENT = "stepmaniay-verification (+https://stepmaniay.com/verification/)"   def sha256(path: Path) -> str:@@ -41,7 +44,10 @@         archive = root / f"{name}.tar.gz"         if not archive.exists() or sha256(archive) != engine["sha256"]:             print(f"downloading {name}", file=sys.stderr)-            urllib.request.urlretrieve(engine["url"], archive)+            request = urllib.request.Request(engine["url"], headers={"User-Agent": USER_AGENT})+            with urllib.request.urlopen(request) as response, open(archive, "wb") as out:+                while block := response.read(1 << 20):+                    out.write(block)         got = sha256(archive)         if got != engine["sha256"]:             archive.unlink()