Skip to content

Commit 3870650

Browse files
committed
har_trees: Use pyproject.toml instead of requirements.txt
Allows to specify the subdirectory as a dependency
1 parent 81afab0 commit 3870650

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

examples/har_trees/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ You need to have Python (CPython) installed on the PC.
153153

154154
Install requirements
155155
```
156-
pip install -r requirements.txt
156+
pip install .
157157
```
158158

159159
Download training data (4 GB space)

examples/har_trees/pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[project]
2+
name = "emlearn-har-trees"
3+
version = "0.0.1"
4+
dependencies = [
5+
"pandas",
6+
"pyarrow",
7+
"emlearn>=0.22.0",
8+
"leaf-clustering@git+https://github.com/jonnor/leaf-clustering",
9+
"scikit-learn",
10+
"setuptools",
11+
"structlog",
12+
"matplotlib",
13+
"mpremote",
14+
"pyyaml",
15+
]
16+
17+
[tool.setuptools]
18+
py-modules = ["har_train"]
19+
20+
[project.optional-dependencies]
21+
test = ["pytest"]

examples/har_trees/requirements.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)