Feature Request
I'm trying to use poetry in a corporate environment. We have a private server and index for packages, and conda is setup to not verify SSL. Unfortunately, I didn't find a similar option or configuration for Poetry, so when I try to install a package with Poetry, it fails (SSLError).
I managed to get it to work by changing two lines in
https://github.com/sdispater/poetry/blob/51c7042160a74adf14038460468e5e5a72b0d965/poetry/repositories/legacy_repository.py#L415-L426
...to this:
def _download(self, url, dest): # type: (str, str) -> None
- r = self._session.get(url, stream=True)
+ r = self._session.get(url, stream=True, verify=False)
with open(dest, "wb") as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
def _get(self, endpoint): # type: (str) -> Union[Page, None]
url = self._url + endpoint
- response = self._session.get(url)
+ response = self._session.get(url, verify=False)
if response.status_code == 404:
return
return Page(url, response.content, response.headers)
Obviously we would use a value specified in the config.toml instead of a literal False.
Feature Request
I'm trying to use poetry in a corporate environment. We have a private server and index for packages, and conda is setup to not verify SSL. Unfortunately, I didn't find a similar option or configuration for Poetry, so when I try to install a package with Poetry, it fails (SSLError).
I managed to get it to work by changing two lines in
https://github.com/sdispater/poetry/blob/51c7042160a74adf14038460468e5e5a72b0d965/poetry/repositories/legacy_repository.py#L415-L426
...to this:
Obviously we would use a value specified in the
config.tomlinstead of a literalFalse.