TST: remove workarounds now that contourpy has unpinned nightlies#16122
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
This comment was marked as outdated.
This comment was marked as outdated.
|
hum, I must be doing something wrong: I keep breaking the workflows this is supposed to simplify. I'm wondering if I should just leave it be (don't fix what ain't broke). |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
Please feel free to take the wheel here ! but we can reassess after #15603 goes in too. In any case this doesn't seem too urgent :) |
I see what you did there! 👏 |
| devdeps: python -I -m pip install -v --pre | ||
|
|
||
| commands = | ||
| mpldev: pip install -U --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple matplotlib |
There was a problem hiding this comment.
👋 As noted in the CI logs (https://github.com/astropy/astropy/actions/runs/8078075132/job/22069637834?pr=16122#step:10:33) as there are additional dependencies that don't live on the index you'll need to include the PyPI as the --extra-index-url. c.f. the example in the scientific-python/upload-nightly-action README
| mpldev: pip install -U --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple matplotlib | |
| mpldev: pip install -U --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple matplotlib |
There was a problem hiding this comment.
Oh, that's it ! I got confused while cherry-picking parts to revert. PIP_EXTRA_INDEX_URL is already set on line 25, but I was indeed effectively ignoring it here. Thanks !
There was a problem hiding this comment.
I'd still in general recommend switching the indexes (to --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple) to get in the habit of helping guard against what happened to PyTorch in 2022. But in this particular case it doesn't matter much (or actually at all), given that the name of the packges exist already on both indexes and you are trusting scientific-python to not do anything shady on our index.
There was a problem hiding this comment.
wow, thanks for sharing ! Happy to update this patch if @pllim feels we should
There was a problem hiding this comment.
I think you're fine. Just an FYI for the future when you're interacting with other potential indexes. 👍
There was a problem hiding this comment.
Revisiting this comment now... The line in the suggestion no longer exists. In tox, we define PIP_EXTRA_INDEX_URL in setenv, following by matplotlib>=0.0.dev0 in deps. Not sure if I want to mess with --index-url now especially that this is not a concern right now. Thanks anyway!
9209ea9 to
f952f6d
Compare
There was a problem hiding this comment.
Does not hurt to have the extra index guard as suggested in this PR. (Changed my mind, see #16122 (comment))
But we agreed that this is not urgent, so I can take over when the Python 3.10 PR is merged. Thanks, all!
eb970c4 to
360237b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
while retaining mpldev for image tests.
675e3d7 to
d4becdf
Compare
|
To answer my own question, no we do not need to explicitly pull in contourpy-dev because mpl-dev magically does that. |
|
I also want to run the cron jobs, especially the "no scipy" one, just in case. When I am happy with this, I will approve and merge. Thanks! |
pllim
left a comment
There was a problem hiding this comment.
Logs look fine. Linkheck failure unrelated. Exotic archs shouldn't matter here, so I cancelled them because they take too long to run.
Thanks again!
|
Thank you for finishing this ! |
…6122) * TST: remove workarounds now that contourpy has unpinned nightlies * TST: Recombine mpldev into devdeps CI job while retaining mpldev for image tests. --------- Co-authored-by: P. L. Lim <[email protected]>
Description
This reverts
#15290(and parts of #15363) following contourpy/contourpy#362EDIT: xref matplotlib/matplotlib#26847 (comment)