Support Python 3.10-3.14, fix registry read_text() usage, drop unused accelerator-toolbox dependency - #6
Merged
Conversation
… accelerator-toolbox dependency Add pytest suite and GitHub Actions workflow covering Python 3.10-3.14.
Closed
GamelinAl
approved these changes
Sep 11, 2026
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.
Summary
ImportError: cannot import name 'Traversable' from 'importlib.abc'on Python 3.14 (reported by pyaml's CI):importlib.abc.Traversablewas deprecated in 3.12 and removed in 3.14, so it's now imported fromimportlib.resources.abcwith a fallback toimportlib.abcfor 3.10/3.11.Registry.__getitem__, which returnedstr(path)instead of theTraversable/Pathobject, silently breaking the README's documentedlattice_file.read_text()usage. It now returns the entry itself.accelerator-toolboxruntime dependency, nothing in this package imports it, it's purely a file registry. Any project relying on it being pulled in transitively (e.g. pyaml) must now declare it as a direct dependency of its own.requires-python, classifiers, ruff/mypy target versions).tests/exercising the README's documented usage (lattice/configuration access,.read_text(), descriptions) and the supported Python version range, plus a GitHub Actions workflow (unit-tests.yml) running it across Python 3.10, 3.11, 3.12, 3.13, and 3.14.Closes #5
Test plan
pytestpasses on Python 3.10 and Python 3.14 (conda envs)ruff check .andruff format --check .passunit-tests.yml) green on the PR