Skip to content

Commit

Permalink
add examples requirement for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
speediedan committed Oct 11, 2024
1 parent 97bf6c2 commit 8deddaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ formats:
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"
apt_packages:
- texlive-latex-extra
- dvipng
Expand All @@ -53,6 +53,7 @@ build:
python:
install:
- requirements: requirements/base.txt
- requirements: requirements/examples.txt
- requirements: requirements/docs.txt
- method: pip
path: .
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def package_list_from_file(file):
MOCK_PACKAGES += ["torchmetrics"]
# mock also base packages when we are on RTD since we don't install them there
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, "requirements", "base.txt"))
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, "requirements", "examples.txt"))
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, "requirements", "extra.txt"))
MOCK_PACKAGES = [PACKAGE_MAPPING.get(pkg, pkg) for pkg in MOCK_PACKAGES]
autodoc_mock_imports = MOCK_PACKAGES
Expand Down
1 change: 1 addition & 0 deletions requirements/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ scikit-learn
sentencepiece
tensorboardX>=2.2
tabulate
psutil

0 comments on commit 8deddaf

Please sign in to comment.