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 repo 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.
You'll need poetry installed locally, then using fish run:
rm -r dist/
poetry build -vv
To create a virtualenv you may use artifacts attached to a public release on
Github, for example using the 0.1.0
release:
set REL "0.1.0"
set URL_PFX "https://github.com/imcf/imcf-fiji-mocks/releases/download/v$REL"
pip install --upgrade \
$URL_PFX/imcf_fiji_mocks-$REL-py3-none-any.whl \
$URL_PFX/micrometa-15.2.2-py3-none-any.whl \
$URL_PFX/sjlogging-0.1.0-py3-none-any.whl \
pdoc \
olefile \
pip