Skip to content

Fix pkg resources and pins#180

Merged
m4rc1e merged 3 commits intogooglefonts:mainfrom
m4rc1e:fix-pkg-resources-and-pins
May 8, 2026
Merged

Fix pkg resources and pins#180
m4rc1e merged 3 commits intogooglefonts:mainfrom
m4rc1e:fix-pkg-resources-and-pins

Conversation

@m4rc1e
Copy link
Copy Markdown
Collaborator

@m4rc1e m4rc1e commented May 8, 2026

No description provided.

m4rc1e added 3 commits May 8, 2026 11:56
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.
@m4rc1e m4rc1e merged commit cecdab7 into googlefonts:main May 8, 2026
3 checks passed
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