Petri Petri - 3 years ago 197
Python Question

how to safely (basic) auth to private PyPI with zc.buildout

I've been so far using lovely.buildouthttp for a long time, to authenticate buildout to my private PyPI server.

The key required functionality is its ability to use credentials from a separate file. I do not want to enter credentials in the buildout config file itself.

Does zc.buildout nowadays have the ability to use basic auth credentials from another file as well? I could not find this information.

I know there's also isotoma.basicauth.buildout (have not tried it out).

Answer Source

buildout can use data from .pypirc


With that, e.g. the following kind of entry in buildout will authenticate correctly, without having to include the credentials in the url:

find-links =
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download