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

Preserve trailing slash for --find-links URLs #1720

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Feb 19, 2024

Summary

We should allow a --find-links URL to be provided as either (e.g.) https://wheelhouse.acsone.eu/manylinux1 or https://wheelhouse.acsone.eu/manylinux1/. By using the response URL, we can "always do the right thing" (it will always have a trailing slash, or always return a .html suffix) rather than attempting to sniff out the URL kind in advance.

Closes #1683.

Test Plan

  • cargo run pip install requests --force-reinstall --no-index --find-links https://wheelhouse.acsone.eu/manylinux1 -n
  • cargo run pip install requests --force-reinstall --no-index --find-links https://wheelhouse.acsone.eu/manylinux1/ -n

@charliermarsh charliermarsh added the bug Something isn't working label Feb 19, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) February 19, 2024 21:24
@charliermarsh charliermarsh merged commit 1d9daa6 into main Feb 19, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/find-links branch February 19, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing slash needed in URL link address in requirements.in when uv pip compile requirements.in
2 participants