explicit asking to get cacert.pem from certifi#145
explicit asking to get cacert.pem from certifi#145prabcs wants to merge 2 commits intojohn-kurkowski:masterfrom
Conversation
a9c0174 to
426f8cc
Compare
|
Requesting review - @john-kurkowski . Thanks ! |
|
@prabcs thanks! need a little more info you mentioned that this happens in a case when things are installed a certain way. when does that case happen in practice, exactly? trying to understand because, if we pin certifi to a higher version, it could impact other dependency resolutions ... don't want to break somebody who is using an older |
|
Code looks good. Per the previous comment, it's good to consider the dependency ramifications, and how unique this case is. |
|
@prabcs @john-kurkowski ahh here's the resolution. The packaging/dependency ramifications can be avoided completely. Instead of setting the so in your case you'd want the session to have There is another PR where the same change (i.e. allow passing in a custom session instance) solves that problem too. #150 so these are going to be 2 birds 1 stone |
This PR intends to provide the ability to the session to find the
cacert.pemfile required byrequests. It makesfind_first_responsework in the case whentldextract,requests,certifiare all bundled in one.egg/.zipfile and the code is run from that bundle leading to this error -