-
Notifications
You must be signed in to change notification settings - Fork 103
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
Replace suffix_union
with less general function
#532
Replace suffix_union
with less general function
#532
Conversation
✅ Deploy Preview for conda-lock ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -51,3 +54,34 @@ def aggregate_lock_specs( | |||
lock_spec.allow_pypi_requests for lock_spec in lock_specs | |||
), | |||
) | |||
|
|||
|
|||
def unify_package_sources(collections: List[List[Channel]]) -> List[Channel]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #529 I would replace Channel
here with:
PackageSource = TypeVar("PackageSource", Channel, PipRepository)
We should also be able to remove |
Co-authored-by: Ben Mares <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mariusvniekerk I hope this is okay, I'm going to merge it
Thanks so much @jacksmith15, I really appreciate all the effort here! I think this is a huge improvement. |
Description
An alternative candidate to #531
This removes the quite complex
suffix_union
function with a more specific function for unifying channels when aggregating lock specifications, since that's the only place we use it.If nothing else, this lets us document why we're doing it better since the function pertains specifically to merging packages sources.
Resolves #530