Description
Using python 3.12 to build bundles results in the following error:
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/circuitpython_build_tools/scripts/build_bundles.py", line 40, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
setuptools
has a migration guide (from pkg_resources
to importlib.resources
).
Possible replacements
circuitpython-build-tools/circuitpython_build_tools/scripts/build_bundles.py
Lines 271 to 272 in 9f02e3a
could be replaced with the suggestion from the aforementioned migration guide.
Note
The above snippet seems to specifically support using Travis CI. Travis CI isn't used in CirPy CI workflows anymore, and they no longer have a free tier (maybe some customers were grandfathered into current pricing?).
And then there's this (seemingly antiquated) statement in the README:
These build tools are intended for use with Travis CI
circuitpython-build-tools/circuitpython_build_tools/scripts/build_bundles.py
Lines 247 to 250 in 9f02e3a
could be replaced with
importlib_metadata.version()
TBC
I haven't delved into the impact of these changes, but I figure d I'd better open an issue to track this for future support of python 3.12.