FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
773 stars 131 forks source link

apio/blob/develop/apio/managers/scons.py: get_terminal_size removed in click 8.1.0 #290

Closed rd235 closed 2 years ago

rd235 commented 2 years ago

scons.py fails if click 8.1.0 is used.

see: https://github.com/pallets/click/blob/main/CHANGES.rst There was a warning in the previous version of click: deprecated:: 8.0 Will be removed in Click 8.1. Use :func:shutil.get_terminal_size instead.

The proposed patch follows:

---------------------------------------------
18a19
> import shutil
483c484
<         terminal_width, _ = click.get_terminal_size()
---
>         terminal_width, _ = shutil.get_terminal_size()
----------------------------------------------
Obijuan commented 2 years ago

Thanks for you help 🙂️