-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix requirements parsing with index URL option (#1251)
When using `pip-compile` with a third party Python index, the `--index-url` and `--extra-index-url` options get included in the `requirements.txt` output file. This patch updates our parser to allow these options. The presence of `--index-url` in the file will make the parser assume that all packages are being pulled from the third party registry. This may or may not be true, but it doesn't really matter since we currently treat third party registries as if they were first party when submitting a job. Co-authored-by: Kyle Willmon <[email protected]>
- Loading branch information
1 parent
15b6257
commit 3a7ecb0
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -32,3 +32,10 @@ tomli @ https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a25 | |
-e git+ssh://[email protected]/phylum-dev/phylum-ci.git@7d6d859ad368d1ab0a933f24679e3d3c08a40eac#egg=phylum | ||
|
||
-e /tmp/editable ; python_version >= "3.7" and python_version < "3.12" | ||
|
||
--index-url https://unused.phylum.io/simple/ | ||
--index-url=https://mirror1.phylum.io/simple/ | ||
other-registry-a==3.2.1 | ||
-ihttps://mirror2.phylum.io/simple/ | ||
--extra-index-url=https://mirror3.phylum.io/simple/ | ||
other-registry==1.2.3 |