astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
26.39k stars 767 forks source link

support setting `SSL_CERT_FILE` in `pyproject.toml` #6572

Open DetachHead opened 2 months ago

DetachHead commented 2 months ago

as far as i can tell, the cert file can only be configured with the environment variable, but because in my case the file is stored in git, it would be more convenient if it could also be configured in pyproject.toml

samypr100 commented 2 months ago

Yea, it was briefly discussed in https://github.com/astral-sh/uv/pull/4171 adding support in a future PR for both SSL_CERT_FILE and SSL_CLIENT_CERT

zanieb commented 2 months ago

It seems like bad practice to check-in an SSL certificate — can you share more about why you're doing that?

DetachHead commented 2 months ago

it's a corporate environment with custom internal certificates that need to be known about by the libraries the project uses. it's much easier to just commit the certificate than getting everyone in the team to manually configure their tools to use it

samypr100 commented 2 months ago

Yea, it was briefly discussed in #4171 adding support in a future PR for both SSL_CERT_FILE and SSL_CLIENT_CERT

I should clarify what I was thinking originally **Supporting CLI equivalent and global settings (e.g. pip.conf style), not at project level pyproject.toml

DetachHead commented 2 months ago

it might also be worth noting that my team uses pyprojectx to manage the uv installation locally in our project instead of installing it globally. we prefer to minimize the amount of stuff we have to install/configure globally