Skip to content

Commit 509e05e

Browse files
authored
Merge pull request #30 from pyronear/arthur/fix-readme-lib-pyrocore
docs: update pyrocore README to use uv sources dependency pattern
2 parents a53d4ba + 725c441 commit 509e05e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/pyrocore/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ Shared types and base model for Pyronear temporal smoke detection experiments.
1313
Experiments add pyrocore as a path dependency in their `pyproject.toml`:
1414

1515
```toml
16+
[project]
1617
dependencies = [
17-
"pyrocore @ file:///${PROJECT_ROOT}/../../lib/pyrocore",
18+
"pyrocore",
1819
]
20+
21+
[tool.uv.sources]
22+
pyrocore = { path = "../../../lib/pyrocore" }
1923
```
2024

25+
Adjust the relative path depth based on the experiment's nesting level.
26+
2127
Then subclass `TemporalModel` and implement `predict`:
2228

2329
```python

0 commit comments

Comments
 (0)