aboutcode-org / aboutcode-org/python-inspector

Pip.conf settings are not parsed or respected

未關閉
#180 12 則留言 2 個 reaction 已指派 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 摘要。