Repository navigation
🐛 fix(venv): recreate when system_site_packages changes - #418
Merged
gaborbernat merged 2 commits intoNov 6, 2026
Merged
gaborbernat merged 2 commits into
gaborbernat merged 2 commits into
Conversation
`uv venv --system-site-packages` only takes effect while the environment is
being created, so the setting has to be part of python_cache for tox to know
the environment is stale. It was not, so flipping it changed nothing:
system_site_packages false -> true pyvenv.cfg stayed false
system_site_packages true -> false pyvenv.cfg stayed true
The false -> true direction is the one that hurts: you ask for the global
packages, tox reports success, and the environment still cannot see them.
uv_seed and uv_python_preference are in python_cache for exactly this reason.
centosinfra-prod-github-app Bot
pushed a commit
to ansible-collections/amazon.aws
that referenced
this pull request
Nov 18, 2026
Bumps the uv-deps group with 2 updates: tox-uv-bare and tox-ansible. Updates tox-uv-bare from 1.36.0 to 1.37.7 Release notes Sourced from tox-uv-bare's releases. 1.37.7 Bug fixes With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error. Environments with an older dependency cache are recreated once on upgrade (#424) by @qodelicious and @gaborbernat. package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox root (#425) by @qodelicious and @gaborbernat. 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.6 Bug fixes A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name, so Demo_Foo and demo-foo count as the same member instead of being sent to the index (#417) by @qodelicious and @gaborbernat. Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a lib/python3.13/site-packages directory that does not exist (#416) by @qodelicious and @gaborbernat. Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the environment, so py313d and py313td do not reuse an interpreter with different build options (#420) by @gaborbernat. Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect (#418) by @abhishekcpp007 and @gaborbernat. New Contributors @qodelicious made their first contribution in tox-dev/tox-uv#417 @abhishekcpp007 made their first contribution in tox-dev/tox-uv#418 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.5 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.4 Bug fixes ... (truncated) Changelog Sourced from tox-uv-bare's changelog. 1.37.7 (2026-11-07) Fixed With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error. Environments with an older dependency cache are recreated once on upgrade (#424) by @qodelicious and @gaborbernat. package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox root (#425) by @qodelicious and @gaborbernat. 1.37.6 (2026-11-06) Fixed A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name, so Demo_Foo and demo-foo count as the same member instead of being sent to the index (#417) by @qodelicious and @gaborbernat. Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a lib/python3.13/site-packages directory that does not exist (#416) by @qodelicious and @gaborbernat. Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the environment, so py313d and py313td do not reuse an interpreter with different build options (#420) by @gaborbernat. Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect (#418) by @abhishekcpp007 and @gaborbernat. 1.37.5 (2026-11-04) 1.37.4 (2026-11-03) ... (truncated) Commits efb3999 release 1.37.7 0af7c3b 🐛 fix(runner): preserve deps syntax with dependency groups (#424) 0d3a231 🐛 fix(package): install uv packages from package_root (#425) d513c2f 🔧 build(lint): adopt simplint 0.7.1 (#427) 37a229e 🧹 ci: pin shared workflows to 6.7.2 (#426) c5624d6 🧹 ci: pin shared workflows to 6.7.1 (#423) 8244581 👷 ci: run every hook under the cooldown (#422) 3c3714f release 1.37.6 f8e900d ⚡ ci: install only the changelog hook when preparing (#421) 9530aeb 🐛 fix(venv): honor debug Python variants (#420) Additional commits viewable in compare view Updates tox-ansible from 26.9.0 to 26.11.0 Release notes Sourced from tox-ansible's releases. v26.11.0 What's Changed fix(security): update dependencies [SECURITY] by @renovate[bot] in ansible/tox-ansible#610 fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout by @sudhirverma in ansible/tox-ansible#611 Full Changelog: ansible/tox-ansible@v26.10.0...v26.11.0 v26.10.0 What's Changed feat(impact_file): add scope-file interface for content-plugin-finder ImpactReport by @shvenkat-rh in ansible/tox-ansible#607 Full Changelog: ansible/tox-ansible@v26.9.0...v26.10.0 Commits df46f6e fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout ... 58fd690 fix(security): update dependencies [SECURITY] (#610) 1805ac6 feat(impact_file): add scope-file interface for content-plugin-finder ImpactR... See full diff in compare view Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase. Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: @dependabot rebase will rebase this PR @dependabot recreate will recreate this PR, overwriting any edits that have been made to it @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions Reviewed-by: Alina Buzachis Reviewed-by: Rahmanim Benny <brahmani@redhat.com>
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.
Changing
system_site_packagesafter creating an environment leftpyvenv.cfgat its previous value. Later tox runs reported success while package visibility stayed the same.The venv runner now includes the effective setting in tox's environment cache. Changing it recreates the environment so uv applies the new value.