-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Simplify metadata generation flow, to be a lot more "linear" #7287
Simplify metadata generation flow, to be a lot more "linear" #7287
Conversation
I expect this to fail CI, since I'm 100% sure tests are directly using |
624dc5b
to
12a0bbf
Compare
This looks a bit more complicated to me because:
IMO a clearer approach would be to:
|
I think I broadly agree with you. The coupling of SourceDistribution and InstallRequirement was definitely something I didn't like while I was doing it but I did it anyway, since I ran outta time and filed the PR. As for simplifying what actually gets passed into the operations.build functions, I agree. That's the intended follow up, among other things zcto this (i.e. once all the moving around of logic is settled). A couple of things I'd appreciate inputs on: |
Yes and yes, IMO. I would even go so far as to inline As a follow up if those are then refactored to take plain non- |
Why: Based on some more experience from refactoring metadata generation, it became clear to me that the separation of legacy vs modern codepaths should happen at lower level than this abstraction.
Why: There isn't any state being maintained, or multiple uses of the metadata generator for a single requirement. The additional complexity does not help in any significant manner.
12a0bbf
to
19bf26a
Compare
19bf26a
to
f137aef
Compare
This PR takes a lot of steps, to inline
InstallRequirement.prepare_metadata
intoSourceDistribution.prepare_distribution_metadata
.As described in #6607 (comment)