From e48b3391094f8e009db3d3465d470e2ad6fbc124 Mon Sep 17 00:00:00 2001 From: laverman Date: Fri, 24 Jan 2025 20:28:01 +0100 Subject: [PATCH] Fix build --- pyproject.toml | 6 ++++-- {pysolarfocus => src/pysolarfocus}/__init__.py | 0 {pysolarfocus => src/pysolarfocus}/component_factory.py | 0 {pysolarfocus => src/pysolarfocus}/components/__init__.py | 0 .../pysolarfocus}/components/base/__init__.py | 0 .../pysolarfocus}/components/base/component.py | 0 .../pysolarfocus}/components/base/data_value.py | 0 {pysolarfocus => src/pysolarfocus}/components/base/enums.py | 0 {pysolarfocus => src/pysolarfocus}/components/base/part.py | 0 .../pysolarfocus}/components/base/performance_calculator.py | 0 .../pysolarfocus}/components/base/register_slice.py | 0 .../pysolarfocus}/components/biomass_boiler.py | 0 {pysolarfocus => src/pysolarfocus}/components/boiler.py | 0 {pysolarfocus => src/pysolarfocus}/components/buffer.py | 0 .../pysolarfocus}/components/fresh_water_module.py | 0 {pysolarfocus => src/pysolarfocus}/components/heat_pump.py | 0 .../pysolarfocus}/components/heating_circuit.py | 0 .../pysolarfocus}/components/photovoltaic.py | 0 {pysolarfocus => src/pysolarfocus}/components/solar.py | 0 {pysolarfocus => src/pysolarfocus}/const.py | 0 {pysolarfocus => src/pysolarfocus}/modbus_wrapper.py | 0 uv.lock | 2 +- 22 files changed, 5 insertions(+), 3 deletions(-) rename {pysolarfocus => src/pysolarfocus}/__init__.py (100%) rename {pysolarfocus => src/pysolarfocus}/component_factory.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/__init__.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/__init__.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/component.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/data_value.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/enums.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/part.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/performance_calculator.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/base/register_slice.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/biomass_boiler.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/boiler.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/buffer.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/fresh_water_module.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/heat_pump.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/heating_circuit.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/photovoltaic.py (100%) rename {pysolarfocus => src/pysolarfocus}/components/solar.py (100%) rename {pysolarfocus => src/pysolarfocus}/const.py (100%) rename {pysolarfocus => src/pysolarfocus}/modbus_wrapper.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 2f89e29..7080e69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,10 +28,12 @@ dev = [ "pylint>=3.3.3", ] -[tool.hatch.build.targets.sdist] +[tool.hatch.build.targets.wheel] +packages = ["src/pysolarfocus"] include = ["LICENSE"] -[tool.hatch.build.targets.wheel] +[tool.hatch.build.targets.sdist] +packages = ["src/pysolarfocus"] include = ["LICENSE"] [build-system] diff --git a/pysolarfocus/__init__.py b/src/pysolarfocus/__init__.py similarity index 100% rename from pysolarfocus/__init__.py rename to src/pysolarfocus/__init__.py diff --git a/pysolarfocus/component_factory.py b/src/pysolarfocus/component_factory.py similarity index 100% rename from pysolarfocus/component_factory.py rename to src/pysolarfocus/component_factory.py diff --git a/pysolarfocus/components/__init__.py b/src/pysolarfocus/components/__init__.py similarity index 100% rename from pysolarfocus/components/__init__.py rename to src/pysolarfocus/components/__init__.py diff --git a/pysolarfocus/components/base/__init__.py b/src/pysolarfocus/components/base/__init__.py similarity index 100% rename from pysolarfocus/components/base/__init__.py rename to src/pysolarfocus/components/base/__init__.py diff --git a/pysolarfocus/components/base/component.py b/src/pysolarfocus/components/base/component.py similarity index 100% rename from pysolarfocus/components/base/component.py rename to src/pysolarfocus/components/base/component.py diff --git a/pysolarfocus/components/base/data_value.py b/src/pysolarfocus/components/base/data_value.py similarity index 100% rename from pysolarfocus/components/base/data_value.py rename to src/pysolarfocus/components/base/data_value.py diff --git a/pysolarfocus/components/base/enums.py b/src/pysolarfocus/components/base/enums.py similarity index 100% rename from pysolarfocus/components/base/enums.py rename to src/pysolarfocus/components/base/enums.py diff --git a/pysolarfocus/components/base/part.py b/src/pysolarfocus/components/base/part.py similarity index 100% rename from pysolarfocus/components/base/part.py rename to src/pysolarfocus/components/base/part.py diff --git a/pysolarfocus/components/base/performance_calculator.py b/src/pysolarfocus/components/base/performance_calculator.py similarity index 100% rename from pysolarfocus/components/base/performance_calculator.py rename to src/pysolarfocus/components/base/performance_calculator.py diff --git a/pysolarfocus/components/base/register_slice.py b/src/pysolarfocus/components/base/register_slice.py similarity index 100% rename from pysolarfocus/components/base/register_slice.py rename to src/pysolarfocus/components/base/register_slice.py diff --git a/pysolarfocus/components/biomass_boiler.py b/src/pysolarfocus/components/biomass_boiler.py similarity index 100% rename from pysolarfocus/components/biomass_boiler.py rename to src/pysolarfocus/components/biomass_boiler.py diff --git a/pysolarfocus/components/boiler.py b/src/pysolarfocus/components/boiler.py similarity index 100% rename from pysolarfocus/components/boiler.py rename to src/pysolarfocus/components/boiler.py diff --git a/pysolarfocus/components/buffer.py b/src/pysolarfocus/components/buffer.py similarity index 100% rename from pysolarfocus/components/buffer.py rename to src/pysolarfocus/components/buffer.py diff --git a/pysolarfocus/components/fresh_water_module.py b/src/pysolarfocus/components/fresh_water_module.py similarity index 100% rename from pysolarfocus/components/fresh_water_module.py rename to src/pysolarfocus/components/fresh_water_module.py diff --git a/pysolarfocus/components/heat_pump.py b/src/pysolarfocus/components/heat_pump.py similarity index 100% rename from pysolarfocus/components/heat_pump.py rename to src/pysolarfocus/components/heat_pump.py diff --git a/pysolarfocus/components/heating_circuit.py b/src/pysolarfocus/components/heating_circuit.py similarity index 100% rename from pysolarfocus/components/heating_circuit.py rename to src/pysolarfocus/components/heating_circuit.py diff --git a/pysolarfocus/components/photovoltaic.py b/src/pysolarfocus/components/photovoltaic.py similarity index 100% rename from pysolarfocus/components/photovoltaic.py rename to src/pysolarfocus/components/photovoltaic.py diff --git a/pysolarfocus/components/solar.py b/src/pysolarfocus/components/solar.py similarity index 100% rename from pysolarfocus/components/solar.py rename to src/pysolarfocus/components/solar.py diff --git a/pysolarfocus/const.py b/src/pysolarfocus/const.py similarity index 100% rename from pysolarfocus/const.py rename to src/pysolarfocus/const.py diff --git a/pysolarfocus/modbus_wrapper.py b/src/pysolarfocus/modbus_wrapper.py similarity index 100% rename from pysolarfocus/modbus_wrapper.py rename to src/pysolarfocus/modbus_wrapper.py diff --git a/uv.lock b/uv.lock index 0fb35f0..8fc8d5b 100644 --- a/uv.lock +++ b/uv.lock @@ -162,7 +162,7 @@ wheels = [ [[package]] name = "pysolarfocus" -version = "5.0.0" +version = "5.0.1" source = { editable = "." } dependencies = [ { name = "packaging" },