From 70f711b3d63ae7ed323cae9a35716048c62efe73 Mon Sep 17 00:00:00 2001 From: Florian Rohrer Date: Fri, 13 Dec 2024 10:55:06 +0100 Subject: [PATCH 1/2] verion bump --- docs/source/conf.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index d40cdda..c1a2e63 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,7 @@ project = 'sts1-sensors' copyright = '2024, Simon Köfinger, Florian Rohrer' author = 'Simon Köfinger, Florian Rohrer' -release = 'v0.3.4' +release = 'v0.3.5' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 4a14c08..6d6f6db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sts1_sensors" -version = "0.3.4" +version = "0.3.5" description = "A sensor library for the CubeSat STS1 (TU Wien Space Team)." readme = "README.md" requires-python = ">=3.13" From a41db7b6a58cb339246d91c400f4ffd4864afad1 Mon Sep 17 00:00:00 2001 From: Florian Rohrer Date: Fri, 13 Dec 2024 11:06:28 +0100 Subject: [PATCH 2/2] 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" },