SeedSigner / seedsigner

Use an air-gapped Raspberry Pi Zero to sign for Bitcoin transactions! (and do other cool stuff)
MIT License
699 stars 161 forks source link

Update Pillow to 9.4.0 and fix deprecations related to font.getsize #475

Closed newtonick closed 1 year ago

newtonick commented 1 year ago

Upgrade Pillow install requirement from 8.2.0 to 9.4.0. This makes the requirements.txt match what is used in SeedSignerOS for 0.7.0.

Eventually when we upgrade to Pillow 10.0 font.getsize will stop working. This PR also replaces font.getsize with font.getbbox. See Pillow notes here: https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html

Pillow 9.4 has this deprecation warnings before this PR.

DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead