Skip to content

Fix warning about using srcdir as a string #457

Closed
@AWhetter

Description

@AWhetter

Running the tests outputs the following warning:

tests/test_integration.py::TestIntegration::test_template_overrides
  /home/ashley/workspace/sphinx-autoapi/.tox/py313/lib/python3.13/site-packages/autoapi/extension.py:106: RemovedInSphinx80Warning: Sphinx 8 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead.
    elif app.srcdir != os.getcwd():

We should address this before Sphinx v8 is released and this warning becomes an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions