-
Notifications
You must be signed in to change notification settings - Fork 431
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 pinning expressions for prerelease builds #4272
Conversation
cc @mbargull |
Ah, didn't see this before, thanks for the cc!
For 2.: Maybe something along this (in def get_pin_from_build(m, dep, build_dep_versions):
+ match_spec = MatchSpec(dep) # from conda.exports import MatchSpec
+ if match_spec.get_exact_value('version') and match_spec.get_exact_value('build'):
+ # exact pin; don't apply pin expressions
+ return dep
dep_split = dep.split() might work. I haven't tried this one yet, though. |
If 1 is fixed (at least the pre-release part) as in this PR, then 2 becomes not so important. 2 would be nice to have, but not necessary. Note that fixing 2 alone is not enough for our python issue if we start building downstream packages with rc0. |
Yep, I know. Either we fix 1 and get a new release with that fix or we'd have to mark the RC as |
Which is what this PR does |
yeah, that was mostly meant regarding "and get a new release" ;). |
This is ready for a review |
@isuruf, I've added some commits for docs/news and adjusted the tests (I've duplicated the test to add one that specifically uses |
Looks good. Thanks |
Merging this since all CI failures are unrelated to the PR. @chenghlee, @jezdez, if we want to go ahead with a RC-based migration on conda-forge ( conda-forge/python-feedstock#481 , conda-forge/conda-forge.github.io#1499 ), we'd need a new |
No description provided.