-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Issue 11334 replace vendored urllib3 #11373
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
Issue 11334 replace vendored urllib3 #11373
Conversation
Switching partially to built in urllib.parse.urlparse
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @travishathaway. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
@anaconda-issue-bot check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good just a few suggestions since Url
is now our own implementation.
fecf3f0
to
6f47f14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that namedtuple
already provides as_dict
& replace
functionality so we should probably not reimplement those but other than that this looks good to me!
edit: also if you rebase to include #11378 the tests should pass again
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
@travishathaway oh and let's also include the news about dropping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor nits! 💯
Co-authored-by: Jannis Leidel <jannis@leidel.info>
Co-authored-by: Jannis Leidel <jannis@leidel.info>
See #11334 for a full description of this issue.
The goal of this PR was removing our dependency on
urllib3
in our_vendors
module. I was able to do this by instead relying on theurllib.parse.urlparse
. On top of this, I copied over theUrl
object fromurllib3
and made some slight modifications to it to make updating the code easier.The
conda.common.url
module augments the default parse behavior of the std liburllib.parse
module. We do this by defining our ownurlparse
method. Where this method differs from the std. lib. version is that it returns its ownUrl
object instead of aParsedResult
. ThisUrl
object is much friendlier to those wishing to reconstitute a URL from various parts (like when stripping out username and password).Acceptance Criteria: