diff --git a/docs/source/conf.py b/docs/source/conf.py index 168fc4d9..af208d08 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -18,9 +18,10 @@ # On Read the Docs, need to mock any python packages that would require c from unittest.mock import MagicMock -MOCK_MODULES = ["mpi4py", "colorama", "mpi4py.util.dtlib"] +MOCK_MODULES = ["mpi4py", "colorama", "mpi4py.util.dtlib", "sympy", "matplotlib.pyplot"] sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES) - +from mpi4py import MPI +MPI.COMM_WORLD.Get_size.return_value = 1 # -- Project information ----------------------------------------------------- diff --git a/mcdc/__init__.py b/mcdc/__init__.py index 3eb86c42..223c8add 100644 --- a/mcdc/__init__.py +++ b/mcdc/__init__.py @@ -32,4 +32,5 @@ visualize, ) -__version__ = importlib.metadata.version("mcdc") +# Temporarily commenting out so docs will build +# __version__ = importlib.metadata.version("mcdc")