aboutcode-org / aboutcode-org/python-inspector

Pip.conf settings are not parsed or respected

オープン
#180 コメント 12 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
23
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

説明

An example pip.conf with sensitive variables changed to look like BASH variables:

```ini
[global]
extra-index-url = https://aws:${CODEARTIFACT_AUTH_TOKEN}@${DOMAIN}-${ACCOUNT_ID}.d.codeartifact.us-east-1.amazonaws.com/pypi/public-pypi/simple/
index-url = https://aws:${CODEARTIFACT_AUTH_TOKEN}@${DOMAIN}-${ACCOUNT_ID}.d.codeartifact.us-east-1.amazonaws.com/pypi/private-releases/simple/
```
These are actually set using the `pip config set global.extra-index-url` so they are presumably following the correct convention.

The file is located at `$HOME/.config/pip/pip.conf` following the [XDG_CONFIG_HOME](https://pip.pypa.io/en/stable/topics/configuration/#location) even when it is located in the legacy location `$HOME/.pip/pip.conf` it is not respected either.

The [pip documentation](https://pip.pypa.io/en/stable/topics/configuration/) in general.

EDIT: It also does not respect the relevant [environment variables either](https://pip.pypa.io/en/stable/topics/configuration/#environment-variables)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。