-
Notifications
You must be signed in to change notification settings - Fork 2
Patch check_pip #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Patch check_pip #162
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5c0f3c1
[FIX] added possible fix for #161
reactive-firewall 5eedfbd
[PATCH] cleaned up the initial fix for check_pip (- WIP #161 -)
reactive-firewall d5e7ae1
[REGRESSION] possible fix for check_pip (- WIP #161 -)
reactive-firewall 5c30da8
[UPDATE] sync with master
reactive-firewall 53169fa
[REGRESSION] Possible workaround part 1
reactive-firewall a735cfb
[REGRESSION] Possible workaround part 2
reactive-firewall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ wheel>=0.44 | |
# pip - MIT license | ||
pip>=22.0 | ||
# build - MIT license | ||
build>=1.2.1 | ||
build>=1.2.1, !=1.2.2.post1 |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai,
CI found found a test bug:
this is coming from the test code in
tests/test_deps.py
around line 69.The regular expression misses PEP-440 style
a#
,b#
,rc#
,.pre#
and.post#
suffixes.Help me fix the regular expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reactive-firewall,
The current regular expression doesn't account for PEP-440 version suffixes like
a#
,b#
,rc#
,.pre#
, and.post#
. To fix this, we need to update the regex to accommodate these suffixes.Here's an updated regex that should cover these cases:
r'^\s*[a-zA-Z0-9_\-\.]+(?:,?\s*(?:==|!=|>=|<=|>|<)\s*[0-9]+(?:\.[0-9]+)*(?:[a-zA-Z]+[0-9]*)?(?:\.[a-zA-Z]+[0-9]*)*)+(?:\s*(?:#.*)?)$'
This regex allows for:
rc1
,post1
), and additional dot-separated segments.Please update the regular expression in
tests/test_deps.py
around line 69 with this updated version to fix the test failure.I recall from previous learnings that requirements lines may include multiple version specifiers separated by commas, and that the regex should accommodate this format.
Let me know if you need any further assistance.
✏️ Learnings added
🧠 Learnings used