Skip to content

Commit

Permalink
docs: evaluate forward references
Browse files Browse the repository at this point in the history
This is to get annotations in `TYPE_CHECKING` blocks to show.
  • Loading branch information
layday committed Oct 25, 2021
1 parent 316639e commit c7f7ebb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/conf.py
Expand Up @@ -10,19 +10,19 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.

import build


# -- Project information -----------------------------------------------------

import importlib.metadata

project = 'build'
copyright = '2020, Filipe Laíns'
author = 'Filipe Laíns'

# The short X.Y version
version = build.__version__
version = importlib.metadata.version('build')
# The full version, including alpha/beta/rc tags
release = build.__version__
release = version


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -67,3 +67,5 @@
autoclass_content = 'both'

autodoc_preserve_defaults = True

set_type_checking_flag = True
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -46,6 +46,7 @@ pipx.run =

[options.extras_require]
docs =
build[typing]
furo>=2021.08.31
sphinx~=4.0
sphinx-argparse-cli>=1.5
Expand Down

0 comments on commit c7f7ebb

Please sign in to comment.