Skip to content

Port verify_distribution.py into pythonbuild#1058

Merged
indygreg merged 1 commit intomainfrom
gps-verify-distribution-refactor
Mar 27, 2026
Merged

Port verify_distribution.py into pythonbuild#1058
indygreg merged 1 commit intomainfrom
gps-verify-distribution-refactor

Conversation

@indygreg
Copy link
Copy Markdown
Collaborator

We move the custom unittest based tests from this file into a new pythonbuild/disttests package, deleting src/verify_distribution.py in the process.

We teach the new pythonbuild.testdist code to run our custom unittests given an extracted Python distribution. They now run by default.

Rust code for executing the Python in the distribution has been removed.

CI tests have been updated to invoke test-distribution.py when we support running the interpreter.

Behavior of test-distribution.py / pythonbuild.disttests has been changed so stdlib tests are no longer run by default. This is necessary to preserve backwards compatibility to keep CI passing.

Functionality is still a bit klunky IMO. I'll clean up the CLI UX a bit in future commits.

@indygreg indygreg force-pushed the gps-verify-distribution-refactor branch 2 times, most recently from 1aff3c6 to 824ae71 Compare March 26, 2026 09:15
Base automatically changed from gps-test-distribution-refactor to main March 26, 2026 19:36
@jjhelmus
Copy link
Copy Markdown
Contributor

The merge conflicts resulting from merging #1057 and #1051 will need to be resolved but then this looks good.

We move the custom `unittest` based tests from this file into a new
`pythonbuild/disttests` package, deleting `src/verify_distribution.py` in
the process.

We teach the new `pythonbuild.testdist` code to run our custom unittests
given an extracted Python distribution. They now run by default.

Rust code for executing the Python in the distribution has been removed.

CI tests have been updated to invoke `test-distribution.py` when we support
running the interpreter.

Behavior of `test-distribution.py` / `pythonbuild.disttests` has been
changed so stdlib tests are no longer run by default. This is necessary
to preserve backwards compatibility to keep CI passing.
@indygreg indygreg force-pushed the gps-verify-distribution-refactor branch from 824ae71 to 8941d6e Compare March 27, 2026 00:26
@indygreg indygreg merged commit db15e1a into main Mar 27, 2026
503 of 512 checks passed
@indygreg indygreg deleted the gps-verify-distribution-refactor branch March 27, 2026 00:57
indygreg added a commit that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants