melange-re / melange-re.github.io

Documentation site for Melange
https://melange.re
25 stars 7 forks source link

Fix mike error with pkg_resources #137

Closed jchavarri closed 10 months ago

jchavarri commented 10 months ago

Recent deploys fail with:

 Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0/x64/bin/mike", line 5, in <module>
    from mike.driver import main
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/mike/driver.py", line 4, in <module>
    from . import arguments, commands
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/mike/commands.py", line 6, in <module>
    from pkg_resources import resource_stream
ModuleNotFoundError: No module named 'pkg_resources'

It seems a patch was applied upstream, but a new version of mike hasn't been released yet. So I just forked the repo, [cherry picked the patch](https://github.com/jchavarri/mike/commit/80db933a1181cb028010c783184ec5ab4abd421b, and pin pip-requirements to it.

TODO