-
-
Notifications
You must be signed in to change notification settings - Fork 96
feat: Change requirements parser #327
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
madpah
merged 12 commits into
CycloneDX:master
from
mostafa:feat/parse-requirements-txt-with-locally-referenced-packages
Mar 10, 2022
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
73b2182
feat: Add pip-requirements-parser and update virtualenv to latest ver…
mostafa addc21a
refactor: Replace requirements file parser
mostafa 25333c4
test: Add test for Git URLs
mostafa ef8148f
refactor: remove unnecessary import (flake8 error)
mostafa 82cb655
refactor: ignore mypy type errors and add proper annotation to _Tempo…
mostafa d0856e9
test: add test for nested requirements file parsing
mostafa 4be30e2
test: add remote URL as requirements line
mostafa 684d4f0
fix: Try to fix the temp file issue on Windows machines
mostafa 90b336f
refactor: Apply suggestions by @jkowalleck
mostafa 75d325d
style: sort imports
mostafa 9e9021d
docs: update RequirementsFileParser docs to include nested file support
mostafa fdec44b
fix: sort imports
mostafa 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ./myproject/certifi # comment | ||
| ./myproject/chardet | ||
| -e ./myproject/idna.whl | ||
| ./myproject/requests --hash=sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804 | ||
| ./myproject/urllib3 | ||
| https://example.com/mypackage.whl | ||
|
|
||
| -r requirements-nested.txt |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ./downloads/numpy-1.9.2-cp34-none-win32.whl |
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| --extra-index-url https://mypi.org/simple/ | ||
|
|
||
| mypackage==1.2.3 |
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| git+https://github.com/path/to/package-one@41b95ec#egg=package-one # commit hash | ||
| git+https://github.com/path/to/package-two@master#egg=package-two # master branch | ||
| git+https://github.com/path/to/package-three@0.1#egg=package-three # tag | ||
| git+https://github.com/path/to/package-four@releases/tag/v3.7.1#egg=package-four # release tag |
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
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.
Uh oh!
There was an error while loading. Please reload this page.