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

Add parameter --no-trusted-host: Don't add trusted host to generated file #382

Closed
mckelvin opened this issue Aug 3, 2016 · 1 comment · Fixed by #448
Closed

Add parameter --no-trusted-host: Don't add trusted host to generated file #382

mckelvin opened this issue Aug 3, 2016 · 1 comment · Fixed by #448

Comments

@mckelvin
Copy link

mckelvin commented Aug 3, 2016

Describe the issue briefly here.

Steps to replicate
  1. Prepare ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
extra-index-url = http://devpi.arpanet/private/dev/+simple
trusted-host = devpi.arpanet

[search]
index = http://devpi.arpanet/private/dev/

Then
2. pip-compile --no-index --upgrade --output-file requirements.txt requirements.in

Expected result

--trusted-host devpi.arpanet should not existed in requirements.txt

Actual result

I wish there's a option in pip-sync like --no-index which won't write --trusted-host devpi.arpanet into the generated requirements.txt.

@bepetersn
Copy link

bepetersn commented Aug 12, 2016

+1 this is kind of awkward. My global .pypirc or pip config or whatever it's reading from has a trusted host that I use for development on a specific project, but the host is being included in every project for which I pip-compile now. There's probably other solutions to this problem, but this seems obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants