-
-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Conversation
davidism
commented
Sep 29, 2025
Member
It seems like adding 3.13t to base_python for this env may do the right thing. I want to avoid hard coding specific versions in more places, such as CI, especially outside the matrix, because it's more likely to be missed when changing what versions we test.
crusaderky
commented
Sep 30, 2025
Contributor
Author
apologies, my tox/uv knowledge is very limited (I normally use pixi) and can't figure this out.
If I change pyproject.toml to
[tool.tox.env.parallel] description = "check for free threading issues" base_python = ["3.13t", "3.14t"] commands = [[ "pytest", "-v", "--tb=short", "--basetemp=env_tmp_dir", "--parallel-threads=8", {replace = "posargs", default = [], extend = true}, ]]
then uv run --locked tox run -e parallel always runs on 3.13t.
Is there a command syntax (which I can't find in the documentation) to force 3.14t? Or should I just duplicate the environment?
[tool.tox.env.parallel-3.13t] description = "check for free threading issues" base_python = ["3.13t"] commands = [[ "pytest", "-v", "--tb=short", "--basetemp=env_tmp_dir", "--parallel-threads=8", {replace = "posargs", default = [], extend = true}, ]] [tool.tox.env.parallel-3.14t] description = "check for free threading issues" base_python = ["3.14t"] commands = [[ "pytest", "-v", "--tb=short", "--basetemp=env_tmp_dir", "--parallel-threads=8", {replace = "posargs", default = [], extend = true}, ]]
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #507.
Do not run the 'parallel' tox environment (which is hardcoded to 3.14t) twice unnecessarily: