Skip to content

Commit 8b8b4e3

Browse files
committed
Restructured code following Pythonic best practices
1 parent 98aac1c commit 8b8b4e3

30 files changed

+149
-67
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22

33
To build package:
44
* pip install build
5-
* python -m build
5+
* python -m build
6+
7+
# Development
8+
9+
For development purposes, install module a "editable install"
10+
```sh
11+
pip install -e ".[dev]"
12+
```
13+
14+
All tests must be added in tests/ folder. To execute tests, run command:
15+
```sh
16+
pytest -vs tests
17+
```
18+
19+
or, to execute a single test
20+
```sh
21+
pytest -vs tests\test_execute_function.py
22+
```

appslab_modules/steps/execute_function/test_execute_function.py

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

appslab_modules/steps/json_parser/test_json_parser.py

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

appslab_modules/steps/log/__init__.py

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

appslab_modules/steps/log/module_config.yaml

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

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ dependencies = [
2222
]
2323

2424
[project.optional-dependencies]
25+
dev = [
26+
"pytest",
27+
]
2528
db_storage = [
2629
"influxdb_client>=1.48.0",
2730
]
@@ -37,8 +40,8 @@ all = [
3740
"Homepage" = "https://github.com/bcmi-labs/appslab-python-modules"
3841

3942
[tool.setuptools.packages.find]
40-
where = ["."]
41-
include = ["appslab_modules*"]
43+
where = ["src"]
44+
include = ["*"]
4245

4346
[tool.setuptools.package-data]
4447
"*" = ["*.yaml", "*.md"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)