Metadata-Version: 2.5
Name: taskmaestro-resinsight
Version: 0.1.0
Summary: ResInsight tasks and example workflows for taskmaestro
Project-URL: Homepage, https://github.com/OPM/taskmaestro-resinsight
Project-URL: Repository, https://github.com/OPM/taskmaestro-resinsight
Project-URL: Issues, https://github.com/OPM/taskmaestro-resinsight/issues
Author-email: Ceetron Solutions <info@ceetronsolutions.com>
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Keywords: dag,pipeline,reservoir,resinsight,taskmaestro,workflow
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: rips
Requires-Dist: taskmaestro==0.1.0
Provides-Extra: dev
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.16; extra == 'dev'
Description-Content-Type: text/markdown

# taskmaestro-resinsight

taskmaestro tasks and example workflows for ResInsight.

## Installation

```bash
pip install taskmaestro-resinsight
```

`rips` must match the ResInsight build it talks to. To use the API from a local
ResInsight checkout instead of the released one on PyPI:

```bash
pip install -e /path/to/resinsight/GrpcInterface/Python
```

## Development setup

```bash
git clone https://github.com/OPM/taskmaestro-resinsight ~/src/taskmaestro-resinsight
cd ~/src/taskmaestro-resinsight

# install this repo and its test/lint tools (including Ruff 0.16+)
pip install -e ".[dev]"
```

## Exposing workflows to ResInsight

ResInsight discovers workflows under `~/.taskmaestro/workflows/<name>/workflow.yaml`.
Symlink each workflow directory in once:

```bash
mkdir -p ~/.taskmaestro/workflows
for d in workflows/*/; do
    ln -sfn "$(realpath "$d")" ~/.taskmaestro/workflows/"$(basename "$d")"
done
```

After `pip install -e .` the `taskmaestro_resinsight` package resolves from the
venv, so no `PYTHONPATH` tricks are needed. To verify:

```bash
cd /tmp && python -c "from taskmaestro_resinsight.select_eclipse_case import SelectEclipseCase; print(SelectEclipseCase)"
```

## Running tests

```bash
RESINSIGHT_EXECUTABLE=/path/to/ResInsight pytest tests/ -v
```
