Skip to content

Commit

Permalink
Fix synthetic tests and docs build
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0320e15fb781cba96e0de9b6c0e679f919c19553
  • Loading branch information
drew committed Sep 22, 2023
1 parent 58d894c commit e3835af
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ formats:

python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- all
- docs
6 changes: 6 additions & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docutils==0.18.1
jinja2==3.1.2
m2r==0.3.1
mistune==0.8.4
sphinx-rtd-theme==1.2.2
sphinx==6.2.1
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def reqs(file, without=None):
]


doc_reqs = reqs("requirements/docs.txt")
base_reqs = reqs("requirements/base.txt")
utils_reqs = reqs("requirements/utils.txt")
test_reqs = reqs("requirements/test.txt")
Expand All @@ -51,11 +52,12 @@ def reqs(file, without=None):
python_requires=">=3.9",
install_requires=base_reqs,
extras_require={
"all": all_reqs,
"all": [req for reqs in all_reqs for req in reqs],
"utils": utils_reqs,
"test": test_reqs,
"torch": torch_reqs,
"tensorflow": tf_reqs,
"docs": doc_reqs,
},
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit e3835af

Please sign in to comment.