wsl2 python scripts uv certificates proxy servers :(
When I crafted my first 'successful'1 python script at work, one of the little triumphs was getting past the ***** corporate proxy. pip install pip_system_certs which patches pip and requests at runtime to use certificates from the default system store (rather than the bundled certs ca) solved that.
I've been trying uv2 recently as 'uv run' seems to offer big benefits in terms of cross-platform deployment and removes the need to create and manage a virtual environment. No pip, self-signed proxy certificate, what to do?
Setting a couple of env vars seemed to do the trick
export SSL_CERT_DIR=/etc/ssl/certs
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
amateur hacking is the proper phrase I suspect↩