Initially created for enabling pdoc to generate IMCF Fiji Python packages API docs. Now also used to run pytest on e.g. the python-imcflibs package.
The goal of this project is to provide mocks that can be used to build a fake
(thin) pip install
able Python package that will allow tools like pdoc or
pytest to build up the AST (abstract syntax tree) by using the mocked objects
while performing the imports.
This project and its packages do not contain any functional code that is useful in situations other than the ones described above!
You'll need poetry installed locally, then using fish
run:
rm -r dist/
poetry build -vv
To create a virtualenv for e.g. running pdoc
, you can now simply use the
packages from PyPI:
python -m venv venv
venv/bin/pip install --upgrade \
imcf-fiji-mocks \
"imcflibs>=1.5.0a1" \
python-micrometa \
pdoc