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

Fix handling of --cert and --client-cert. #1063

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Oct 8, 2020

In order to work around pypa/pip#5502 fully,
we extract a PackageIndexConfiguration class that handles arrangement
of Pip command line flags and enviornment variables to effect the most
hermetic means possible of conveying --cert and --client-cert to Pip
and its subprocesses.

Fixes #1058

In order to work around pypa/pip#5502 fully,
we extract a `PackageIndexConfiguration` class that handles arrangement
of Pip command line flags and enviornment variables to effect the most
hermetic means possible of conveying `--cert` and `--client-cert` to Pip
and its subprocesses.

Fixes pex-tool#1058
@jsirois
Copy link
Member Author

jsirois commented Oct 8, 2020

@thamenato this should finally do it.


class PackageIndexConfiguration(object):
@staticmethod
def _calculate_args(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method was moved from https://github.com/pantsbuild/pex/pull/1063/files#diff-77bac56887c1a03806e247fe60c2024cL129 but otherwise unchanged save for the top comment.

@thamenato
Copy link

What a journey! Hopefully this is the end of it.

@jsirois jsirois merged commit 4580055 into pex-tool:master Oct 8, 2020
@jsirois jsirois deleted the issues/1060/follow-up branch October 8, 2020 21:52
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 this pull request may close these issues.

Pex fails to consistently use https_proxy + --cert
3 participants