Skip to content

Feat: Add ability to exclude dependencies in the requirements lock file#3544

Merged
izeigerman merged 1 commit intomainfrom
feat-support-excluding-deps-in-lock-file
Dec 20, 2024
Merged

Feat: Add ability to exclude dependencies in the requirements lock file#3544
izeigerman merged 1 commit intomainfrom
feat-support-excluding-deps-in-lock-file

Conversation

@izeigerman
Copy link
Copy Markdown
Collaborator

This adds ability to opt-out some dependencies and prevent them from being included by the automatic dependency detection logic.

@izeigerman izeigerman requested a review from a team December 20, 2024 01:10
Copy link
Copy Markdown
Collaborator

@erindru erindru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return ""


def _build_requirements(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this moved out?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cause context_diff should only care about the final set of requirements. Because of lazy computation I had to pass both provided_requirements and excluded_requirements into the instance itself just so that the actual value is computed later. This presented additional complications when it came to creating the no_diff instance, since I had to pass the excluded_requirements even though requirements were sourced from the target environment.

@izeigerman izeigerman merged commit 4f4f9f4 into main Dec 20, 2024
@izeigerman izeigerman deleted the feat-support-excluding-deps-in-lock-file branch December 20, 2024 16:26
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.

4 participants