-
Notifications
You must be signed in to change notification settings - Fork 104
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
Update vendored Poetry to 1.8.0 #613
Comments
Waiting a tad -- poetry 1.8.0 seems to have some issues being worked our around their support for PEP 658 (lazy-wheel). |
Hi @romain-intel, thanks so much for your very generous offer. To explain the situation a bit, in retrospect I was trying to be too clever in #240 when I originally vendored Poetry. (Previously it was an external dependency which was a big mess since Poetry basically assumes that it lives in an isolated environment.) In principle there's a tool called vendoring which is suited for automating this process. Unfortunately, Poetry itself vendors a lot of stuff, and So basically what needs to happen is:
I'd be delighted if you could help me out with this. There are some external considerations to keep in mind:
I think that's it. So thank you so much for your willingness to help out, and please let me know if there's anything I can do to help move things along. |
As a quick update -- I have it working (updated to 1.8.2) except for the hash override part. I am still working on this and also trying to support markers because I can't generate the env for all platforms with the new requirements (it needs sys_platform marker support). I'll make this as a separate PR but mentioning it here as a quick update. |
Amazing, thanks so much @romain-intel !!!! |
I added an initial PR. It's not done yet but hopefully gives you a scope of the work (it wasn't too bad). |
Checklist
What is the idea?
Poetry 1.8.0 came out (see here: https://github.com/python-poetry/poetry/releases/tag/1.8.0) and it adds some significant improvements particularly around resolution speed (support for PEP 658 as well as range requests for repos that do not support PEP 658) as well as correctness issues (python-poetry/poetry#9000 -- an issue that bit me more than once).
It would be nice to move from poetry 1.1.15 (the one currently vendored) to this one.
Why is this needed?
Apart from the points raised above (speed and correctness in certain situations), the version of poetry currently vendored is quite old and upgrading it would be a good idea to keep up with newer developments. Poetry now officially supports python 3.12 which would be a side benefit.
What should happen?
Nothing would change for the user except that resolving environments containing pypi and conda dependencies would probably be faster and less expensive (in network cost). More environments would probably be able to work properly as well.
Additional Context
I am happy to provide help/do this but any guidance would be helpful. I saw some scripts/README around upgrading poetry but I am not sure if there is any additional context around it. I can open a PR for it if this is something that would be accepted (ie: I don't necessarily want to spend a ton of time if it won't be looked at/reviewed and has no path to acceptance :)).
The text was updated successfully, but these errors were encountered: