dynamic Python version and stub-only source fallback#209
Open
heatherzh01 wants to merge 1 commit intomainfrom
Open
dynamic Python version and stub-only source fallback#209heatherzh01 wants to merge 1 commit intomainfrom
heatherzh01 wants to merge 1 commit intomainfrom
Conversation
|
Caution There are some errors in your PipelineRun template.
|
zvigrinberg
reviewed
Mar 18, 2026
Collaborator
zvigrinberg
left a comment
There was a problem hiding this comment.
@heatherzh01 What is the file [src/evaluation/.DS_Store](https://github.com/RHEcosystemAppEng/vulnerability-analysis/pull/209/changes#diff-754a61c3da543f16eea5d7c741b6e2c7c2f307837faaa6c4047b7200532ccf1c) and how is it belong here?
zvigrinberg
approved these changes
Mar 22, 2026
Collaborator
There was a problem hiding this comment.
@heatherzh01 This looks correct and solving the CI' tests' python problems.
@vbelouso Can you please take another look on that for a 4 eyes control?
Collaborator
|
@heatherzh01 please don't merge yet |
Collaborator
|
return to this PR after review #213 |
- Implement _find_module_dirs to map package names to module directories - Add _fallback_if_stub_only to download actual source from PyPI - Support types-*, *-stubs, and mypy-boto3-* stub packages - Use importlib.metadata + dist-info + naming patterns for detection
3f9497a to
c549a2c
Compare
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.
Integrated
determine_python_versionintoinstall_dependencies, usinguv venv --python <version>to create transitive env with the correct Python version from repo contentAdded stub-only package detection after pip install, with automatic fallback to download sdist from PyPI and copy
.pysource files intosite-packagesfor transitive analysis