Dev Notes
This package uses a Skeleton.
- It Utilizes:
Sphinx documentation.
Local build docs with
make htmlin docs folder. Firstmake cleanto regenerate toctrees.ReadTheDocs should rebuild automatically on
git push.
versioningit version single-sourcing in
pyproject.toml.Versions are set by the git tags (or commit number if dirty).
On
python -m buildversioningit sets correct version in project metadata based on git data.On
import xhorizona__version__parameter is obtained usingimportlib.metadata.
APIdoc to auto-generate API reference.
Must manually run
sphinx-apidocto generate sphinx autodoc files. Automated byapidoc-rebuild.bat.Only need to regenerate when structure changes, not every update, because generates autodoc files.
- To Develop:
Clone from Github.
Build and local install with
python -m buildthenpip install -e .in root folder.Edit local source.
Access local version from anywhere with
import xhorizonin test scripts.(Only need to rebuild if you want to update version metadata.)
Commit and push changes to remote as usual.
- To Distribute: