nyergler / hieroglyph

Generate HTML presentations from plain text sources with all the power of Sphinx.
https://hieroglyph.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
261 stars 73 forks source link

Hieroglyph tests fail with sphinx-dev #161

Closed nyergler closed 5 years ago

nyergler commented 5 years ago

When running the test suite with sphinx-dev, the following import error occurs:

======================================================================
ERROR: hieroglyph (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: hieroglyph
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/Users/nathan/src/hieroglyph/src/hieroglyph/__init__.py", line 3, in <module>
    from hieroglyph import builder
  File "/Users/nathan/src/hieroglyph/src/hieroglyph/builder.py", line 13, in <module>
    from sphinx.util import copy_static_entry
ImportError: cannot import name 'copy_static_entry' from 'sphinx.util' (/Users/nathan/src/hieroglyph/.tox/py37-sphinxtip/lib/python3.7/site-packages/sphinx/util/__init__.py)

I believe this can be fixed with part of #156 (https://github.com/nyergler/hieroglyph/pull/156/commits/b97201b1303a8f8874dbc0f5e8e816772f56387e)