Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for defining proxy environment variables (http_proxy & https_proxy) in pyproject.toml #2752

Open
Nomiez opened this issue Mar 30, 2024 · 0 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@Nomiez
Copy link

Nomiez commented Mar 30, 2024

Is your feature/enhancement proposal related to a problem? Please describe.

Referring to Feature Request entry: #2751.

Hey, I have a small probem. I want to use PDM in my company behind a proxy. Currently I have to export the proxy environment variables http_proxy and https_proxy manually each time I want to use pdm. Therefore I am searching for a way that is equivalent to rye's proxy config in the .toml file for pdm:

[proxy]
# the proxy to use for HTTP (overridden by the http_proxy environment variable)
http = "http://127.0.0.1:4000"
# the proxy to use for HTTPS (overridden by the https_proxy environment variable)
https = "http://127.0.0.1:4000"
For pdm this could be implemented by adding the two options:

Describe the solution you'd like

Support for exporting http_proxy & https_proxy environment variables out of pdm.toml before running a pdm command like pdm install.

  • proxy.http
  • proxy.https

The values can then be exported into the environment. If desired I can implement this by my own.

@Nomiez Nomiez added the ⭐ enhancement Improvements for existing features label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

1 participant