Make dry runs exercise the mirror publishing code#1055
Conversation
|
Having build.py use I don't have strong feeling one way or the other. Keep the setup here or move moto to a different dependency group and us the pattern in check.py. |
|
Using |
|
pythonbuild is a local only package to support PBS development. Everything is an implicit "dev" dependency. Unless I'm missing something, dependency groups feels like avoidable complexity. |
|
Dependency groups allow for a different and typically smaller environments to be used for the different scripts. For example Given that there has not been any issues around the python environment size or time to create it I'd be in favor of just dumping everything into requirements and revisit is issues come up. |
4c1bd3b to
8c8bbf0
Compare
|
Apologies, y'all were commenting on #1051, which this PR was stacked on top of, but when the former was merged, I forgot to rebase this. |
To achieve this, the upload command now writes out the
SHA256SUMSfile before uploading them to github. During dry-run mode, the upload command exits immediately after writing the checksums.This is because the dry-run of the mirror upload step needs an existing
SHA256SUMSfile.Tests
A new test was added to prove that dry-run mode still doesn't talk to GitHub (but does write the checksum file).
Example dry run: https://github.com/astral-sh/python-build-standalone/actions/runs/23662482434