Closed jSadoski closed 4 years ago
Sorry about that, I forgot to check layouts.py if there are any code still using stylize_all
when I bumped the rich requirements.
Using rich>=4.0.0 and replacing it with stylize_all
would be better, since we don't really want the requirements to be locked on an old version, neither do we want to be using deprecated API.
I should probably make an hotfix release after this is fixed, because people installing for the first time will probably get 4.0.0 and then have this error
Done
Description
Rich removed text.stylize_all() in version 4.0.
willmcgugan/rich@e784949: A better Text.stylize
Python version
your operating system (and terminal type of needed)
starcli version
8f92580
any suggestions to the cause of the problem? (if possible)
Either upgrade to
rich>=4.0.0
and replace https://github.com/hedythedev/starcli/blob/8f92580119b5e68c2911067db2f8e18e775a9c2a/starcli/layouts.py#L59 with:(tested, works!)
or narrow the dependency to
rich>=3.3.0,<4.0.0
(tested, pip installedrich-3.4.1
for me and worked!) Which is better? I can make a PR for either route.