diff --git a/.readthedocs.yml b/.readthedocs.yml index 0604945f9..8b1cff2d5 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,6 +13,7 @@ build: python: install: - requirements: docs-requirements.txt + - path: . sphinx: fail_on_warning: true diff --git a/docs/source/conf.py b/docs/source/conf.py index fb8e60cdc..5d30ec225 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -31,8 +31,6 @@ # For our local_customization module sys.path.insert(0, os.path.abspath(".")) -# For trio itself -sys.path.insert(0, os.path.abspath("../../src")) # Enable reloading with `typing.TYPE_CHECKING` being True os.environ["SPHINX_AUTODOC_RELOAD_MODULES"] = "1" @@ -315,9 +313,9 @@ def add_mapping( # built documents. # # The short X.Y version. -import trio +import importlib.metadata -version = trio.__version__ +version = importlib.metadata.version("trio") # The full version, including alpha/beta/rc tags. release = version