aboutcode-org / aboutcode-org/python-inspector

Requirements.txt file is not parsed correctly per documentation

未關閉
#182 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
23
分支
28
PR 合併指標
30 天內沒有已合併 PR

描述

A `requirements.txt` file with the global options at the top of the file like so:
```
--index-url https://aws:${CODEARTIFACT_AUTH_TOKEN}@${DOMAIN}-${ACCOUNT_ID}.d.codeartifact.us-east-1.amazonaws.com/pypi/private-releases/simple/
--extra-index-url https://aws:${CODEARTIFACT_AUTH_TOKEN}@${DOMAIN}-${ACCOUNT_ID}.d.codeartifact.us-east-1.amazonaws.com/pypi/public-pypi/simple/
```

[This issue](https://github.com/pypa/pip/issues/11511) mentions that the `--index-url` seems like it must be first.

It seems like the parsing doesn't support it for now, although, it may be part of a third party library.

[Relevant pip requirements.txt documentation](https://pip.pypa.io/en/stable/reference/requirements-file-format/#supported-options)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。