Added requirements.txt to doc build environment #14171
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
For the API documentation as sphinx autogenerates the api docs from the code it needs the dependent Python packages. This change adds those to the tox docs build environment.
Description
This adds the requirments.txt to the tox docs build environment.
Motivation and Context
The Sphinx Python API docs are built by "reading the code". That is as if Python were importing or running it. Thus the required
dependencies to run the Python bindings are also require to build the API documentation.
Types of changes
Checklist
PR Type
Bug fix, Documentation
Description
requirements.txt
to the dependencies list in the tox configuration to ensure all necessary packages are available for building the API documentation with Sphinx.Changes walkthrough 📝
tox.ini
Include `requirements.txt` in tox documentation build environment
py/tox.ini
requirements.txt
to the dependencies list in the toxconfiguration.