extras_require — extras-require 0.4.0 documentation
extras_require.readthedocs.iosetup( extras_require={ "formulae": [ "mathematical>=0.1.7", "pandas>=1.0.1", "pyparsing>=2.2.0", "tabulate>=0.8.3", "cawdrey>=0.1.2", "quantities>=0.12.4", ], } ) A message can be displayed in the documentation to indicate that the subpackage has these additional requirements that must be installed. For instance, this:
extras-require · PyPI
https://pypi.org/project/extras-require19.07.2021 · .. extras-require:: formulae :file: formulae/requirements.txt will produce this: The path given in :file: is relative to the package_root variable given in conf.py , which in turn is relative to the parent directory of the sphinx documentation.