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

[WIP] Feat/poetry 1.8.2 1 #637

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

romain-intel
Copy link
Contributor

Description

Replaces #636 but refactors commits to make it easier to review. Addresses #613

Still todo:

  • proper setup for the environment (needs support for environment markers to properly resolve cross platform)
  • fix the failing tests (hash override) -- I am not sure if this is still relevant as well so not 100% sure how to proceed here.
  • verification of the small code changes that were done to support the new APIs

Copy link

netlify bot commented May 7, 2024

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 630adf8
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/6645dadaed7533000850fed7
😎 Deploy Preview https://deploy-preview-637--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.

@maresb
Copy link
Contributor

maresb commented May 8, 2024

Thanks so much, the commit structure looks great!

@romain-intel
Copy link
Contributor Author

I know it's not done fully yet but let me know what you think particularly about the failing test (if I should work to fix it or if the functionality is no longer needed). I am also working on adding markers to properly be able to resolve the environment (so new feature but I guess needed to finish this).

@maresb
Copy link
Contributor

maresb commented May 15, 2024

Hi @romain-intel, it looks great so far!

The failing test was recently added in #629 so it'd be great to fix that to ensure no regression. Perhaps @sfinkens could help?

@sfinkens
Copy link
Contributor

I'll have a look (later today)

@sfinkens
Copy link
Contributor

The problem seems to be that _vendor.poetry.core.packages.package.Package.to_dependency() converts PoetryDependencyWithHash to an "ordinary" Dependency. So the hash from the environment file is lost and a new one is obtained from the online repository.

I don't know if it makes sense to just handle this extra case in to_dependency or if there's a more elegant way.

@maresb
Copy link
Contributor

maresb commented May 16, 2024

Thanks @sfinkens for the clue!

I think I've fixed it in 630adf8. Could you please review?

@maresb
Copy link
Contributor

maresb commented May 16, 2024

Looks like there's one remaining test failure: test_it_uses_pip_repositories_with_env_var_substitution[conda-response_url_without_credentials]. @jacksmith15, is this something you could help with?

@sfinkens
Copy link
Contributor

Thanks @sfinkens for the clue!

I think I've fixed it in 630adf8. Could you please review?

👍 Very elegant solution!

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.

None yet

3 participants