Fix pkg resources and pins#180
Merged
m4rc1e merged 3 commits intogooglefonts:mainfrom May 8, 2026
Merged
Conversation
setuptools 81+ removed pkg_resources, so the legacy import broke diffenator2 on modern installs. Define a small resource_filename helper in utils.py that wraps importlib.resources.files() and import it where needed.
The previous caret pins (^X.Y) and a hard cap on python-bidi forced downstream consumers (e.g. gftools) to backtrack heavily during pip resolution. Switch to >= lower bounds where the upstream APIs are stable enough. - blackrenderer: ^0.6.0 -> >=0.6.0 - unicodedata2: ^15.0.0 -> >=15.0.0 (unblocks fontTools 4.62+) - youseedee: ^0.5.0 -> >=0.5.0 - python-bidi: <0.5.0 -> *
skia-python (pulled in by blackrenderer[skia]) loads libEGL.so.1 at import time. Recent versions of skia-python no longer bundle it, so the Ubuntu runner must provide it via apt. macOS is unaffected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.