Skip to content

Conversation

@gaborbernat
Copy link
Member

  • Add VenvVersionCache application-level service with AsyncFileListener
  • Automatically invalidate cached Python versions when pyvenv.cfg files change or are deleted
  • Update VenvProjectViewNodeDecorator to use the new cache service
  • Add unit tests for version parsing
  • Update decorator tests to mock the cache service

This replaces the previous in-class ConcurrentHashMap caching with a proper service that can respond to file system changes.

Test plan

  • Unit tests pass
  • UI tests pass in CI
  • Verify version display updates when pyvenv.cfg is modified

- Add VenvVersionCache application-level service with AsyncFileListener
- Automatically invalidate cached Python versions when pyvenv.cfg files
  change or are deleted
- Update VenvProjectViewNodeDecorator to use the new cache service
- Add unit tests for version parsing
- Update decorator tests to mock the cache service

This replaces the previous in-class ConcurrentHashMap caching with a proper
service that can respond to file system changes.
@gaborbernat gaborbernat merged commit 53ff8c9 into tox-dev:main Jan 3, 2026
11 checks passed
gaborbernat added a commit to gaborbernat/PyVenvManage that referenced this pull request Jan 4, 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.

1 participant