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

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

Closed
wants to merge 2 commits into from

Conversation

newtonick
Copy link
Collaborator

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

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