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

Manually parse URL without depending on packaging #1071

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Oct 2, 2023

Fix #1070.

New packaging removed URL validation, so we implement our own. To accomodate the new packaging validation (or lack thereof), the valid URL rule is relaxed a bit; unknown schemes are now allowed (and will error later when we try to fetch them).

I didn’t add an entry to the change log since this shouldn’t affect the functionality. If anything does change, it should be considered a bug.

New packaging removed URL validation, so we implement our own. To
accomodate the new packaging validation (or lack thereof), the valid URL
rule is relaxed a bit; unknown schemes are now allowed (and will error
later when we try to fetch them).
@uranusjr
Copy link
Member Author

uranusjr commented Oct 2, 2023

I’ll merge this into main so this can be more easily tested (with Homebrew for example), but anyone with this issue is very welcomed to test code in main and give feedback please!

@uranusjr uranusjr merged commit 9f6ede6 into pypa:main Oct 2, 2023
11 checks passed
@uranusjr uranusjr deleted the manual-url-spec-parse branch October 2, 2023 09:03
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.

Local path is treated as version due to packaging feature change
2 participants