Skip to content

Commit

Permalink
Remove mocking of package dependencies
Browse files Browse the repository at this point in the history
Package imports need not be mocked by autodoc because rosdoc2 expects
that the package (and all its dependencies) will be built/installed
before execution, which means all required modules will be accessible on
the system path.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
  • Loading branch information
aprotyas committed Apr 4, 2022
1 parent aa94104 commit b529001
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rosdoc2/verbs/build/builders/sphinx_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ def ensure_global(name, default):
if rosdoc2_settings.get('enable_autodoc', True):
print('[rosdoc2] enabling autodoc', file=sys.stderr)
extensions.append('sphinx.ext.autodoc')
# Provide all runtime dependencies to be mocked up
# Note: `autodoc` only mocks up those modules that it actually cannot locate in PATH
autodoc_mock_imports = {exec_depends}
# Add the package directory to PATH, so that `sphinx-autodoc` can import it
sys.path.insert(0, os.path.dirname('{package_src_directory}/'))
Expand Down

0 comments on commit b529001

Please sign in to comment.