From a41db7b6a58cb339246d91c400f4ffd4864afad1 Mon Sep 17 00:00:00 2001 From: Florian Rohrer Date: Fri, 13 Dec 2024 11:06:28 +0100 Subject: [PATCH] Fix tests --- CONTRIBUTING.md | 1 + pyproject.toml | 3 +++ src/sts1_sensors/__init__.py | 1 + src/sts1_sensors/sensors/__init__.py | 6 ++---- uv.lock | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 src/sts1_sensors/__init__.py diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f389a84..43217cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,6 +3,7 @@ ## Making a new release +* (On Raspberry Pi) Run `pytest`. * Go to pyproject.toml and increase the version number * Go to docs/source/conf.py and increase the version number * Merge into main diff --git a/pyproject.toml b/pyproject.toml index 6d6f6db..2edc4a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,3 +27,6 @@ dev-dependencies = [ "sphinx-autobuild>=2024.10.3", "sphinx>=8.1.3", ] + +[tool.hatch.build.targets.wheel] +packages = ["src/sts1_sensors"] diff --git a/src/sts1_sensors/__init__.py b/src/sts1_sensors/__init__.py new file mode 100644 index 0000000..5e36334 --- /dev/null +++ b/src/sts1_sensors/__init__.py @@ -0,0 +1 @@ +from .sensors import * diff --git a/src/sts1_sensors/sensors/__init__.py b/src/sts1_sensors/sensors/__init__.py index 516d0d4..0e63a82 100644 --- a/src/sts1_sensors/sensors/__init__.py +++ b/src/sts1_sensors/sensors/__init__.py @@ -1,4 +1,2 @@ -from .BME688 import BME688 -from .BMM150 import BMM150 -from .GUVA_C32 import GUVA_C32 -from .L3GD20H import L3GD20H +from .ADXL345 import * +from .TMP112 import * diff --git a/uv.lock b/uv.lock index a59b7e0..e9675e7 100644 --- a/uv.lock +++ b/uv.lock @@ -515,7 +515,7 @@ wheels = [ [[package]] name = "sts1-sensors" -version = "0.3.4" +version = "0.3.5" source = { editable = "." } dependencies = [ { name = "smbus2" },