pyinfra
pyinfra copied to clipboard
Add support for sha348
Is your feature request related to a problem? Please describe
Composer provides a sha348 of the build, but I can't validate it directly in pyinfra, because it doesn't have a sha348 method.
Describe the solution you'd like
Add a sha348 validation for files.download(). Optionally, probably cleaner, a way to give a specific hashing algorithm, e.g.
files.download('https://example.com/download.file', hash=abcxyz123, algorithm=sha512), or similar
Good suggestion, I'll propose a PR :)
@Fizzadar This issue can be closed (-> https://github.com/pyinfra-dev/pyinfra/pull/1247). I somehow forgot to include the appropriate Closes annotation.