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

Replace custom URL parsing with url_to_path() #8830

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Sep 1, 2020

I encountered this while looking into #8765 and #8828. The requirements file parser contains this buggy hand-rolled logic to convert a file:// to a local filesystem path. pip._internal.utils.urls.url_to_path() (and urllib.request.url2pathname() it calls underneath) can do everything it does better, and can handle more edge cases on Windows.

For additional information, the current hand-rolled implementation did not change since the initial commit in this repository.

@uranusjr uranusjr added the skip news Does not need a NEWS file entry (eg: trivial changes) label Sep 1, 2020
@sbidoul sbidoul closed this Sep 4, 2020
@sbidoul sbidoul reopened this Sep 4, 2020
@sbidoul
Copy link
Member

sbidoul commented Sep 4, 2020

Let's see if the travis failure was a transient.

@pradyunsg pradyunsg merged commit 8663855 into pypa:master Sep 8, 2020
@uranusjr uranusjr deleted the env-var-req-file branch September 9, 2020 03:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants