We use flit and sphinx for distribution and documentation.
- Setting up itkpocus to be live-installed in your venv
# activate venv, i.e., source path/to/venv/Scripts/activate
flit install --wrap-pth
- Create the notebook in examples
- Add a .nblink file to doc
- Add .nblink file to doc/index.rst NOTE: steps #1 and #2 are necessary because examples is outside of the doc directory.
- Documentation is built using sphinx, sphinx-napoleon, sphinx-apidoc, and the sphinxdoc html_theme.
# assuming venv-3.7.6-itkpocus is the virtual environment
source venv-3.7.6-itkpocus/Scripts/activate
# brings in its local build of sphinx
# exclude tests from doc
sphinx-apidoc -f -o doc . 'tests'
./doc/make html
- Note, all documentation will be rebuilt and deployed to readthedocs automatically on merge to master.
python -m unittestorpython tests/test_myfile.py
- Update
itkpocus/__init__.pyversion number- Use rc for release candidates on major versions
- Use subversions for bugfixes
flit publish