Skip to content

TST: remove workarounds now that contourpy has unpinned nightlies#16122

Merged
pllim merged 2 commits into
astropy:mainfrom
neutrinoceros:tests/simplify_devdeps_install
Mar 8, 2024
Merged

TST: remove workarounds now that contourpy has unpinned nightlies#16122
pllim merged 2 commits into
astropy:mainfrom
neutrinoceros:tests/simplify_devdeps_install

Conversation

@neutrinoceros
Copy link
Copy Markdown
Contributor

@neutrinoceros neutrinoceros commented Feb 28, 2024

Description

This reverts #15290 (and parts of #15363) following contourpy/contourpy#362

EDIT: xref matplotlib/matplotlib#26847 (comment)

  • By checking this box, the PR author has requested that maintainers do NOT use the "Squash and Merge" button. Maintainers should respect this when possible; however, the final decision is at the discretion of the maintainer that merges the PR.

@github-actions
Copy link
Copy Markdown
Contributor

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.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see instructions for rebase and squash.
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.

@github-actions

This comment was marked as outdated.

@neutrinoceros
Copy link
Copy Markdown
Contributor Author

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).

@pllim

This comment was marked as resolved.

@pllim

This comment was marked as resolved.

@neutrinoceros
Copy link
Copy Markdown
Contributor Author

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 :)

@pllim
Copy link
Copy Markdown
Member

pllim commented Feb 28, 2024

take the wheel

I see what you did there! 👏

Comment thread tox.ini Outdated
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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 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

Suggested change
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 !

Copy link
Copy Markdown

@matthewfeickert matthewfeickert Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, thanks for sharing ! Happy to update this patch if @pllim feels we should

Copy link
Copy Markdown

@matthewfeickert matthewfeickert Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're fine. Just an FYI for the future when you're interacting with other potential indexes. 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@neutrinoceros neutrinoceros force-pushed the tests/simplify_devdeps_install branch from 9209ea9 to f952f6d Compare February 29, 2024 06:46
@neutrinoceros neutrinoceros marked this pull request as ready for review February 29, 2024 07:04
Copy link
Copy Markdown
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Comment thread tox.ini Outdated
Comment thread tox.ini Outdated
@pllim pllim force-pushed the tests/simplify_devdeps_install branch 2 times, most recently from eb970c4 to 360237b Compare March 8, 2024 21:33
@pllim

This comment was marked as resolved.

while retaining mpldev for image tests.
@pllim pllim force-pushed the tests/simplify_devdeps_install branch from 675e3d7 to d4becdf Compare March 8, 2024 22:10
@pllim
Copy link
Copy Markdown
Member

pllim commented Mar 8, 2024

To answer my own question, no we do not need to explicitly pull in contourpy-dev because mpl-dev magically does that.

@pllim pllim added the Extra CI Run cron CI as part of PR label Mar 8, 2024
@pllim
Copy link
Copy Markdown
Member

pllim commented Mar 8, 2024

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!

Copy link
Copy Markdown
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@pllim pllim merged commit 3521b0a into astropy:main Mar 8, 2024
@neutrinoceros neutrinoceros deleted the tests/simplify_devdeps_install branch March 9, 2024 05:50
@neutrinoceros
Copy link
Copy Markdown
Contributor Author

Thank you for finishing this !

d-giles referenced this pull request in d-giles/astropy-abdufork Jul 26, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants