supriya-project / uqbar

Tools for building documentation with Sphinx, Graphviz and LaTeX
https://supriya-project.github.io/uqbar
MIT License
13 stars 7 forks source link

Sphinx 8/9 warning and deprecation warning #92

Closed fabaff closed 7 months ago

fabaff commented 7 months ago
tests/conftest.py:6
  /build/uqbar-0.7.1/tests/conftest.py:6: RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. Use 'os.path' or 'pathlib' instead.
    from sphinx.testing.path import path

tests/test_book_sphinx.py: 11 warnings
  /build/uqbar-0.7.1/uqbar/book/sphinx.py:360: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
    settings = OptionParser(components=(Parser,)).get_default_values()

tests/test_book_sphinx.py: 759 warnings
  /nix/store/y4dxr00qg40pwgxx9nxj61091zk8bsvl-python3-3.12.1/lib/python3.12/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
    option = self.option_class(*args, **kwargs)

tests/test_sphinx_book.py::test_sphinx_book_text_broken_strict
  /build/uqbar-0.7.1/tests/test_sphinx_book.py:578: RemovedInSphinx80Warning: Sphinx 8 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead.
    assert normalize(ansi_escape(warning.getvalue())) == normalize(
josiah-wolf-oberholtzer commented 7 months ago

Thanks, cutting a new release shortly.