Skip to content

Installation

At the command line:

1
pip install laser-measles

You can also install the in-development version with:

1
pip install git+https://github.com/InstituteforDiseaseModeling/laser-measles.git@main

Optional dependencies

The package supports several optional dependency groups that can be installed for additional functionality:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Development dependencies (testing, linting)
pip install laser-measles[dev]

# Documentation dependencies (MkDocs, mkdocstrings)
pip install laser-measles[docs]

# Example dependencies (Jupyter, notebooks, plotting)
pip install laser-measles[examples]

# All optional dependencies
pip install laser-measles[full]

Dependency groups

dev: Development tools for testing and code quality

  • pytest: Testing framework
  • pytest-order: Ordered test execution

docs: Documentation building tools

  • mkdocs-material: MkDocs theme with extensive functionality
  • mkdocstrings-python: API reference generation from docstrings
  • mkdocs-jupyter: Jupyter notebook rendering
  • mkdocs-gen-files, mkdocs-literate-nav: Auto-generated API navigation

examples: Tools for running examples and tutorials

  • jupytext: Jupyter notebook text conversion
  • notebook: Jupyter notebook interface
  • seaborn: Statistical data visualization
  • ipykernel: Jupyter kernel support

full: All optional dependencies combined

  • Includes all packages from dev, docs, and examples groups

Development

You can use this GitHub Codespace for fast development:

Open in GitHub Codespaces

To run all the tests run:

1
tox

And to build the documentation run:

1
tox -e docs

Note, to combine the coverage data from all the tox environments run:

Platform Command
Windows set PYTEST_ADDOPTS=--cov-append then tox
Other PYTEST_ADDOPTS=--cov-append tox

You can check that the bump versioning works by running:

1
uvx bump-my-version bump minor --dry-run -vv

Note that actual version bumps should be run via the publish-pypi.yml GitHub action from the "Actions" tab of the repository (limited to repository administrators).