Skip to content

Installation

SeapoPym uses uv for dependency management and is structured as a monorepo workspace.

Requirements

  • Python 3.12
  • uv package manager

Installing uv

If you don't have uv installed, follow the official installation guide:

uv Installation Documentation →

Installing SeapoPym

Clone the repository and install:

git clone https://github.com/SeapoPym/seapopym.git
cd seapopym
uv sync

This installs both seapopym and seapopym-optimization packages in editable mode.

Installing Only Core Package

If you only need the core model:

uv pip install -e packages/seapopym

Installing Both Packages

To install both core and optimization:

uv pip install -e packages/seapopym -e packages/seapopym-optimization

Verifying Installation

Test that everything works:

import seapopym
print(f"SeapoPym installed successfully!")

Development Tools

For contributing or running tests:

uv sync --group dev

This installs pytest, ruff, mypy, and other development tools.

Documentation

To build the documentation locally:

uv sync --group docs

Next Steps

Once installed, check out the Quick Start Guide to run your first model!