build icon indicating copy to clipboard operation
build copied to clipboard

Disable `colorama` on Linux

Open abitrolly opened this issue 3 years ago • 12 comments

Fixes #493

abitrolly avatar Jun 30 '22 19:06 abitrolly

pre-commit.ci autofix

abitrolly avatar Jun 30 '22 19:06 abitrolly

Got another problem. colored messages are piling at the end of the output.

image

Need to add more commits to turn off output buffering.

abitrolly avatar Jul 01 '22 05:07 abitrolly

The problems with the output are likely https://github.com/pypa/cibuildwheel/issues/1161?

henryiii avatar Jul 01 '22 13:07 henryiii

@henryiii without output buffering everything works as expected. But I need to properly test formatting.

abitrolly avatar Jul 01 '22 16:07 abitrolly

Everything except codecov passes. I can rebase or squash if needed.

abitrolly avatar Jul 01 '22 19:07 abitrolly

I’ll see if I can easily add a test for missing colorama when I’m at a computer.

edit: code looks simpler now, I think one PR for the two fixes is likely fine.

henryiii avatar Jul 01 '22 21:07 henryiii

@gaborbernat or anyone else, is there an easy way to run an "uninstall colorama" only on windows in tox? Would keep from having to list the test deps again, which is what I'm trying here to see if that fixes the coverage check.

henryiii avatar Jul 02 '22 05:07 henryiii

Is there a probable downside to uninstalling colorama unconditionally?

layday avatar Jul 02 '22 08:07 layday

Ahh, it's a warning not an error code? Then no.

henryiii avatar Jul 02 '22 13:07 henryiii

Personally I would rather print with flush and format were separate functions but I don't think it matters that much.

layday avatar Jul 02 '22 14:07 layday

Is there anything else that needs to be done to push this? I'd like to propose some semantic changes to the build output, and the diff will conflict with this one.

abitrolly avatar Jul 08 '22 09:07 abitrolly

We don’t need to make the coverage pass. I’m traveling till the 27th so can only try a little bit here and there. Currently it seems like the coverage info from the path job is not being reported properly.

henryiii avatar Jul 08 '22 11:07 henryiii

@gaborbernat I'd like your sign-off on this, especially since I touched the tox config quite a bit. We now produce coverage info from all the runs, and use the coverage job to combine it (it was unused before).

henryiii avatar Oct 18 '22 12:10 henryiii

Finally. )

@henryiii thanks. :D

abitrolly avatar Oct 21 '22 15:10 abitrolly