aboutcode-org / aboutcode-org/python-inspector

Requirements.txt file is not parsed correctly per documentation

Open
#182 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
23
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.