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

DEP: drop dependency on rich (replaced by atomic dependencies termcolor + tqdm) #375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neutrinoceros
Copy link
Collaborator

This is a step towards minimizing the total number of (direct+indirect) dependencies.
Switching to tqdm for progress bars also allows to fix a known bug where -progressBar has no effect with -ncpu 1
A minor setback I need to resolve is that tqdm doesn't interact with pytest as nicely as rich.progress, meaning that in test_pbar, we cannot accurately check wether the progress bar was cleaned up afterward, causing the test to fail, even though manual testing shows that the behavior matches what's intended.

@neutrinoceros neutrinoceros changed the title DEP: drop dependency on rich (replaced by atomic dependencies termcolor + tqdm) DEP: drop dependency on rich (replaced by atomic dependencies termcolor + tqdm) Nov 21, 2024
@neutrinoceros
Copy link
Collaborator Author

Actually I moved the bugfix part to #376 and it is now clear that the current behavior of ignoring -pbar when running on a single core is actually deliberate and that's what test_pbar is actually checking. I have no recollection of us discussing it but it seems extremely odd to me in hindsight. TBD

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.

1 participant