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 an issue when specifying full wheel URLs for a pypi package. #567

Merged
merged 4 commits into from
Dec 9, 2023

Conversation

romain-intel
Copy link
Contributor

The pypi solver expects hashes to be provided as part of the URL but, in most cases, if a user provides a URL for a package, they will not provide one with a hash. This PR ignores the missing hash instead of crashing.

A test was added that fails prior to this change and succeeds after.

The pypi solver expects hashes to be provided as part of the URL but, in
most cases, if a user provides a URL for a package, they will not provide one
with a hash. This PR ignores the missing hash instead of crashing.

A test was added that fails prior to this change and succeeds after.
@romain-intel romain-intel requested a review from a team as a code owner December 8, 2023 09:25
Copy link

netlify bot commented Dec 8, 2023

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 6e49ef5
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/65739ed66a308c000846f387
😎 Deploy Preview https://deploy-preview-567--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@romain-intel
Copy link
Contributor Author

I am not sure why that one test failed. Feels like more of a fluke and unrelated to the PR.

conda_lock/pypi_solver.py Show resolved Hide resolved
conda_lock/pypi_solver.py Outdated Show resolved Hide resolved
tests/test-pip-full-url/environment.yml Show resolved Hide resolved
tests/test_conda_lock.py Outdated Show resolved Hide resolved
@maresb
Copy link
Contributor

maresb commented Dec 8, 2023

I am not sure why that one test failed. Feels like more of a fluke and unrelated to the PR.

Indeed, I suspect that there's an out-of-memory condition or similar that occasionally causes a cascade of failures like that. Upon rerunning it's passing again.

romain-intel and others added 3 commits December 8, 2023 14:51
Co-authored-by: Ben Mares <services-git-throwaway1@tensorial.com>
Co-authored-by: Ben Mares <services-git-throwaway1@tensorial.com>
@romain-intel
Copy link
Contributor Author

Thanks for the super quick review. Accepted all changes.

@maresb maresb merged commit a301e96 into conda:main Dec 9, 2023
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.

2 participants