This is an automated email from the ASF dual-hosted git repository.
riteshghorse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 19e63e1da78 Add mock modules (#25603)
19e63e1da78 is described below
commit 19e63e1da789aa0d4d4502e96d31ab5a942e763c
Author: Anand Inguva <[email protected]>
AuthorDate: Thu Feb 23 10:53:03 2023 -0500
Add mock modules (#25603)
---
sdks/python/scripts/generate_pydoc.sh | 2 +-
sdks/python/tox.ini | 5 -----
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/sdks/python/scripts/generate_pydoc.sh
b/sdks/python/scripts/generate_pydoc.sh
index 51ef692ace5..f81d9a29af0 100755
--- a/sdks/python/scripts/generate_pydoc.sh
+++ b/sdks/python/scripts/generate_pydoc.sh
@@ -130,7 +130,7 @@ release = version
autoclass_content = 'both'
autodoc_inherit_docstrings = False
autodoc_member_order = 'bysource'
-autodoc_mock_imports = ["tensorrt", "cuda"]
+autodoc_mock_imports = ["tensorrt", "cuda", "torch", "onnxruntime", "onnx",
"tensorflow", "tensorflow_hub"]
# Allow a special section for documenting DataFrame API
napoleon_custom_sections = ['Differences from pandas']
diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini
index c38a886dcce..f3e55b1d99a 100644
--- a/sdks/python/tox.ini
+++ b/sdks/python/tox.ini
@@ -150,11 +150,6 @@ deps =
sphinx_rtd_theme==0.4.3
docutils<0.18
Jinja2==3.0.3 # TODO(https://github.com/apache/beam/issues/21587): Sphinx
version is too old.
- torch
- onnxruntime
- onnx
- tensorflow
- tensorflow_hub
commands =
time {toxinidir}/scripts/generate_pydoc.sh