Skip to content
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

Make psutil dependency optional and introduce pytest_xdist_auto_num_workers #590

Merged
merged 3 commits into from Aug 25, 2020

Conversation

nicoddemus
Copy link
Member

This reverts the behavior we had before psutil was a hard dependency, but opens up the possibility of customization through the pytest_xdist_auto_num_workers hook, also making things like #477 possible.

cc @utapyngo

Fix #585

…ount"

This reverts commit 0094b29, reversing
changes made to c6255fa.
setup.py Show resolved Hide resolved
src/xdist/newhooks.py Show resolved Hide resolved
@nicoddemus nicoddemus changed the title Revert psutil dependency and introduce pytest_xdist_auto_num_workers Make psutil dependency optional and introduce pytest_xdist_auto_num_workers Aug 25, 2020
This makes using psutil optional and opens up the possibility of customization
through the pytest_xdist_auto_num_workers hook, making things like pytest-dev#477 possible.

Fix pytest-dev#585
@nicoddemus nicoddemus merged commit 9fd3b66 into pytest-dev:master Aug 25, 2020
@nicoddemus nicoddemus deleted the auto-hook branch August 25, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make psutil dependency optional
2 participants