Skip to content

TST/DEP: bump minimal requirement on pytest-xdist (2.5.0 -> 3.6.0)#18838

Merged
pllim merged 1 commit intoastropy:mainfrom
neutrinoceros:dep/bump-pytest-xdist
Nov 7, 2025
Merged

TST/DEP: bump minimal requirement on pytest-xdist (2.5.0 -> 3.6.0)#18838
pllim merged 1 commit intoastropy:mainfrom
neutrinoceros:dep/bump-pytest-xdist

Conversation

@neutrinoceros
Copy link
Copy Markdown
Contributor

@neutrinoceros neutrinoceros commented Nov 5, 2025

Description

ref: #18782
From where I'm standing this looks like one of the last required changes so make `oldestdeps` builds reproducible (in combination with #18780)

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

@neutrinoceros neutrinoceros added this to the v8.0.0 milestone Nov 5, 2025
@neutrinoceros neutrinoceros added testing no-changelog-entry-needed dependencies Pull requests that update a dependency file labels Nov 5, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 5, 2025

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
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 5, 2025

Welcome to Astropy 👋 and congratulations on your first pull request! 🎉

A project member will respond to you as soon as possible; in the meantime, please have a look over the Checklist for Contributed Code and make sure you've addressed as many of the questions there as possible.

If you feel that this pull request has not been responded to in a timely manner, please send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail feedback@astropy.org.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 5, 2025

👋 Thank you for your draft pull request! Do you know that you can use [ci skip] or [skip ci] in your commit messages to skip running continuous integration tests until you are ready?

pyproject.toml Outdated
"pytest-astropy-header>=0.2.1",
"pytest-astropy>=0.10.0",
"pytest-xdist>=2.5.0",
"pytest-xdist>=3.0.2",
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.

the reason I'm bumping this package is that version 2.5.0 implicitly requires the py package, which used to be distributed with pytest (originally, py.test), but isn't part of pytest 8.0.0.
We are not capturing this problem in oldestdeps CI runs because it doesn't use pytest-xdist and runs all tests sequentially instead.

pyproject.toml Outdated

# via pytest-xdist
# this constraint can be removed once pytest-xdist>=3.6 or newer is required
"execnet>=1.9.0",
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.

pytest-xdist 3.6 is only about 1.6 y.o. now, so I don't feel confortable bumping it so high yet, though there would be a precedent for doing this (we started requiring pytest 8.0 or newer only a year after it came out)

Copy link
Copy Markdown
Member

@pllim pllim Nov 6, 2025

Choose a reason for hiding this comment

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

As a pytest plugin, I don't think SPEC 0 applies. If it is cleaner to just bump the minversion higher so that we don't need this, I will be in support, FWIW.

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.

My understanding is that SPEC 0 is about runtime dependencies, not developer tooling, so it is not relevant here.

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.

So, are you guys saying I should just bump ?

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.

Yes, I think so. :)

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.

done !

@neutrinoceros neutrinoceros marked this pull request as ready for review November 5, 2025 20:03
@neutrinoceros neutrinoceros changed the title TST/DEP: bump minimal requirement on pytest-xdist (2.5.0 -> 3.0.2) + add a constraint on execnet TST/DEP: bump minimal requirement on pytest-xdist (2.5.0 -> 3.6.0) Nov 7, 2025
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.

Thanks!

@pllim pllim merged commit f360ba3 into astropy:main Nov 7, 2025
33 checks passed
@neutrinoceros neutrinoceros deleted the dep/bump-pytest-xdist branch November 7, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants