-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
MNT Update doc lock files to get Sphinx-Gallery 0.19 minigallery bugfix #30822
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
Conversation
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.
Please push an empty commit with the [doc build]
commit flag.
Otherwise LGTM. Thanks @lucyleeow!
There is not a lock file associated with the yaml one? In other words, we should need to regenerate the lock files isn't it? |
Yes we would need to regenerate the lock-file and push a python build_tools/update_environments_and_lock_files.py --select-build doc |
Yes but I was not 100% on the change so didn't update the lock files. I checked and 0.17 had the mini gallery duplication bug so it's probably best to bump the min version. I'll update the lock files |
To be honest what we care about is that the doc build has sphinx-gallery 0.19 so that we don't have duplicated examples in the API page on the scikit-learn.org website. We don't really care about bumping the min dependencies of sphinx-gallery but we can also bump it I don't have a strong opinion on this. The doc-min-depencies is mostly used to make sure that the examples run fine with old numpy, scipy, matplotlib, etc ... versions. |
Yes this was why I was hesitant about updating the min dep. Happy to close ? |
It would still be useful to update the doc build lock-file and make sure that the issue has been fixed so something like this + a python build_tools/update_environments_and_lock_files.py --select-build 'doc$' For further reference, |
No urgency at all, but since we install sphinx-gallery from conda-forge, we would also need that sphinx-gallery 0.19 is on conda-forge which doesn't seem to be the case yet. Probably we need to wait a bit before the conda-forge automation creates a PR and then the PR needs to be merged, and then wait a bit more for it to be actually available. |
oh yeah! Some other kind soul created that Looking at it more, I think it makes sense to bump the version in |
In general, no strong opinion on bumping the min dependency of sphinx-gallery. I would slightly lean towards keeping it to whatever we have since this is not a huge bug and it went unnoticed in scikit-learn for quite some time. You can still build fine with older versions and it's not like sphinx-gallery min dependency is forced on anyone, it's more which range of versions we decide to test in our CI.
This is done by the update_environment_and_lock_files.py script 😉. Basically you udapte IIRC |
Okay I will update this PR to just update the lock files and not bump min deps.
🤦 ah I knew that but it just didn't click that was a |
Doc build failing due to not being able to download dataset in example:
trying again (in case this is transient) ... |
The duplication seems indeed to have been fixed, see the PartialDependencyDisplay rendered page.
😴 😉 |
Reference Issues/PRs
Bump minUpdate doc conda lock file for newest sphinx-gallery version which fixes minigallery duplication bug: sphinx-gallery/sphinx-gallery#1430 sphinx-gallery/sphinx-gallery#1435What does this implement/fix? Explain your changes.
Any other comments?
cc @ogrisel @glemaitre