microsoft / sammo

A library for prompt engineering and optimization (SAMMO = Structure-aware Multi-Objective Metaprompt Optimization)
MIT License
512 stars 27 forks source link

Add docs to build pipeline #13

Closed pbourke closed 8 months ago

pbourke commented 8 months ago

The main goal of this PR is to enable building the jupyter-book docs as part of the build pipeline.

It also introduces some changes to how dependencies are organized. All of the dev dependencies are now in a group marked optional, so they will not get included as dependencies of the published library.

The Poe the Poet task runner is added as a dev dependency to harmonize commands run on dev machines and in the build pipeline and to create a single source of truth for configurations like the jupyter-book build commands.

Finally, I've added a hack to set the package version in the docs site using a sphinx extension.

Version bump to 0.1.0.5 due to removed dependencies.