-
-
Notifications
You must be signed in to change notification settings - Fork 542
Prevent Tox from hanging with --installpkg
sdist due to orphaned build backend
#3530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gaborbernat
merged 19 commits into
tox-dev:main
from
vytas7:3512-hangs-on-installpkg-sdist
Sep 3, 2025
Merged
Changes from 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bdc2bc2
Fix Tox hanging with --installpkg sdist due to orphaned build backend.
vytas7 3220551
Fix swapped characters.
vytas7 356525f
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
gaborbernat ed31344
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
vytas7 6859b3b
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
vytas7 5a83a44
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
vytas7 d3e23c9
Add a Towncrier newsfragment.
vytas7 4ff3fcc
Add an integration test exercising the scenario from #3512.
vytas7 99adb4c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 735c891
Address issues found in static code analysis.
vytas7 6539415
Undo debugging changes.
vytas7 6708d1d
Fix a typing PEBCAK.
vytas7 8e02c54
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
vytas7 3336289
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
gaborbernat bfb34a5
Remove `--exit-and-dump-after` as it may be killing the suite itself.
vytas7 89f5ff7
Merge branch 'main' into 3512-hangs-on-installpkg-sdist
vytas7 79f3ec6
Wrap newsfragment lines at 120 characters.
vytas7 409b946
Explicitly close down the existing PEP 517 frontend when resetting root.
vytas7 85f6b69
Remove debugging leftovers from a test case name.
vytas7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Prevent tox from hanging upon exit due to orphaned build threads and | ||
subprocesses when the ``--installpkg`` option is used with *sdist*. | ||
- by :user:`vytas7` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,3 +458,27 @@ def test_pyproject_config_settings_editable_legacy( | |
"get_requires_for_build_wheel": {"C": "3"}, | ||
"prepare_metadata_for_build_wheel": {"D": "4"}, | ||
} | ||
|
||
|
||
@pytest.mark.usefixtures("enable_pip_pypi_access") | ||
def test_aaa_pyproject_installpkg_pep517_envs( | ||
tox_project: ToxProjectCreator, | ||
pkg_with_pdm_backend: Path, | ||
) -> None: | ||
# Regression test for #3512 | ||
tox_ini = """ | ||
[tox] | ||
envlist = dummy1,dummy2 | ||
|
||
[testenv:dummy1] | ||
commands = | ||
python -c print(1) | ||
|
||
[testenv:dummy2] | ||
commands = | ||
python -c print(42) | ||
""" | ||
sdist = pkg_with_pdm_backend / "dist" / "skeleton-0.1.1337.tar.gz" | ||
proj = tox_project({"tox.ini": tox_ini}, base=pkg_with_pdm_backend) | ||
result = proj.run("--installpkg", str(sdist), "--exit-and-dump-after", "10") | ||
|
||
result.assert_success() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.