ftnext / sphinx-new-tab-link

Open external links in new tabs of the browser in Sphinx HTML documents
https://ftnext.github.io/sphinx-new-tab-link/guide.html
MIT License
9 stars 2 forks source link

RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. #8

Closed ftnext closed 3 months ago

ftnext commented 8 months ago
tests/conftest.py:2
  /.../sphinx-new-tab-link/tests/conftest.py:2: RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. Use 'os.path' or 'pathlib' instead.
    from sphinx.testing.path import path

Use pathlib.Path, then tests in Python 3.8 failed. https://github.com/ftnext/sphinx-new-tab-link/actions/runs/6444432491/job/17497416354

AttributeError: 'PosixPath' object has no attribute 'copytree'

ftnext commented 3 months ago

ref: https://github.com/sphinx-doc/sphinx/pull/11526